Skip to content

Commit 72b72da

Browse files
committed
docs: FileInputField, add headers for each UI State
1 parent 1efb531 commit 72b72da

File tree

1 file changed

+18
-0
lines changed
  • docs/components/file-input-field

1 file changed

+18
-0
lines changed

docs/components/file-input-field/index.md

+18
Original file line numberDiff line numberDiff line change
@@ -138,27 +138,45 @@ Target the trigger text (i.e. "Select Files") via `data-trigger`.
138138

139139
## UI States
140140

141+
## FileInputField with label
142+
141143
<div class='flex flex-col gap-y-5'>
142144
<Form::FileInputField
143145
@deleteLabel='Delete file'
144146
@label='Label'
145147
@trigger='Select Files'
146148
/>
147149

150+
## FileInputField with label and hint
151+
148152
<Form::FileInputField
149153
@deleteLabel='Delete file'
150154
@label='Label'
151155
@hint='Hint text'
152156
@trigger='Select Files'
153157
/>
154158

159+
## FileInputField with label and error
160+
161+
<Form::FileInputField
162+
@deleteLabel='Delete file'
163+
@label='Label'
164+
@error='Here is an error'
165+
@trigger='Select Files'
166+
/>
167+
168+
## FileInputField with label, hint and error
169+
155170
<Form::FileInputField
156171
@deleteLabel='Delete file'
157172
@label='Label'
173+
@hint='Hint'
158174
@error='Here is an error'
159175
@trigger='Select Files'
160176
/>
161177

178+
## FileInputField with label and isDisabled
179+
162180
<Form::FileInputField
163181
@deleteLabel='Delete file'
164182
@label='Label'

0 commit comments

Comments
 (0)