Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProRename an item by awaiting a dialog in the click handler: `const name = await openForm(...)` gives the new name or null, so the handler reads like normal code instead of juggling open state. Use this when a handler needs one answer from a small form.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
A click handler needs one answer from a form (a new name, a reason, a target folder) and keeping open state, values and callbacks for it would scatter the logic.
Do not use it when: If the dialog is part of the page's state (deep links, multiple dialogs open from elsewhere), control it with state.
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 | string[] | The file names. |
rename | (from, to) => Promise<void> | Save the new name; throw to keep the dialog open with the message. |
aria-invalid, a failed save is an alert.The pattern ships with a Testing Library test (rename-dialog-promise.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.