Skip to content

Commit 31aaecd

Browse files
committed
feat: update argTypes for select picker storybook
1 parent c4d3866 commit 31aaecd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/stories/SelectPicker.stories.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,29 @@ import {
2323
SelectPicker,
2424
SelectPickerOptionType,
2525
SelectPickerProps,
26+
SelectPickerVariantType,
2627
} from '@devtron-labs/devtron-fe-common-lib'
2728
import { ReactComponent as ICEnv } from '@Icons/ic-env.svg'
2829

2930
const meta = {
3031
component: SelectPicker,
32+
argTypes: {
33+
variant: {
34+
options: Object.values(SelectPickerVariantType),
35+
control: { type: 'radio' },
36+
},
37+
size: {
38+
options: Object.values(ComponentSizeType),
39+
control: { type: 'select' },
40+
},
41+
menuSize: {
42+
options: Object.values(ComponentSizeType),
43+
control: { type: 'select' },
44+
},
45+
shouldMenuAlignRight: {
46+
control: { type: 'boolean' },
47+
},
48+
},
3149
} satisfies Meta<SelectPickerProps>
3250

3351
export default meta

0 commit comments

Comments
 (0)