File tree 1 file changed +9
-3
lines changed
apps/website/src/pages/docs/components/forms/file-upload
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -155,13 +155,19 @@ FileUpload can be used in a `Form` by creating a custom field using `createField
155
155
Make sure ` isControlled` is set to true and call the ` onChange` handler inside the ` onFileChange` callback to pass the file to the form state.
156
156
157
157
` ` ` jsx
158
- import { Text , HStack } from ' @chakra-ui/react'
158
+ import { Text , HStack , Button } from ' @chakra-ui/react'
159
159
import {
160
160
FileUpload ,
161
161
FileUploadTrigger ,
162
162
FileUploadDropzone ,
163
- } from ' @saas-ui/file-upload'
164
- import { Form , FormLayout , createField } from ' @saas-ui/forms'
163
+ } from ' @saas-ui/file-upload'
164
+ import {
165
+ Form ,
166
+ FormLayout ,
167
+ SubmitButton ,
168
+ } from ' @saas-ui/react'
169
+ import { createField } from ' @saas-ui/forms'
170
+ import { forwardRef } from ' react' ;
165
171
166
172
const UploadField = createField (
167
173
forwardRef ((props , ref ) => {
You can’t perform that action at this time.
0 commit comments