Content
- The card's own title and text explain the feature; the scene only shows it.
The frame for a product picture built from real components, for feature cards and onboarding.
import { … } from "@brdgapp/ui/components/scene"Scene is the frame for a product picture: what a feature looks like, built from the package's real components (Card, Avatar, Button, Tag) on the dot grid. It's for feature cards, onboarding steps and promos. Everything inside is decoration: it can't be clicked or reached with the keyboard, and screen readers skip it. The usual mistake is a screenshot or exported image instead, which blurs, goes stale and stays light in dark mode.
The look comes from props
A component's appearance comes only from its own options (variant, size, color). className on a package component is for layout (mt-4, shrink-0, w-full), never for font size, color, padding, radius or hover. If the look needs a className, the component or the chosen option is wrong: fix that instead.
Frame. 12px corners, the dot grid on pale blue (--info-bg), as Bridge OS's scene pictures have; or a strong blue with tone="blue".
Scene. Real components, sized and placed as the picture, centred.
The scene shows the moment; the card's words explain it and the button starts it. Try Tab: the scene's button is skipped.
Book intros into free time
Connect your calendar and people can pick a slot that suits you both.
For the one hero picture of a promo.
States not written yet.
inert: no clicks, no focus, no text selection.className (h-64, aspect-[4/3]).Do
Show one moment, with sample people.Don't
Rebuild a whole screen in miniature.Do
Build it from the package's components.Don't
Export a screenshot or a PNG.Scene
The frame.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | The components that make the picture. |
tone | "grid" | "blue" | "grid" | The dot grid, or a blue wash for a promo's one hero picture. |
className | string | — | Size and layout only. |
What it's built from and where it's used, read from the code. When you change it, check these too.