File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 11import { type Meta , type StoryObj } from '@storybook/react-vite' ;
22
3+ import { Button } from '#components/form-elements/button/Button.js' ;
34import { Select } from '#components/form-elements/select/index.js' ;
45
56const 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+ } ;
You can’t perform that action at this time.
0 commit comments