Baustein UI

Layer · Surface

Beta

Surface.

Interface layers. Cards, sheets, dialogs, panels. Currently bau-card ships as the surface primitive with header, default, and footer slot.

bau-card

Container · Primitive

Surface container with three-part composition. Header in serif, body/footer in sans, divider between footer and body as a hairline.

basic

body only

A card can appear entirely without header or footer — just padding, background, border, and shadow.

with header

Confirm shipping address

The entered data will be saved. You can change it any time under "Account → Addresses".

with footer

Action required

Footer renders with a hairline divider. Embedded bau-stack composition recommended.

Cancel Save

slots

Slot Effect
header Optional. Renders in serif, without divider.
(default) Body content.
footer Optional. With hairline divider above the slot content.

css custom properties

Property Default Effect
--bau-card-bg var(--bau-color-bg-raised) Card background color.
--bau-card-padding var(--bau-space-6) Inner padding.

Roadmap

planned

Planned for Surface: bau-panel, bau-sheet, bau-dialog, bau-popover, bau-tooltip, bau-toast, bau-callout.