@@ -13,6 +13,7 @@ import {
1313 InputProps ,
1414 KeyValuePairs ,
1515 Link ,
16+ SegmentedControl ,
1617 Select ,
1718 SelectProps ,
1819 SpaceBetween ,
@@ -72,6 +73,7 @@ export default function ThemedStrokeWidthPage() {
7273 borderWidthIconMedium : strokeMedium ? `${ strokeMedium } px` : '1px' ,
7374 borderWidthIconBig : strokeBig ? `${ strokeBig } px` : '1.5px' ,
7475 borderWidthIconLarge : strokeLarge ? `${ strokeLarge } px` : '2px' ,
76+ borderRadiusButton : '8px' ,
7577 } ,
7678 } ;
7779
@@ -84,6 +86,8 @@ export default function ThemedStrokeWidthPage() {
8486 return reset ;
8587 } , [ themed , strokeSmall , strokeNormal , strokeMedium , strokeBig , strokeLarge ] ) ;
8688
89+ const [ selectedId , setSelectedId ] = React . useState ( 'seg-1' ) ;
90+
8791 return (
8892 < div style = { { padding : 15 } } >
8993 < h1 > Themed icon stroke width</ h1 >
@@ -220,6 +224,17 @@ export default function ThemedStrokeWidthPage() {
220224 </ Button >
221225 </ div >
222226
227+ < SegmentedControl
228+ selectedId = { selectedId }
229+ onChange = { ( { detail } ) => setSelectedId ( detail . selectedId ) }
230+ label = "Default segmented control"
231+ options = { [
232+ { text : 'Segment 1' , id : 'seg-1' } ,
233+ { text : 'Segment 2' , id : 'seg-2' } ,
234+ { text : 'Segment 3' , id : 'seg-3' } ,
235+ ] }
236+ />
237+
223238 < div >
224239 < Link external = { true } href = "https://example.com/" variant = "primary" >
225240 Learn more
0 commit comments