Skip to content

Commit 2524c84

Browse files
Add select with button examples
1 parent 9ff194b commit 2524c84

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

stories/Form Elements/Select.stories.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { type Meta, type StoryObj } from '@storybook/react-vite';
22

3+
import { Button } from '#components/form-elements/button/Button.js';
34
import { Select } from '#components/form-elements/select/index.js';
45

56
const meta: Meta<typeof Select> = {
@@ -56,3 +57,28 @@ export const SelectWithErrorAndHintText: Story = {
5657
error: 'Select a location',
5758
},
5859
};
60+
61+
export const SelectWithButton: Story = {
62+
args: {
63+
formGroupProps: {
64+
afterInput: () => (
65+
<Button secondary small>
66+
Search
67+
</Button>
68+
),
69+
},
70+
},
71+
};
72+
73+
export const SelectWithButtonAndError: Story = {
74+
args: {
75+
error: 'Select a location',
76+
formGroupProps: {
77+
afterInput: () => (
78+
<Button secondary small>
79+
Search
80+
</Button>
81+
),
82+
},
83+
},
84+
};

0 commit comments

Comments
 (0)