@@ -9,11 +9,12 @@ import {
99 WORKSHOP_ICON_SYMBOL_OPTIONS ,
1010 WORKSHOP_TEXT_SIZE_OPTIONS ,
1111 WORKSHOP_SPACE_OPTIONS ,
12+ WORKSHOP_TEXT_OVERFLOW_OPTIONS ,
1213} from '../../../__workshop__/constants'
1314
1415export default function ButtonStory ( ) {
1516 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' )
1718 const icon = useSelect ( 'Icon' , WORKSHOP_ICON_SYMBOL_OPTIONS , 'add-circle' , 'Props' )
1819 const iconRight = useSelect ( 'Icon (right)' , WORKSHOP_ICON_SYMBOL_OPTIONS , '' , 'Props' )
1920 const justify = useSelect ( 'Justify' , WORKSHOP_FLEX_JUSTIFY_OPTIONS , 'center' , 'Props' )
@@ -26,9 +27,15 @@ export default function ButtonStory() {
2627 const textAlign =
2728 useSelect ( 'Text align' , WORKSHOP_BUTTON_TEXT_ALIGN_OPTIONS , undefined , 'Props' ) || undefined
2829 const textProp = useText ( 'Text' , 'Label' , 'Props' )
30+ const textOverflow = useSelect (
31+ 'Text overflow' ,
32+ WORKSHOP_TEXT_OVERFLOW_OPTIONS ,
33+ 'ellipsis' ,
34+ 'Props' ,
35+ )
2936
3037 return (
31- < Flex align = "center" height = "fill" justify = "center" >
38+ < Flex align = "center" height = "fill" justify = "center" padding = { 4 } sizing = "border" >
3239 < Button
3340 disabled = { disabled }
3441 fontSize = { fontSize }
@@ -42,6 +49,7 @@ export default function ButtonStory() {
4249 selected = { selected }
4350 space = { space }
4451 textAlign = { textAlign }
52+ textOverflow = { textOverflow }
4553 text = { textProp }
4654 tone = { tone }
4755 />
0 commit comments