Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA sensitive field shown read-only with a lock and the reason it is protected; "Unlock to edit" shows what can go wrong, enables the input, and it locks again after saving. Use this when changing a value (URL slug, legal name, account ID) can break things.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
A value is rarely changed and changing it has side effects (links break, invoices change, integrations fail).
Do not use it when: For ordinary values, a locked field is just friction.
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 |
|---|---|---|
label | string | The field's label. |
initial | string | The saved value. |
warning | string | Why it is locked and what changing it does. |
save | (value) => void | Promise<void> | Called with the new value. |
readonly, not disabled: it stays focusable, selectable and copyable, and a screen reader reads its value. The warning is its accessible description.The pattern ships with a Testing Library test (locked-field-with-unlock.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.