Skip to content

Frame

A tinted shell with an optional header around a raised body.

Deployments
Fix pricing table alignment

main · 3 min ago

Ready
Add search to the docs

feature/search · 12 min ago

Building
Draw Open Graph images in dark mode

fix/og-images · 1 hour ago

Failed

Installation

  1. Add the registryOnce per project
  2. Add frame

Usage

A Frame with a FrameHeader or a FrameFooter leaves a narrow margin around its parts, and FrameBody sits in it as a raised panel. With neither, the body fills the frame.

The same shell holds Code Block, JSON Viewer, Package Command and Table, which render Frame's parts under their own data-slot. FrameHeader and FrameFooter always keep data-frame="header" and data-frame="footer". Frame's layout reads those, so a header or footer renamed this way still insets the body.

Composition

Examples

FrameFooter sits below the body, for a count, a status or a link to more. A FrameActions in it moves to the end of the row.

Evergreen Co.

INV-1046 · Due April 2

$1,280.00
Driftwood Labs

INV-1045 · Due March 28

$4,150.00
Cedar & Pine

INV-1044 · Due March 24

$960.00
Showing 3 of 24 invoices

Without a header

With neither a header nor a footer, the body fills the frame, and the frame's edge draws over it.

PlanTeam
Seats12 of 25
Storage6.4 of 10 GB
RenewsApril 1, 2026

Scrolling

Give FrameBody a Scroll Area through render and a height, so the body scrolls while the header stays in place.

Build log

Props

Base UI's styling (opens in a new tab) and composition (opens in a new tab) guides say more about className, style and render.

Frame

FrameHeader

FrameTitle

FrameActions

FrameBody

FrameFooter