File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/components/segmented-control Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11import { Meta } from "@storybook/react-vite" ;
22import { SegmentedControl , SegmentedControlItem } from "./SegmentedControl" ;
33import React from "react" ;
4+ import { Text } from "../text/Text" ;
45
56export default {
67 title : "Segmented Control" ,
@@ -9,13 +10,13 @@ export default {
910export const SegmentedControlExample = ( ) => {
1011 return < SegmentedControl defaultValue = { "codezero" } type = { "single" } >
1112 < SegmentedControlItem value = { "codezero" } >
12- CodeZero
13+ < Text > CodeZero</ Text >
1314 </ SegmentedControlItem >
1415 < SegmentedControlItem value = { "github" } >
15- Github
16+ < Text > Github</ Text >
1617 </ SegmentedControlItem >
1718 < SegmentedControlItem value = { "apple" } >
18- Apple
19+ < Text > Apple</ Text >
1920 </ SegmentedControlItem >
2021 </ SegmentedControl >
2122}
Original file line number Diff line number Diff line change 2222 & {
2323 @include box .box ();
2424 border-radius : variables .$borderRadius - variables .$xxs ;
25- @include helpers .fontStyle ();
26- font-size : variables .$sm ;
27- box-shadow : none ;
25+ border : none ;
2826 }
2927
3028 & [data-state = " off" ] {
3129 background : transparent ;
30+ opacity : .6666666666 ;
3231 }
3332
3433 }
You can’t perform that action at this time.
0 commit comments