Skip to main content

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 bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
variant"no-access" | "locked" | "read-only"—
illustrationReact.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"—
titleReact.ReactNode—
descriptionReact.ReactNode—
actionsReact.ReactNode—
auxReact.ReactNode—
iconReact.ReactNode—