UNPKG

@douyinfe/semi-ui

Version:

A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.

22 lines (21 loc) 1.34 kB
/** * The early design of Semi Form was inspired by informed (https://github.com/joepuzzo/informed) and formik(https://github.com/formium/formik) * The informed API design is very concise, and formik has very clear naming of the form status. * However, due to the requirements of convenient scalability (we need to split into F/A architecture), in additional they have their own binding verification library, * we cannot directly reuse such libraries. * So we fully absorbed these excellent api designs. Combining the technical principles of the two to implement our own code, */ import Form from './baseForm'; import ArrayField from './arrayField'; import { useFormApi, useFormState, useFieldState, useFieldApi } from './hooks/index'; import withField from './hoc/withField'; import withFormState from './hoc/withFormState'; import withFormApi from './hoc/withFormApi'; export { Form, ArrayField, withField, useFormApi, useFormState, useFieldApi, useFieldState, withFormState, withFormApi }; export * from './interface'; export type { ArrayFieldProps } from './arrayField'; export type { ReactFieldError, ErrorMessageProps } from './errorMessage'; export type { InputGroupProps } from './group'; export type { LabelProps } from './label'; export type { SectionProps } from './section'; export type { SlotProps } from './slot';