- Components
- Data display
Surface
A panel. The grey variants (secondary, tertiary) set data-surface; inputs, selects, tabs and the rest switch from the muted fill to the page fill with a visible border, so they do not vanish into the panel.
Installation#
npx shadcn add @ortaui/surfaceExamples#
On the page#
Badge⌘K
Variants: default, secondary, tertiary#
default
Badge⌘K
secondary
Badge⌘K
tertiary
Badge⌘K
Card#
Card
Sets data-surface.
Badge⌘K
Dialog#
Override: surface on the control#
surface="default" inside a Card
Card
Sets data-surface.
Badge⌘K
surface="raised" on the page
Badge⌘K
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "secondary" | "tertiary" | "default" | Panel fill: bg-surface with a border, bg-surface-secondary, or bg-surface-tertiary. Controls inside stay legible on all three. |
| className | string | - | Merged with the component classes via cn(). |