TextFigure

PropertyDefaultMeaning
caption—String or Element placed after the figure children
caption-style / caption-*—Nested or flat text options for a generated caption
gapem(0.5)Space between the figure and caption
padding0Length or Box padding shorthand
border-widthpx(0)Border thickness inside the frame
border-colorResolved colorBorder paint
backgroundnoneBox background
border-radius0Scalar, { x, y } / [x, y] pair, or side/corner object
align"start"Content alignment on both axes
clipfalseClip content inside the rounded border

A figure followed by an optional caption (string or Element). caption-style styles generated text, gap defaults to 0.5em, and Box props control outer decoration. Children must be figure Elements. Give a figure an em/px height, or use grow={1} on it when TextFigure receives a finite height (for example, as the body of a Slide). The figure then takes the space left by the caption, which reflows at the shared column width.

Scoped caption- props accept generated text options, including caption-color, caption-font-size, and caption-wrap. They override matching fields in caption-style. Supplied caption Elements retain their own props.