TypstDocumentation

boxShowable
Question mark

An inline-level container that sizes content.

All elements except inline math, text, and boxes are block-level and cannot occur inside of a paragraph. The box element is an inline-level container. Boxes take the size of their contents by default but can also be sized explicitly.

Note: While the behavior above will be the default in the future, the transformation functions scale, rotate, and move will currently yield inline nodes within paragraphs.

Example

Refer to the docs
#box(
  height: 9pt,
  image("docs.svg")
)
for more information.
Preview

Parameters
Question mark

body
contentPositional
Question mark

The contents of the box.

width

The width of the box.

height

The height of the box.