UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

24 lines (23 loc) 989 B
import { Form as AntForm, type FormInstance } from 'antd'; import { type ReactNode, RefAttributes } from 'react'; import FormGroup from './components/FormGroup'; import FormItem from './components/FormItem'; import FormSubmitFooter from './components/FormSubmitFooter'; import FormTitle from './components/FormTitle'; import type { FormProps } from './type'; interface IForm { (props: FormProps & RefAttributes<FormInstance>): ReactNode; Group: typeof FormGroup; Item: typeof FormItem; Provider: typeof AntForm.Provider; SubmitFooter: typeof FormSubmitFooter; Title: typeof FormTitle; useForm: typeof AntForm.useForm; } declare const Form: IForm; export default Form; export { default as FormGroup } from './components/FormGroup'; export { default as FormItem } from './components/FormItem'; export { default as FormSubmitFooter } from './components/FormSubmitFooter'; export { default as FormTitle } from './components/FormTitle'; export type * from './type';