-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathschema-form.tsx
More file actions
58 lines (56 loc) · 1.7 KB
/
schema-form.tsx
File metadata and controls
58 lines (56 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { makeSchemaForm } from 'remix-forms'
import AddButton from './add-button'
import ArrayArrayItem from './array-array-item'
import ArrayEmpty from './array-empty'
import ArrayTitle from './array-title'
import Checkbox from './checkbox'
import CheckboxLabel from './checkbox-label'
import Error from './error'
import Errors from './errors'
import Field from './field'
import Fields from './fields'
import FileInput from './file-input'
import Input from './input'
import Label from './label'
import ObjectArrayItem from './object-array-item'
import ObjectFields from './object-fields'
import ObjectTitle from './object-title'
import Radio from './radio'
import RadioGroup from './radio-group'
import RadioLabel from './radio-label'
import RemoveButton from './remove-button'
import ScalarArrayField from './scalar-array-field'
import ScalarArrayItem from './scalar-array-item'
import Select from './select'
import StyledForm from './styled-form'
import SubmitButton from './submit-button'
import TextArea from './text-area'
const SchemaForm = makeSchemaForm({
form: StyledForm,
fields: Fields,
field: Field,
label: Label,
input: Input,
fileInput: FileInput,
multiline: TextArea,
select: Select,
radio: Radio,
radioGroup: RadioGroup,
radioLabel: RadioLabel,
checkboxLabel: CheckboxLabel,
checkbox: Checkbox,
button: SubmitButton,
globalErrors: Errors,
error: Error,
scalarArrayField: ScalarArrayField,
scalarArrayItem: ScalarArrayItem,
objectArrayItem: ObjectArrayItem,
arrayArrayItem: ArrayArrayItem,
addButton: AddButton,
removeButton: RemoveButton,
arrayEmpty: ArrayEmpty,
objectFields: ObjectFields,
arrayTitle: ArrayTitle,
objectTitle: ObjectTitle,
})
export { SchemaForm }