Shortcodes are inline helpers you call from Markdown with the
{{ * name args */> }}syntax. Each maps to a template in the theme's
shortcodes/directory and renders with Chirp UI markup. Arguments are
key="value"pairs (some shortcodes also accept a leading positional value);
paired shortcodes wrap inner content between an opening and a{{ * /name */> }}
closing tag.
This page documents every shipped shortcode with its parameters and a live rendered example.
| Shortcode | Purpose |
|---|---|
component_specimen |
Render a live Chirp UI component inside prose |
tip / warning / danger |
Inline semantic callouts |
figure |
Captioned, optionally linked image |
img |
Bare image (use insidegallery) |
gallery |
Responsive image grid |
audio |
Audio player card |
details |
Collapsible disclosure (accordion item) |
highlight |
Language-tagged code block |
blockquote |
Cited pull-quote |
ref / relref |
Link to another page by source path |
param |
Echo a config or front-matter value |
component_specimen
Renders a live, in-page demo of a Chirp UI component. This is the live-demo mechanism the components catalog uses, so a reader can see real rendered output without leaving the site or running a local app.
The shortcode demos a curated set of primitives (toggle_group, slider,
scroll_area, item, data_table, kbd, separator, aspect_ratio,
label). For any other name, it renders the inner content you provide as the
preview body.
| Parameter | Required | Default | Description |
|---|---|---|---|
name |
yes | — | Component key (also accepted as the first positional arg) |
title |
no | name |
Heading shown above the preview |
description |
no | — | One-line caption under the title |
| inner | no | — | Fallback preview body for unknownnamevalues |
{{</* component_specimen name="item" title="Item" description="Reusable row anatomy for lists and menus." */>}}
For the full catalog of components with options and live specimens, see the component reference.
tip / warning / danger
Inline semantic callouts. Each is a paired shortcode whose inner Markdown
becomes the callout body, rendered with the Chirp UIcalloutmacro
(success, warning, and errorvariants respectively).
| Parameter | Required | Default | Description |
|---|---|---|---|
title |
no | Tip / Warning / Danger |
Callout heading |
| inner | yes | — | Callout body (Markdown) |
{{</* tip title="Pro tip" */>}}
Prefer the macro vocabulary over raw classes.
{{</* /tip */>}}