Box

Groups and separates content (notes in prose, cards in grids, dialog bodies).

Examples

Properties

PropertyAttributeDescriptionType nameTypeDefault
spacingspacingInner padding (`none`, `xs`, `s`, `m`, `l`, `xl`; default `m`)DuoBoxSpacingExclude<DuoSpacing, "xxs" | "xxl">"m"
paperpaperApplies the surface background colorbooleanbooleanfalse
roundedroundedApplies component corner radiusbooleanbooleanfalse
dropShadowdrop-shadowApplies a small elevation shadowbooleanbooleanfalse
flexflexSets the internal wrapper display to flexbooleanbooleanfalse

Slots

NameDescription
defaultDefault content inside the box

Usage

A Box is mainly used to group and separate content. This content can be a message or note within text, a card in a grid, or the inner part of a dialog.