Docs preview

Understory
BrowserChrome around a live render of the user's site.
docs.acme.dev

Usage

The import, then a use to start from. Both copy as they are.

Import
import { BrowserChrome } from "@/components/docs-preview/BrowserChrome";

When to use

Use it for

  • A live render of the person's docs site, inside BrowserChrome, the quiet browser frame.
  • The real site at its real URL: the preview is the product, not a picture of it.
  • SitePreviewIframe renders the site inside the frame.

Avoid

  • A screenshot where a live preview can load.
  • Browser chrome with colors of its own: it stays gray on gray.

Accessibility

Checks

  • The frame has a title naming the site it shows.

API

Read from each component's stories, the same source as COMPONENTS.md, and kept in step by check:design-system.

BrowserChrome

Its stories don't declare argTypes, so no props are listed. The variants show its states.
VariantsDefaultWithContentTintedAccentTinted

SitePreviewIframe

Its stories don't declare argTypes, so no props are listed. The variants show its states.
VariantsDefaultDarkModeNarrowPanelTitleFocusedAskFernFocused

Keep going