@quatrain/ux-form-react
v1.1.6
Published
This package provides high-level, granular React components to dynamically generate forms based on Quatrain DataObjects and Property definitions.
Readme
@quatrain/ux-form-react
This package provides high-level, granular React components to dynamically generate forms based on Quatrain DataObjects and Property definitions.
Features
- Agnostic Form Elements: Exposes specific widgets (e.g.
StringInput,NumberInput,BooleanToggle) that seamlessly integrate with Quatrain's validation rules (mandatory,minLength,maxLength, etc.). - Automatic Data Binding: Designed to read from and write to standard Quatrain
ApiPayloadobjects. - Mantine Integration: Heavily utilizes
@quatrain/ux(Mantine) for beautiful, cohesive design right out of the box.
Usage
import { DynamicForm } from '@quatrain/ux-form-react';
<DynamicForm
modelId="user-model-123"
onSubmit={(data) => console.log('Saved:', data)}
/>(Documentation will be expanded as the components are built out)
