-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
29 lines (25 loc) · 1.05 KB
/
index.tsx
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
import './locale';
import CheckboxComponent from './Checkbox';
import DatePickerComponent from './DatePicker';
import ErrorMessageComponent from './ErrorMessage';
import FormComponent from './Form';
import InputComponent from './Input';
import RadioComponent from './Radio';
import SelectComponent from './Select';
import SwitchComponent from './Switch';
import TextareaComponent from './Textarea';
import TimePickerComponent from './TimePicker';
import useFormHook, { useFieldArray as useFieldArrayHook } from './useForm';
export type { FormModel } from './useForm';
export const Checkbox = CheckboxComponent;
export const DatePicker = DatePickerComponent;
export const ErrorMessage = ErrorMessageComponent;
export const Form = FormComponent;
export const Input = InputComponent;
export const Radio = RadioComponent;
export const Select = SelectComponent;
export const Switch = SwitchComponent;
export const Textarea = TextareaComponent;
export const TimePicker = TimePickerComponent;
export const useForm = useFormHook;
export const useFieldArray = useFieldArrayHook;