Typst Fumadocs

Square

Documentation for the `square` function.

A square with optional content.

Example

Loading compiler...
#square(
  size: auto | length,
  width: auto | relative,
  height: auto | relative | fraction,
  fill: none | color | gradient | tiling,
  stroke: none | auto | length | color | gradient | stroke | tiling | dictionary,
  radius: relative | dictionary,
  inset: relative | dictionary,
  outset: relative | dictionary,
  body
) -> content

Parameters

Prop

Type

On this page