Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProOne form that shows each field as editable or as read-only text depending on what the current role may change, with a reason on locked fields and a save button that only exists if something is editable. Use this when different roles share a screen.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Roles see the same form but may change different fields (admins change plan, members change their name).
Do not use it when: Permissions are enforced by the server; this only mirrors them in the UI. Never rely on hiding controls for security.
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 |
|---|---|---|
role | owner, admin, member | The current role. |
fields | { key, label, editableBy, reason? }[] | Which roles may edit which field, and the reason shown otherwise. |
initial | Record<string, string> | Values. |
onSave | (changes) => void | Promise<void> | Only the editable fields. |
The pattern ships with a Testing Library test (permission-aware-readonly-form.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.