Sidebar

Responsive sidebar layout.

Examples

Properties

PropertyAttributeDescriptionType nameTypeDefault
sidesideTreat as left sidebar unless exactly `"left"` (any other value → right).stringstring"left"
sideWidthside-widthWhen set, sidebar uses this `flex-basis` when adjacent; otherwise width follows content.stringstring""
contentMincontent-minMinimum width of the main (default) slot in horizontal layout.stringstring"50%"
spacingspacingGap between sidebar and content.DuoSpacing(typeof duoSpacingValues)[number]"m"
stretchstretchStretch sidebar and main to equal row height (default `true`)booleanbooleantrue

Slots

NameDescription
sidebarNarrow column (media, actions, labels, etc.)
defaultMain content region

Usage

The Sidebar suits all content types. It commonly places media beside descriptions but also aligns buttons with form inputs, where the button acts as a sidebar with content-based width.