Home

Icon

This is a type used in Stencila Schema for icons embedded in document content.

It exists so icons can be represented structurally and styled consistently across renderers rather than being reduced to opaque HTML or font markup. This supports document-authoring and publishing workflows that need portable icon references.

Key properties identify the icon set, icon name, and any presentational hints needed by renderers.

Analogues

The following external types, elements, or nodes are similar to a Icon:

  • HTML icon element pattern: Approximate HTML analogue because icons are often represented using <i> or <span> with classes, but HTML has no dedicated semantic icon element.

Properties

The Icon type has these properties:

NameDescriptionTypeInherited from
nameThe name of the icon e.g. "clock" or "lucide:clock".String-
labelAn accessible text label for the icon.String-
decorativeWhether the icon is purely decorative.Boolean-
styleTailwind utility classes to apply to the icon.String-
idThe identifier for this item.StringEntity

Related

The Icon type is related to these types:

Bindings

The Icon type is represented in:


This documentation was generated from Icon.yaml by docs_types.rs.

© 2026 Stencila