box
ShowableShowable functions can be customized with show
rules.
Showable functions can be customized with
show
rules.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.

ParametersParameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
body
The contents of the box.
width
The width of the box.
height
The height of the box.