File tree 2 files changed +40
-1
lines changed
site/src/components/Filter
2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { OptionItem } from "./filter" ;
2
+ import type { Meta , StoryObj } from "@storybook/react" ;
3
+
4
+ const meta : Meta < typeof OptionItem > = {
5
+ title : "components/Filter/OptionItem" ,
6
+ component : OptionItem ,
7
+ decorators : [
8
+ ( Story ) => {
9
+ return (
10
+ < div style = { { width : "300px" } } >
11
+ < Story />
12
+ </ div >
13
+ ) ;
14
+ } ,
15
+ ] ,
16
+ } ;
17
+
18
+ export default meta ;
19
+ type Story = StoryObj < typeof OptionItem > ;
20
+
21
+ export const Selected : Story = {
22
+ args : {
23
+ option : {
24
+ label : "Success option" ,
25
+ value : "success" ,
26
+ } ,
27
+ isSelected : true ,
28
+ } ,
29
+ } ;
30
+
31
+ export const NotSelected : Story = {
32
+ args : {
33
+ option : {
34
+ label : "Success option" ,
35
+ value : "success" ,
36
+ } ,
37
+ isSelected : false ,
38
+ } ,
39
+ } ;
Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ export const OptionItem: FC<OptionItemProps> = ({
524
524
display : "flex" ,
525
525
alignItems : "center" ,
526
526
gap : 16 ,
527
- fontSize : 4 ,
527
+ fontSize : 14 ,
528
528
overflow : "hidden" ,
529
529
width : "100%" ,
530
530
} }
You can’t perform that action at this time.
0 commit comments