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 barWhen 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
| Prop | Type | Required | Description |
|---|---|---|---|
title | React.ReactNode | — | |
actions | React.ReactNode | — | |
icon | React.ReactNode | — | |
children | React.ReactNode | — |