Modifiers
Modifier keywords follow the component label on the same line, separated by spaces.
button "Save" primary
button "Delete" disabled
input "Email" error
alert "Session expired" warning Multiple modifiers can be combined:
button "Archive" primary disabled Full reference
| Modifier | Accepted by | Visual effect |
|---|---|---|
primary | button, badge | Filled blue background / blue pill |
disabled | button, input, select, textarea, checkbox, radio, toggle, badge | Reduced opacity, non-interactive appearance |
active | nav items, tabs items, checkbox, radio, toggle, list_item, stepper items | Selected / checked / on state |
error | input, select, textarea, alert, toast, banner, badge | Red border or red background |
warning | alert, toast, banner, badge | Amber background |
info | alert, toast, banner | Blue background |
horizontal | stack | Arranges children in a row with equal width shares |
centered | footer, text, title | Footer: children in a centered column. Text/title: centered text |
left | header | Nav items aligned to the left |
right | header | Nav items aligned to the right (default) |
small | icon, avatar, image | Smaller variant (icon 12px box, avatar 24px, image 48px tall) |
large | icon, avatar, image | Larger variant (icon 24px box, avatar 48px, image 120px tall) |
Layout direction is contextual, not a modifier.
navrenders horizontally inside aheaderand vertically inside asidebar;stackis vertical unless markedhorizontal. The wordverticalis accepted by the parser for backwards compatibility but has no effect.
nav item modifiers
The nav component takes a comma-separated list of items. The active modifier applies to individual items, not to the nav component itself:
nav "Dashboard" active, "Users", "Settings" Only one item should carry active at a time.
Modifier scope
Modifiers are parsed on the same line as the component declaration. They cannot appear on the following line.
button "Save"
primary ← NOT valid — primary is on a new line button "Save" primary ← valid