/** * @module @codella/react * * React hooks for Codella core services. * * Provides hooks to integrate FormBuilder, TableBuilder, and FiltersAndSort * services with React components. * * ## Installation * * ```bash * npm install @codella-software/react * ``` * * ## Quick Start * * ```tsx * import { useFormBuilder } from '@codella-software/react'; * import { FormBuilder } from '@codella-software/utils'; * * const builder = new FormBuilder<{ name: string }>() * .addField({ name: 'name', type: 'text', label: 'Name' }) * .build(); * * function MyForm() { * const form = useFormBuilder({ builder }); * return ( *
{ e.preventDefault(); form.submit(); }}> * form.setFieldValue('name', e.target.value)} * /> * *
* ); * } * ``` * * @packageDocumentation */ export { useFiltersAndSort, type UseFiltersAndSortOptions, type UseFiltersAndSortReturn } from './filters-and-sort'; export { useFormBuilder, type UseFormBuilderOptions, type UseFormBuilderReturn } from './form-builder'; export * from './live-updates'; export * from './rich-content'; export * from './tabs'; //# sourceMappingURL=index.d.ts.map