File tree 1 file changed +18
-0
lines changed
docs/components/file-input-field
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -138,27 +138,45 @@ Target the trigger text (i.e. "Select Files") via `data-trigger`.
138
138
139
139
## UI States
140
140
141
+ ## FileInputField with label
142
+
141
143
<div class =' flex flex-col gap-y-5 ' >
142
144
<Form::FileInputField
143
145
@deleteLabel ='Delete file'
144
146
@label ='Label'
145
147
@trigger ='Select Files'
146
148
/>
147
149
150
+ ## FileInputField with label and hint
151
+
148
152
<Form::FileInputField
149
153
@deleteLabel ='Delete file'
150
154
@label ='Label'
151
155
@hint ='Hint text'
152
156
@trigger ='Select Files'
153
157
/>
154
158
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
+
155
170
<Form::FileInputField
156
171
@deleteLabel ='Delete file'
157
172
@label ='Label'
173
+ @hint ='Hint'
158
174
@error ='Here is an error'
159
175
@trigger ='Select Files'
160
176
/>
161
177
178
+ ## FileInputField with label and isDisabled
179
+
162
180
<Form::FileInputField
163
181
@deleteLabel ='Delete file'
164
182
@label ='Label'
You can’t perform that action at this time.
0 commit comments