32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
|
|
/**
|
||
|
|
* Form Components Index
|
||
|
|
*
|
||
|
|
* This file exports all reusable form components for easy importing.
|
||
|
|
* These components reduce code duplication and improve consistency across forms.
|
||
|
|
*/
|
||
|
|
|
||
|
|
// Core form field components
|
||
|
|
export { default as FormField } from './form-field';
|
||
|
|
export type { FormFieldProps } from './form-field';
|
||
|
|
|
||
|
|
export { default as FormSelect } from './form-select';
|
||
|
|
export type { FormSelectProps, SelectOption } from './form-select';
|
||
|
|
|
||
|
|
export { default as FormCheckbox } from './form-checkbox';
|
||
|
|
export type { FormCheckboxProps, CheckboxOption } from './form-checkbox';
|
||
|
|
|
||
|
|
export { default as FormRadio } from './form-radio';
|
||
|
|
export type { FormRadioProps, RadioOption } from './form-radio';
|
||
|
|
|
||
|
|
export { default as FormDatePicker } from './form-date-picker';
|
||
|
|
export type { FormDatePickerProps } from './form-date-picker';
|
||
|
|
|
||
|
|
// Layout components
|
||
|
|
export { default as FormSection } from './form-section';
|
||
|
|
export type { FormSectionProps } from './form-section';
|
||
|
|
|
||
|
|
export { default as FormGrid, FormGridItem } from './form-grid';
|
||
|
|
export type { FormGridProps, FormGridItemProps } from './form-grid';
|
||
|
|
|
||
|
|
// Re-export commonly used types
|
||
|
|
export type { FieldValues, FieldPath, Control } from 'react-hook-form';
|