RestrictedState
A permission-denied surface — no-access, locked or read-only — sized page, section or inline, with an icon, message and recovery actions.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A permission-denied surface — no-access, locked or read-only — sized page, section or inline, with an icon, message and recovery actions.
Accessibility
Explains why access is limited in text, not colour alone, and offers the next action (request access). Banners use role="status".
Install and import
npx shadcn@latest add @prism/restricted-state
import { RestrictedState } from '@/components/prism/RestrictedState';
In a no-build prototype, read it from the bundle instead: const { RestrictedState } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
variant | "no-access" | "locked" | "read-only" | — | |
illustration | React.ReactNode | — | Artwork in place of the icon disc — usually <SpotIllustration name="lock" />, so permission screens match EmptyState variant="permission". Takes the variant's tone. |
size | "page" | "section" | "inline" | — | |
title | React.ReactNode | — | |
description | React.ReactNode | — | |
actions | React.ReactNode | — | |
aux | React.ReactNode | — | |
icon | React.ReactNode | — |