Skip to content

Commit b9ebe38

Browse files
committed
feat: add layout arg in select picker story
1 parent 5e407d9 commit b9ebe38

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/stories/SelectPicker.stories.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ import {
2727
} from '@devtron-labs/devtron-fe-common-lib'
2828
import { ReactComponent as ICEnv } from '@Icons/ic-env.svg'
2929

30+
const SELECT_PICKER_LAYOUT_MAP: Record<SelectPickerProps['layout'], null> = {
31+
row: null,
32+
column: null,
33+
}
34+
3035
const meta = {
3136
component: SelectPicker,
3237
argTypes: {
@@ -45,6 +50,10 @@ const meta = {
4550
shouldMenuAlignRight: {
4651
control: { type: 'boolean' },
4752
},
53+
layout: {
54+
options: Object.keys(SELECT_PICKER_LAYOUT_MAP),
55+
control: { type: 'select' },
56+
},
4857
},
4958
} satisfies Meta<SelectPickerProps>
5059

@@ -72,6 +81,7 @@ export const Default: Story = {
7281
size: ComponentSizeType.medium,
7382
menuSize: ComponentSizeType.small,
7483
shouldMenuAlignRight: false,
84+
layout: 'column',
7585
},
7686
}
7787

0 commit comments

Comments
 (0)