Buttons
Use button links and button groups with local SVG icon packs.
Buttons
Use ::button leaf directives for link buttons and :::buttons container directives for button groups.
1::button[Home]{2 href="/home"3 icon="@fa-duotone/home"4}
::button is the real Markdown directive. The editor may offer autocomplete shortcuts such as ::button_icon or ::button_full, but those are snippet variants only. Selecting them inserts canonical ::button[...] Markdown; writing ::button_icon in source is treated as an unknown directive.
::button
Attributes:
href: required link targetvariant:primary,secondary,outline,ghost, orlinksize:sm,md, orlgicon: local icon reference such as@fa-duotone/homeiconPosition:leftorrightnewTab: openhrefin a new tab whentrueariaLabel: accessible label for icon-only buttons
Defaults:
variant="primary"size="md"iconPosition="left"newTab="false"
Buttons render as anchors. When newTab is true, the renderer adds target="_blank" and rel="noopener noreferrer".
1::button[GitHub]{2 href="https://github.com/valkyrianlabs"3 icon="@brand/github"4 newTab=true5 variant="secondary"6}
Icon-only buttons require ariaLabel:
1::button[]{2 href="/settings"3 icon="@fa-duotone/gear"4 ariaLabel="Open settings"5}
:::buttons
Attributes:
align:left,center, orrightstack:mobile,always, ornevergap:sm,md, orlg
Defaults:
align="left"stack="mobile"gap="md"
1:::buttons{2 align="center"3 stack="mobile"4 gap="md"5}6::button[Get Started]{7 href="/docs"8 variant="primary"9 icon="@fa-duotone/rocket"10}11 12::button[GitHub]{13 href="https://github.com/valkyrianlabs"14 variant="secondary"15 icon="@brand/github"16 newTab=true17}18:::
