Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProChoose "Individual" or "Company" first and the generated form below is rebuilt from a different schema: different fields, different required ones, nothing carried over by accident. Use this when one answer changes the whole shape of the data.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
The type of record decides which fields exist (person or company, card or bank account, shipping or pickup) and the sets differ more than a few fields.
Do not use it when: If only one field appears or disappears, use the conditional contact fields pattern.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Description |
|---|---|---|
onSubmit | (kind, values) => void | The chosen kind and its cleaned values. |
schemas is exported: one JSON Schema per kind.
aria-controls) whose label changes with the choice ("Company details").The pattern ships with a Testing Library test (auto-form-conditional-required.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.