This page as markdown: /browser.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

Browser

Status: stable

A generic, current browser window: one compact toolbar (window controls, back/forward/reload, a centered address field) around page content.

Keywords: browser, mockup, preview, website

Usage

Use Browser to frame a website or product surface preview when the browser chrome is part of the story.

Best practices

Props

Name Type Default Description
url string — Address shown in the centered address pill. Omit for a blank pill.
elevation "raised" | "hero" "raised" raised: the soft resting shadow, for a window among other content. hero: lifted well off the page, for a product shot staged as a landing page's centrepiece (one per page). Use this instead of a shadow-* className.
children ReactNode — Page content rendered inside the content region.

Tokens used

card, background, border, muted, muted-foreground

Accessibility

Related

Examples

Framing a page

import { Browser, PageHeader } from "@sableui/react"

<Browser url="studio.example/explore"><div className="p-8"><PageHeader title="Explore" description="Trending posts from every chain." /></div></Browser>

Mockup, not chrome

import { Browser, Region } from "@sableui/react"

// Browser is DECORATIVE framing for a screenshot or a demo — it belongs on a
// marketing page, never around your actual app.

<Region max="wide">
  <Browser url="studio.example">
    <img src="/screenshots/editor.png" alt="The editor" />
  </Browser>
</Region>

// ✗ Wrapping live UI in it. The frame implies "this is a picture of software";
//   putting real controls inside makes users hunt for a browser that isn't there.
// ✗ Using it to fake a URL bar for credibility. Show the real product.