@@ -9,11 +9,12 @@ import {
9
9
WORKSHOP_ICON_SYMBOL_OPTIONS ,
10
10
WORKSHOP_TEXT_SIZE_OPTIONS ,
11
11
WORKSHOP_SPACE_OPTIONS ,
12
+ WORKSHOP_TEXT_OVERFLOW_OPTIONS ,
12
13
} from '../../../__workshop__/constants'
13
14
14
15
export default function ButtonStory ( ) {
15
16
const disabled = useBoolean ( 'Disabled' , false , 'Props' )
16
- const fontSize = useSelect ( 'Font size' , WORKSHOP_TEXT_SIZE_OPTIONS , 2 , 'Props' )
17
+ const fontSize = useSelect ( 'Font size' , WORKSHOP_TEXT_SIZE_OPTIONS , 1 , 'Props' )
17
18
const icon = useSelect ( 'Icon' , WORKSHOP_ICON_SYMBOL_OPTIONS , 'add-circle' , 'Props' )
18
19
const iconRight = useSelect ( 'Icon (right)' , WORKSHOP_ICON_SYMBOL_OPTIONS , '' , 'Props' )
19
20
const justify = useSelect ( 'Justify' , WORKSHOP_FLEX_JUSTIFY_OPTIONS , 'center' , 'Props' )
@@ -26,9 +27,15 @@ export default function ButtonStory() {
26
27
const textAlign =
27
28
useSelect ( 'Text align' , WORKSHOP_BUTTON_TEXT_ALIGN_OPTIONS , undefined , 'Props' ) || undefined
28
29
const textProp = useText ( 'Text' , 'Label' , 'Props' )
30
+ const textOverflow = useSelect (
31
+ 'Text overflow' ,
32
+ WORKSHOP_TEXT_OVERFLOW_OPTIONS ,
33
+ 'ellipsis' ,
34
+ 'Props' ,
35
+ )
29
36
30
37
return (
31
- < Flex align = "center" height = "fill" justify = "center" >
38
+ < Flex align = "center" height = "fill" justify = "center" padding = { 4 } sizing = "border" >
32
39
< Button
33
40
disabled = { disabled }
34
41
fontSize = { fontSize }
@@ -42,6 +49,7 @@ export default function ButtonStory() {
42
49
selected = { selected }
43
50
space = { space }
44
51
textAlign = { textAlign }
52
+ textOverflow = { textOverflow }
45
53
text = { textProp }
46
54
tone = { tone }
47
55
/>
0 commit comments