File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -77,3 +77,21 @@ export const SelectWithErrorString: Story = {
7777
7878 name : 'Select With Error (String)' ,
7979} ;
80+
81+ export const SelectWithErrorAndHintString : Story = {
82+ render : function SelectWithErrorAndHintStringRender ( ) {
83+ const [ error , setError ] = useState < string > ( 'Error message goes here' ) ;
84+ return (
85+ < >
86+ < Select error = { error } label = "Label text goes here" hint = "Hint text goes here" >
87+ < Select . Option value = "1" > NHS.UK frontend option 1</ Select . Option >
88+ < Select . Option value = "2" > NHS.UK frontend option 2</ Select . Option >
89+ < Select . Option value = "3" > NHS.UK frontend option 3</ Select . Option >
90+ </ Select >
91+ < TextInput onChange = { ( e ) => setError ( e . currentTarget . value ) } value = { error } />
92+ </ >
93+ ) ;
94+ } ,
95+
96+ name : 'Select With Error and Hint (String)' ,
97+ } ;
You can’t perform that action at this time.
0 commit comments