ObjectStackObjectStack

Layout and basic components — component reference

The layout primitives and basic display components: flex, grid, stack, card, tabs, text, button and more.

These are the layout primitives and basic display components. The containers among them take child components; the rest draw text, images, icons, badges and buttons.

This page is generated from the repo-root sdui.manifest.json, the component manifest CI regenerates from the renderer registry. Regenerate it with node scripts/gen-sdui-reference.mjs; node scripts/gen-sdui-reference.mjs --check fails when it is stale.

accordion

Namespace ui.

InputTypeRequiredDescription
accordionTypeenum: single, multiple—
collapsibleboolean—
itemsarrayArray of { trigger, content, value }
classNamestring—

alert

Namespace ui.

InputTypeRequiredDescription
titlestringyes—
descriptionstring—
variantenum: default, destructive—
classNamestring—
childrenslotRich description content, rendered when description is not set

badge

Namespace ui.

InputTypeRequiredDescription
labelstring—
variantenum: default, secondary, destructive, outline—
classNamestring—
childrenslotRich label content, rendered when label is not set

box

Namespace ui · a container: it takes child components.

InputTypeRequiredDescription
classNamestring—
childrenslot—

button

Namespace ui.

InputTypeRequiredDescription
labelstring—
variantenum: default, secondary, destructive, outline, ghost, link—
sizeenum: default, sm, lg, icon—
classNamestring—
childrenslotRich label content, rendered when label is not set

card

Namespace ui · a container: it takes child components.

InputTypeRequiredDescription
titlestring—
descriptionstring—
classNamestring—
childrenslot—

container

Namespace ui · a container: it takes child components.

InputTypeRequiredDescription
maxWidthenum: [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object]—
paddingenum: [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object]Padding step on the container spacing scale; 0 is none. Default 4.
centeredboolean—
classNamestring—
childrenslot—

flex

Namespace ui · a container: it takes child components.

InputTypeRequiredDescription
directionenum: row, col, row-reverse, col-reverse—
justifyenum: start, end, center, between, around, evenly—
alignenum: start, end, center, baseline, stretch—
gapenum: [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object]Gap step between items; 0 is none. Default 2.
wrapbooleanAllow flex items to wrap
classNamestring—
childrenslot—

grid

Namespace ui · a container: it takes child components.

InputTypeRequiredDescription
columnsenum | object: [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object]Column count, 1 to 12, or an object of such counts keyed by breakpoint (xs, sm, md, lg, xl, 2xl). Default 2.
gapenum: [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object]Gap step between items; 0 is none. Default 4.
classNamestring—
childrenslot—

icon

Namespace ui.

InputTypeRequiredDescription
iconstring—
sizenumber—
colorstring—
classNamestring—

image

Namespace ui.

InputTypeRequiredDescription
srcstring—
altstring—
classNamestring—

stack

Namespace ui · a container: it takes child components.

InputTypeRequiredDescription
directionenum: col, row, col-reverse, row-reverse—
gapenum: [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object]Gap step between items; 0 is none. Default 2.
alignenum: start, end, center, stretch, baseline—
justifyenum: start, end, center, between, around, evenly—
classNamestring—
childrenslot—

tabs

Namespace ui.

InputTypeRequiredDescription
defaultValuestringyes—
classNamestring—
itemsarray—

text

Namespace ui.

InputTypeRequiredDescription
contentstringyes—
variantenum: h1, h2, h3, h4, h5, h6, body, caption, overline—
alignenum: left, center, right, justify—

On this page