TitleBox

PropertyDefaultMeaning
title—String or Element placed before the content
title-style / title-*boldNested or flat text options for a generated title
gapem(0.6)Space between the title and content
paddingem(0.75)Length 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

TitleBox composes an optional title above text or figure children inside a Box. title is a string or Element; title-style overrides default bold text. Scoped title- props accept text options, including title-color, title-font-size, and title-wrap. They override matching fields in title-style. Supplied title Elements retain their own props. gap defaults to 0.6em, padding to 0.75em. Other props follow Box. Titles are measured content inside the box. For a boxed title centered across the top border, use TitleFrame.