TypeScript
LetsForm supports TypeScript definitions, this is useful also to enable autocomplete and suggestions in Visual Studio Code.
Every UI framework has its own entry point, for example for RSuite
import { LetsFormSchemaReactRsuite5 } from 'lets-form/react-rsuite5';
// or import { LetsFormSchemaReactAntd } from 'lets-form/react-antd';
// or import { LetsFormSchemaReactMantine } from 'lets-form/react-mantine';
// or import { LetsFormSchemaReactMaterialUi } from 'lets-form/react-material-ui';
// or import { LetsFormSchemaReact } from 'lets-form/react';
// or import { LetsFormSchemaReactBootstrap } from 'lets-form/react-bootstrap';
const schema: LetsFormSchemaReactRsuite5 = {
version: '2',
fields: [
// ...
]
};
also props for <LetsForm/>
can be imported
import { LetsFormReactRsuite5Props } from 'lets-form/react-rsuite5';
import { LetsFormReactAntdProps } from 'lets-form/react-antd';
import { LetsFormReactMantineProps } from 'lets-form/react-mantine';
import { LetsFormReactMaterialUiProps } from 'lets-form/react-material-ui';
import { LetsFormReactProps } from 'lets-form/react';
import { LetsFormReactBootstrapProps } from 'lets-form/react-bootstrap';