-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e6ee5b
commit d8118cc
Showing
15 changed files
with
73 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { SegmentedControl, SegmentedControlOption } from "seed-design/ui/segmented-control"; | ||
import { SegmentedControl, SegmentedControlTrigger } from "seed-design/ui/segmented-control"; | ||
|
||
export default function SegmentedControlFixedWidth() { | ||
return ( | ||
<SegmentedControl style={{ width: "600px" }}> | ||
<SegmentedControlOption value="new">New</SegmentedControlOption> | ||
<SegmentedControlOption value="hot">Hot</SegmentedControlOption> | ||
<SegmentedControl style={{ width: "600px" }} defaultValue="new"> | ||
<SegmentedControlTrigger value="new">New</SegmentedControlTrigger> | ||
<SegmentedControlTrigger value="hot">Hot</SegmentedControlTrigger> | ||
</SegmentedControl> | ||
); | ||
} |
10 changes: 5 additions & 5 deletions
10
docs/components/example/segmented-control-long-label-fixed-width.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { SegmentedControl, SegmentedControlOption } from "seed-design/ui/segmented-control"; | ||
import { SegmentedControl, SegmentedControlTrigger } from "seed-design/ui/segmented-control"; | ||
|
||
export default function SegmentedControlLongLabelFixedWidth() { | ||
return ( | ||
<SegmentedControl style={{ width: "600px" }}> | ||
<SegmentedControlOption value="price">가격 높은 순</SegmentedControlOption> | ||
<SegmentedControlOption value="discount">할인율 높은 순</SegmentedControlOption> | ||
<SegmentedControlOption value="popularity">인기 많은 순</SegmentedControlOption> | ||
<SegmentedControl style={{ width: "600px" }} defaultValue="price"> | ||
<SegmentedControlTrigger value="price">가격 높은 순</SegmentedControlTrigger> | ||
<SegmentedControlTrigger value="discount">할인율 높은 순</SegmentedControlTrigger> | ||
<SegmentedControlTrigger value="popularity">인기 많은 순</SegmentedControlTrigger> | ||
</SegmentedControl> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { SegmentedControl, SegmentedControlOption } from "seed-design/ui/segmented-control"; | ||
import { SegmentedControl, SegmentedControlTrigger } from "seed-design/ui/segmented-control"; | ||
|
||
export default function SegmentedControlLongLabel() { | ||
return ( | ||
<SegmentedControl> | ||
<SegmentedControlOption value="price">가격 높은 순</SegmentedControlOption> | ||
<SegmentedControlOption value="discount">할인율 높은 순</SegmentedControlOption> | ||
<SegmentedControlOption value="popularity">인기 많은 순</SegmentedControlOption> | ||
<SegmentedControl defaultValue="price"> | ||
<SegmentedControlTrigger value="price">가격 높은 순</SegmentedControlTrigger> | ||
<SegmentedControlTrigger value="discount">할인율 높은 순</SegmentedControlTrigger> | ||
<SegmentedControlTrigger value="popularity">인기 많은 순</SegmentedControlTrigger> | ||
</SegmentedControl> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.