ortaui
  1. Components
  2. 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/surface

Examples#

On the page#

Badge⌘K
x

Variants: default, secondary, tertiary#

default

Badge⌘K
x

secondary

Badge⌘K
x

tertiary

Badge⌘K
x

Card#

Card
Sets data-surface.
Badge⌘K
x

Dialog#

Override: surface on the control#

surface="default" inside a Card

Card
Sets data-surface.
Badge⌘K
x

surface="raised" on the page

Badge⌘K
x

API reference#

PropTypeDefaultDescription
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.
classNamestring-Merged with the component classes via cn().