A preview that is not loaded until someone asks: restricted data, or pictures with faces or number plates. Neutral, with the reason.
Restricted preview cards
Install
npx shadcn add @syncrobotic/restricted-preview Also installs: lucide-react, @syncrobotic/cn
Overview
A preview that does not load until someone asks: restricted data, faces, number plates.
When to use
- Thumbnails of a restricted dataset in a catalog or gallery.
Use something else
- Data the viewer may not see at all: leave it out and say so in an Empty state.
Usage rules
- For pictures someone should choose to see: restricted tiers, faces, number plates. Nothing loads until they ask.
- Neutral, not a warning colour: restricted is a property of the data, not a fault. Say why in
reason. - Each preview reveals on its own; log the reveal in
onRevealif the data needs an audit trail.
Changelog
- 0.15.02026-11-19A revealed preview fades in.
- 0.12.02026-11-18New.