Block Types Reference

Fields listed here are from the actual component Props interfaces in src/blocks/.

Content blocks

docs.hero

Splash hero with title, tagline, image, and action buttons. When any block on the page is a docs.hero, the layout switches to splash mode (no sidebar or TOC).

FieldTypeDescription
`title`stringHero title (falls back to page title if empty)
`tagline`stringSubtitle text below the title
`imageSrc`stringImage URL
`imageAlt`stringImage alt text
`actionsJson`stringJSON array of `{ text, link, icon, variant }` objects

Action variants: primary, secondary, minimal.

docs.image

Standalone image block with optional link wrapper.

FieldTypeDescription
`src`stringImage URL
`alt`stringAlt text
`href`stringOptional link URL — wraps the image in an anchor

docs.html

Raw HTML passthrough. Also used internally for preprocessed text blocks, headings, and tables.

FieldTypeDescription
`html`stringRaw HTML content

code

Syntax-highlighted code block rendered by Expressive Code.

FieldTypeDescription
`language`stringLanguage identifier (e.g. `ts`, `bash`, `json`)
`code`stringThe code content

Component blocks

star-lite.tabs

Tabbed content panels.

FieldTypeDescription
`id`stringOptional section ID
`tabsJson`stringJSON array of `{ label, icon, content }` objects

star-lite.card

Content card with optional icon and color accent.

FieldTypeDescription
`id`stringOptional section ID
`title`stringCard title
`icon`stringIcon name from the icon set
`color`stringColor: `purple`, `orange`, `green`, `red`, `blue`
`content`stringCard body text

star-lite.cardGrid

Grid layout that arranges cards in columns.

FieldTypeDescription
`id`stringOptional section ID
`cardsJson`stringJSON array of card objects
`stagger`stringStagger layout flag

star-lite.linkCard

Navigation card with title, description, and link.

FieldTypeDescription
`id`stringOptional section ID
`title`stringCard title
`href`stringLink URL
`description`stringDescription text
`target`stringLink target (e.g. `_blank`)

star-lite.aside

Callout box in one of four variants.

FieldTypeDescription
`id`stringOptional section ID
`type`string`note`, `tip`, `caution`, or `danger`
`title`stringCustom title (defaults to the capitalized type name)
`content`stringCallout body text (rendered as markdown)

star-lite.badge

Inline status badge.

FieldTypeDescription
`id`stringOptional section ID
`text`stringBadge text
`variant`string`default`, `note`, `tip`, `caution`, `danger`, or `success`
`size`string`small`, `medium`, or `large`

star-lite.fileTree

File and directory tree display.

FieldTypeDescription
`id`stringOptional section ID
`treeHtml`stringTree content as indented list text

star-lite.icon

Inline icon from the Star-Lite icon set.

FieldTypeDescription
`id`stringOptional section ID
`name`stringIcon name (see [Icons Reference](/reference/icons))
`label`stringAccessible label
`color`stringIcon color
`size`stringIcon size

star-lite.linkButton

Styled link rendered as a pill button.

FieldTypeDescription
`id`stringOptional section ID
`text`stringButton label
`href`stringLink URL
`icon`stringIcon name
`iconPlacement`string`start` or `end` (default: `end`)
`variant`string`primary`, `secondary`, or `minimal`

star-lite.steps

Numbered step-by-step instructions.

FieldTypeDescription
`id`stringOptional section ID
`start`numberStarting step number (default: 1)
`stepsJson`stringJSON array of `{ content }` objects