Components
Panel
Padded inset surface that stacks related content in a column.
import { Button, Panel } from "@openperf/deft";
<Panel.Root>
Description
<Button.Root>Action</Button.Root>
</Panel.Root>;When to use
| Need | Component |
|---|---|
| Content that is read, grouped on one surface | Panel |
| Rows of settings or links | List |
| The card of a page outside the dashboard shell | Standalone.Panel in Standalone |
List draws its own surface, so it does not go inside a Panel.
Composition
Children stack in a column with a 12px gap inside 12px of padding; change either through className. A Panel has no title: put it under a Section.Header from Section when the group needs a name.
Pass render to use another element with the same look:
<Panel.Root render={<form onSubmit={save} />}>
<Button.Root type="submit">Save</Button.Root>
</Panel.Root>API
Panel.Root declares no props of its own. It takes render to replace the underlying <div>.