Skip to main content

ReadOnlyBanner

A banner marking a surface read-only, with an optional action to request or enable editing.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

A banner marking a surface read-only, with an optional action to request or enable editing.

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/read-only-banner
import { ReadOnlyBanner } from '@/components/prism/ReadOnlyBanner';

In a no-build prototype, read it from the bundle instead: const { ReadOnlyBanner } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
titleReact.ReactNode—
actionsReact.ReactNode—
iconReact.ReactNode—
childrenReact.ReactNode—