---
title: "Frame"
description: "A soft tray that groups related panels under one title, with an optional footer bar for help text and the save action. Panels can be links or buttons."
url: https://gelatinui.com/components/frame
markdown_url: https://gelatinui.com/components/frame.md
access: free
install: "npx shadcn@latest add @gelatin-ui/frame"
registry_item: https://gelatinui.com/r/frame.json
version: "2026-11-08"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Frame

> A soft tray that groups related panels under one title, with an optional footer bar for help text and the save action. Panels can be links or buttons.

Page: https://gelatinui.com/components/frame

## When to use it

Best for: A soft tray that groups related panels under one title, with an optional footer.

- Use it when several panels belong together.
- Use `render={<form />}` so the footer button submits.
- Use `size="sm"` for dense pages.

## When not to use it

- For one plain block of content, use a `div` with a border.

## Notes for agents

- Every part is optional: `FrameHeader`, `FramePanel`, and `FrameFooter`.
- A `FrameTitle` names the section for you.
- With no title, pass `aria-label`.
- A table sits edge to edge with `className="overflow-hidden p-0"` on the panel.
- Panels can be links or buttons through `render`.
- Put the buttons of a header or footer in `FrameAction`; footer text goes in a `<p>`.

## Anatomy

```text
Frame
├─ FrameHeader (0..n)
├─ FrameTitle (0..n)
├─ FrameDescription (0..n)
├─ FrameAction (0..n)
├─ FramePanel (0..n)
└─ FrameFooter (0..n)
```

## API reference

### Frame

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size` | `"default" \| "sm"` | "default" |  |

Also takes every prop of Base UI `UseRender`: https://base-ui.com/react/components/use-render

### FrameHeader

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### FrameTitle

Also takes every prop of Base UI `UseRender`: https://base-ui.com/react/components/use-render

### FrameDescription

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### FrameAction

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### FramePanel

Also takes every prop of Base UI `UseRender`: https://base-ui.com/react/components/use-render

### FrameFooter

No props of its own: `className`, `children`, and every other prop go to the element it renders.

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| Frame | `frame` | `aria-disabled`, `data-icon` | `--radius-lg` | `motion-timing` |
| FrameHeader | `frame-header` | `aria-disabled`, `data-icon` | `--radius-lg` | `motion-timing` |
| FrameTitle | `frame-title` | `aria-disabled`, `data-icon` | `--radius-lg` | `motion-timing` |
| FrameDescription | `frame-description` | `aria-disabled`, `data-icon` | `--radius-lg` | `motion-timing` |
| FrameAction | `frame-action` | `aria-disabled`, `data-icon` | `--radius-lg` | `motion-timing` |
| FramePanel | `frame-panel` | `aria-disabled`, `data-icon` | `--radius-lg` | `motion-timing` |
| FrameFooter | `frame-footer` | `aria-disabled`, `data-icon` | `--radius-lg` | `motion-timing` |

## Usage

Put a header, panels, and a footer in the root.

```tsx title="billing-frame.tsx"
import {
  Frame,
  FrameDescription,
  FrameFooter,
  FrameHeader,
  FramePanel,
  FrameTitle,
} from "@/components/ui/frame";

export function BillingFrame() {
  return (
    <Frame>
      <FrameHeader>
        <FrameTitle>Billing</FrameTitle>
        <FrameDescription>Your plan and your next invoice.</FrameDescription>
      </FrameHeader>
      <FramePanel>Team plan, 12 seats</FramePanel>
      <FrameFooter>Next invoice on December 1</FrameFooter>
    </Frame>
  );
}
```

## Compose

Build it with:

- [Sidebar](https://gelatinui.com/components/sidebar.md): Moves between the settings sections.
- [Field](https://gelatinui.com/components/field.md): Names each control and shows its help or error text.
- [Switch](https://gelatinui.com/components/switch.md): Turns one setting on or off at once.
- [Select](https://gelatinui.com/components/select.md): Picks one value from a short list.
- [Button](https://gelatinui.com/components/button.md): Saves the section or opens a dialog.
- [Toast](https://gelatinui.com/components/toast.md): Confirms the save.
- [Workspace](https://gelatinui.com/components/workspace.md): Holds the app shell: the sidebar and the page.
- [Data List](https://gelatinui.com/components/data-list.md): Shows label and value pairs.

Rules:

- Group with a Frame (`group-in-frames`): Put related panels in one `Frame` with its header and footer outside the panels, and keep a plain `Card` for one block of content.
- Name every control (`label-every-control`): Give every field a visible `Label` (or a `Field`), and every icon button a `Tooltip` or an `aria-label`.
- Labels real apps use (`real-labels`): Write the button and menu labels that real apps use ("Create API key", "Invite members"), with no "…" at the end.
- No layout jump (`no-layout-jump`): When a state change adds, removes, or resizes content, reserve its space or animate its size, so nothing below it jumps.

Patterns: `gelatin://patterns/settings-page`, `gelatin://patterns/dashboard-overview`

## Add it

```bash
npx shadcn@latest add @gelatin-ui/frame
```

It adds 8 registry items: 7 files, 1317 lines, and the npm packages `@base-ui/react`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Empty](https://gelatinui.com/components/empty.md)
- [Data Table](https://gelatinui.com/components/data-table.md)
- [Table](https://gelatinui.com/components/table.md)
- [Card](https://gelatinui.com/components/card.md): Pick Card for one topic in one plain box with a title, content, and actions.

## Accessibility

It renders a `section`, and `FrameTitle` names it.

With a name, the Frame is a region that a screen reader can jump to.
