Components and node types

The 14 components in the DocStudio designer toolbox, what each one does, and how reusable components differ from built-in node types.

The toolbox

The designer toolbox groups the built-in node types:

Group Components
Content Text, Image, Barcode, QR code, Shape, Divider, Page number
Layout Stack, Row, Grid, Section, Fixed region
Data Repeater, Table
  • Text holds segments: literal strings and bindings.
  • Image needs an asset: identifier or an https URL, and an optional alt and fit.
  • Barcode supports code128, code39 and ean13. A value the format cannot encode draws nothing and reports a warning.
  • QR code holds up to 213 bytes in this implementation.
  • Shape is a rectangle, ellipse or line.
  • Page number supports {n} and {total}.
  • Section can change direction or tokens for its children.
  • Fixed region is the only place where absolute frame coordinates are allowed.

Details for each one are in the designer user guide.

Reusable components

A reusable component is a template that other templates import by name and version. It declares props and slots, and a document pins it with ref: "name@major.minor.patch". Publishing a new version never changes documents that pinned an older one. See template reuse.

Host components

A host application can register extra components through the registry, with separate facets for schema, rendering and the editor. Host components are trusted code that runs in the host's trust domain.

Common settings

Every node accepts style, styleRef, styleWhen, when (a condition that hides the node), width, height, frame and break. See layouts and pagination.

Last updated 2026-12-03