Refused state

refused-stateStatus and feedback

Shown when the reader lacks a grant. It names the grant and the person who can give it, so the next step is obvious.

bunx --bun shadcn@4.17.0 add @waimakers/refused-state
Kit dependencies
utilsthemeempty-state
npm dependencies
lucide-react@1.33.0

From the registry

A solid-bordered attention EmptyState preset that names the refused action, required grant and person who can grant access. Announces refusal as an alert; accepts a request action.

Examples

Default

The grant in mono and the person to ask. The title defaults to a plain refusal.

With action

Offer a way to ask, and a title that names what was refused.