Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA destructive-style dialog for declining a request: choose a standard reason or write your own (required, with a minimum length), see the message the requester will receive, and confirm with a button that names the action. Use this when a decision needs to be explained to someone.
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.
Reviewers approve or decline requests and the requester should always get a reason (expenses, content moderation, access requests).
Do not use it when: If no reason is owed to the person, a simple confirm dialog is enough.
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 |
|---|---|---|
requestName | string | Shown in the title and the result. |
onReject | (reason) => Promise<void> | Receives the message the requester will read. |
The pattern ships with a Testing Library test (reject-with-reason-dialog.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.