Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProOne schema drives both a read-only view and the edit form: the view is a description list of formatted values, Edit swaps it for the form, and Cancel or Save returns to the view with focus on the Edit button. Use this when a details page and its edit form show the same fields.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
A record has a details view and an edit view, and keeping the two in sync by hand is a chore.
Do not use it when: When only one or two fields are editable in place, edit them inline instead of switching the whole page.
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 |
|---|---|---|
initial | Record<string, unknown> | The saved values. |
onSave | (values) => void | Promise<void> | Called with the cleaned values. |
The pattern ships with a Testing Library test (auto-form-read-only-toggle.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.