Skip to content

Components and props

The tables below are generated when this site is built, from the same Zod schemas the designer’s inspector and document import use. A prop is required unless it is marked optional; a value list ending in null means the prop is nullable. Expression values — {"$state": …}, {"$item": …}, {"$index": true}, {"$label": …}, {"$bindState": …}, {"$bindItem": …} and $cond — are explained in bindings and conditions.

Both packs share PageStack, Page, Stack, Grid and Spacer verbatim, and both include Image and Steps. Only Button (press) and Signal’s form controls — Input, NumberField, Choice, Toggle, DateField, DateRange and Slider (commit) — fire an event, and only those form controls edit a value; see forms. A few visual notes the schemas do not capture:

  • Heading with accent on (Signal) or accent: "last" (Nocturne) highlights the final word; Nocturne’s underline underlines the heading.
  • DropdownMenu items is one comma-separated string. Choosing an item only closes the menu; menu items fire no actions. To let a person choose a value, use Choice with display: "select".
  • Input with lines above 1 (up to 8) is a text area showing that many lines; import refuses it on any inputType but "text".
  • NumberField stores the raw number. format "currency" needs currency (an ISO 4217 code), "unit" needs unit (a unit Intl names, such as "kilogram"), and "percent" shows a stored fraction (0.25 is 25%). min and max validate: a number outside them is kept and marked invalid, and a typed number is never rounded to step. Import refuses currency or unit beside any other format, min above max, and a static value outside them.
  • Choice options must list 1 to 64 options with distinct values (1 and "1" are the same value). A static value must fit the display: one option value for "radio", "select", "segmented" and "combobox", a list of distinct option values for "checkboxes". "segmented" shows the options as one row of buttons, read by assistive technology as radio buttons; "combobox" is a text field whose typing narrows the options.
  • Toggle renders a switch, or with display a "checkbox" or a "button" that stays pressed while on; its value is true or false. onLabel and offLabel are a button’s text while on and off, and import refuses them on any other display.
  • DateField and DateRange store each date as ISO "YYYY-MM-DD" text ("" once cleared); min and max are ISO dates too. DateField is a typed field, or with display: "picker" also a calendar; a DateRange is always both, its start and end in their own bindings. Import refuses a literal that is not a real day, min after max, a literal date outside them and a literal range ending before it starts. Their visuals load the first time one renders.
  • Slider picks a number from min to max in steps (1 when left out), which must divide the range into whole steps; import refuses a literal value off them. It shows the number as stored, marked invalid when a binding holds one off its stops, and none until one is stored. Its value is shown in format: currency needs currency, unit needs unit, and import refuses either beside another format; percent reads a fraction.
  • Value shows its label above its value, and empty in place of a value that is missing or empty; see show answers and values.
  • Grid minCellWidth is passed to the stylesheet as --ui-min-cell, which the shipped mica/runtime.css does not use yet.
  • Steps shows its format with {n} the shown page’s position and {total} the number of counted pages: every page, or the 1 to 50 distinct page keys in pages. On a page outside pages it renders nothing. Import refuses any other {…} in format and a key in pages that is not a page of the root PageStack; see pages and navigation.
  • Image src must be a URL; the packs’ own templates use inline SVG data URIs so they render offline.

Signal — mica.core version 1.0.0. Crisp operational surfaces, citrus accents, and practical controls. It has 21 components: PageStack, Page, Stack, Grid, Spacer, Section, Heading, Text, Button, Avatar, DropdownMenu, Input, NumberField, Choice, Toggle, DateField, DateRange, Slider, Image, Value, Steps.

PageStack — Page stack

Structural container for pages in a micro-app. Palette group: Layout (not in the palette; the designer creates it). Accepts child components.

PropValuesDescription
nametext (not empty)Micro-app name
Element as the palette inserts it
{
"type": "PageStack",
"props": {
"name": "Untitled micro-app"
},
"children": []
}

Page — Page

A routable page inside a PageStack. Palette group: Layout (not in the palette; the designer creates it). Accepts child components.

PropValuesDescription
titletext (not empty)Label shown in the page switcher
background"paper" · "mist" · "ink"Page background treatment
Element as the palette inserts it
{
"type": "Page",
"props": {
"title": "New page",
"background": "paper"
},
"children": []
}

Stack — Flex stack

Flex layout flowing vertically or horizontally. Palette group: Layout. Accepts child components.

PropValuesDescription
direction"vertical" · "horizontal"Flow direction
gap"none" · "xs" · "sm" · "md" · "lg" · "xl"Space between children
align"stretch" · "start" · "center" · "end"Cross-axis alignment
justify"start" · "center" · "end" · "between"Main-axis distribution
wraptrue · falseAllow children to wrap
padding"none" · "sm" · "md" · "lg" · "xl"Inner spacing
surface"none" · "paper" · "soft" · "ink" · "citrus" · nullOptional background surface
Element as the palette inserts it
{
"type": "Stack",
"props": {
"direction": "vertical",
"gap": "md",
"align": "stretch",
"justify": "start",
"wrap": false,
"padding": "md",
"surface": null
},
"children": []
}

Grid — Grid

Responsive multi-column grid. Palette group: Layout. Accepts child components.

PropValuesDescription
columnswhole number 1–4Number of columns
gap"none" · "xs" · "sm" · "md" · "lg" · "xl"Space between cells
padding"none" · "sm" · "md" · "lg" · "xl"Inner spacing
minCellWidthwhole number 120–420 · nullResponsive minimum cell width
Element as the palette inserts it
{
"type": "Grid",
"props": {
"columns": 2,
"gap": "md",
"padding": "none",
"minCellWidth": 180
},
"children": []
}

Spacer — Spacer

Purposeful empty space. Palette group: Layout. Has no children.

PropValuesDescription
sizewhole number 4–160Space in pixels
axis"vertical" · "horizontal"Space direction
Element as the palette inserts it
{
"type": "Spacer",
"props": {
"size": 32,
"axis": "vertical"
},
"children": []
}

Section — Section

Framed content section. Palette group: Layout. Accepts child components.

PropValuesDescription
eyebrowtext · nullSmall label above the title
titletext · nullOptional section title
tone"plain" · "outlined" · "raised" · "ink"Surface style
padding"none" · "sm" · "md" · "lg" · "xl"Inner spacing
Element as the palette inserts it
{
"type": "Section",
"props": {
"eyebrow": null,
"title": "Section title",
"tone": "outlined",
"padding": "lg"
},
"children": []
}

Heading — Heading

Display or section heading. Palette group: Content. Has no children.

PropValuesDescription
contenttext (not empty) · {"$state": "/state/path"} · {"$item": "row/field"} · {"$index": true} · {"$format": "number" | "currency" | "percent" | "date" | "count", "value": <read>, …options} · {"$calc": "sum" | "product" | "difference" | "quotient" | "round" | "min" | "max" | "daysBetween", "args": [<operand>, …]} · {"$expr": "sum" | "product" | "difference" | "quotient" | "round" | "min" | "max" | "daysBetween" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "and" | "or" | "not" | "isEmpty" | "if", "args": [<operand>, …]}Heading text
level"1" · "2" · "3"Semantic level
align"left" · "center" · "right"Text alignment
accenttrue · falseHighlight the final word
Element as the palette inserts it
{
"type": "Heading",
"props": {
"content": "A clear heading",
"level": "2",
"align": "left",
"accent": false
},
"children": []
}

Text — Text

Body or supporting text. Palette group: Content. Has no children.

PropValuesDescription
contenttext · {"$state": "/state/path"} · {"$item": "row/field"} · {"$index": true} · {"$format": "number" | "currency" | "percent" | "date" | "count", "value": <read>, …options} · {"$calc": "sum" | "product" | "difference" | "quotient" | "round" | "min" | "max" | "daysBetween", "args": [<operand>, …]} · {"$expr": "sum" | "product" | "difference" | "quotient" | "round" | "min" | "max" | "daysBetween" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "and" | "or" | "not" | "isEmpty" | "if", "args": [<operand>, …]} · {"$label": "choice-key"}Body copy
size"sm" · "md" · "lg"Text size
tone"default" · "muted" · "accent" · "inverse"Text tone
align"left" · "center" · "right"Text alignment
italictrue · falseUse italic styling
Element as the palette inserts it
{
"type": "Text",
"props": {
"content": "Add your copy here.",
"size": "md",
"tone": "default",
"align": "left",
"italic": false
},
"children": []
}

Button — Button

Primary user action. Palette group: Controls. Has no children.

PropValuesDescription
labeltext (not empty)Button label
variant"solid" · "outline" · "ghost" · "danger"Visual style
size"sm" · "md" · "lg"Button size
disabledtrue · false · {"$cond": <condition>, "$then": true, "$else": false}Ignore presses, always or while a condition holds
fullWidthtrue · falseStretch to available width
busy (optional)true · false · {"$cond": <condition>, "$then": true, "$else": false}Show as busy and ignore presses, always or while a condition holds
busyLabel (optional)text (not empty)Label shown while busy; the label stays when absent
Element as the palette inserts it
{
"type": "Button",
"props": {
"label": "Continue",
"variant": "solid",
"size": "md",
"disabled": false,
"fullWidth": false
},
"children": []
}

Avatar — Avatar

Person or team identity. Palette group: Content. Has no children.

PropValuesDescription
nametext (not empty)Person or team name
imageUrlURL · nullOptional portrait URL
size"sm" · "md" · "lg"Avatar size
status"online" · "away" · "busy" · nullOptional presence status
Element as the palette inserts it
{
"type": "Avatar",
"props": {
"name": "Avery Stone",
"imageUrl": null,
"size": "md",
"status": "online"
},
"children": []
}

DropdownMenu — Dropdown

Compact menu of secondary actions. Palette group: Controls. Has no children.

PropValuesDescription
labeltext (not empty)Menu trigger label
itemstext (not empty)Comma-separated menu items
align"left" · "right"Menu alignment
compacttrue · falseUse compact rows
Element as the palette inserts it
{
"type": "DropdownMenu",
"props": {
"label": "Actions",
"items": "Open, Duplicate, Archive",
"align": "right",
"compact": false
},
"children": []
}

Input — Input

Labeled text entry field, one line or a text area. Palette group: Controls. Has no children.

PropValuesDescription
labeltext (not empty)Field label
placeholdertextPlaceholder text
inputType"text" · "email" · "search" · "number"Input type
lines (optional)whole number 1–8 · nullLines of text shown, 1–8: more than one makes a text area for notes and reasons. Text inputs only
requiredtrue · false · {"$cond": <condition>, "$then": true, "$else": false}Show as required, always or while a condition holds
helpTexttext · nullOptional help text
maxLength (optional)whole number 1–10000 · nullMost characters a person can type or paste
value (optional)text · {"$bindState": "/state/path"} · {"$bindItem": "row/field"}Field value, literal or bound to state
writable (optional)true · false · {"$state": "/state/path"}Accept edits; true or absent is editable
error (optional){"$state": "/state/path"}Message shown under the field while it holds text, such as the host's field error
rules (optional){ required?: true, enum?: [text or number, …], pattern?, minLength?, maxLength? }Local checks when a validate action runs: required, enum, pattern, minLength, maxLength. Needs a $bindState value and an error $state path validate may write (not a declared object path, not overlapping any $bindState). The host is not asked.
Element as the palette inserts it
{
"type": "Input",
"props": {
"label": "Email address",
"placeholder": "name@example.com",
"inputType": "email",
"required": false,
"helpText": null
},
"children": []
}

NumberField — Number

Number entry with a stepper, bounds and a number, currency, percent or unit format; stores the raw number. Palette group: Controls. Has no children.

PropValuesDescription
labeltext (not empty)Field label
format (optional)"number" · "currency" · "percent" · "unit"Show the number plain (the default when left out), as money, as a percent of a stored fraction, or with a unit
currency (optional)ISO 4217 code, like "EUR"ISO 4217 currency code, such as “EUR”. Currency format only, which needs it
unit (optional)Intl unit, like "kilogram" or "kilometer-per-hour"Unit, such as “kilogram”, “hour” or “kilometer-per-hour”. Unit format only, which needs it
min (optional)number · nullLowest number the field accepts; a lower one is kept and marked invalid, never changed
max (optional)number · nullHighest number the field accepts; a higher one is kept and marked invalid, never changed
step (optional)number above 0 · nullHow far each step of the stepper moves the number; 1 when left out (0.01 for a percent). A typed number is never rounded to it
requiredtrue · false · {"$cond": <condition>, "$then": true, "$else": false}Show as required, always or while a condition holds
helpTexttext · nullOptional help text
value (optional)number · {"$bindState": "/state/path"} · {"$bindItem": "row/field"}The raw number, literal or bound to state; a percent stores a fraction (0.25 is 25%)
writable (optional)true · false · {"$state": "/state/path"}Accept changes; true or absent is changeable
error (optional){"$state": "/state/path"}Message shown under the field while it holds text, such as the host's field error
rules (optional){ required?: true, enum?: [number, …], minimum?, maximum? }Local checks when a validate action runs: required, enum, minimum, maximum. Needs a $bindState value and an error $state path validate may write (not a declared object path, not overlapping any $bindState). The host is not asked.
Element as the palette inserts it
{
"type": "NumberField",
"props": {
"label": "Amount",
"format": "currency",
"currency": "EUR",
"min": 0,
"required": false,
"helpText": null
},
"children": []
}

Choice — Choice

Choice from a fixed list of options. Palette group: Controls. Has no children.

PropValuesDescription
labeltext (not empty)Field label
display"radio" · "select" · "checkboxes" · "segmented" · "combobox"Radio buttons, a select, segmented buttons or a searchable combobox choose one option; checkboxes choose any number
optionslist of { value, label, note? }The options, in order: each a value, the label a person sees, and an optional note shown once that option is chosen
requiredtrue · false · {"$cond": <condition>, "$then": true, "$else": false}Show as required, always or while a condition holds
helpTexttext · nullOptional help text
value (optional)text · number · list of (text · number) · {"$bindState": "/state/path"} · {"$bindItem": "row/field"}Chosen option value (a list of them for checkboxes), literal or bound to state
writable (optional)true · false · {"$state": "/state/path"}Accept changes; true or absent is changeable
error (optional){"$state": "/state/path"}Message shown under the field while it holds text, such as the host's field error
rules (optional){ required?: true, enum?: [text or number, …], pattern?, minLength?, maxLength? }Local checks when a validate action runs: required, enum, pattern, minLength, maxLength. Needs a $bindState value and an error $state path validate may write (not a declared object path, not overlapping any $bindState). The host is not asked.
Element as the palette inserts it
{
"type": "Choice",
"props": {
"label": "Priority",
"display": "radio",
"options": [
{
"value": "low",
"label": "Low"
},
{
"value": "normal",
"label": "Normal"
},
{
"value": "high",
"label": "High"
}
],
"required": false,
"helpText": null
},
"children": []
}

Toggle — Toggle

On/off value shown as a switch, a checkbox or a toggle button. Palette group: Controls. Has no children.

PropValuesDescription
labeltext (not empty)Field label
display (optional)"switch" · "checkbox" · "button"A switch (the default when left out), a checkbox, or a button that stays pressed while on
onLabel (optional)text (not empty)Button text while on, such as “Following”; the label when left out. Button display only
offLabel (optional)text (not empty)Button text while off, such as “Follow”; the label when left out. Button display only
requiredtrue · false · {"$cond": <condition>, "$then": true, "$else": false}Show as required, always or while a condition holds
helpTexttext · nullOptional help text
value (optional)true · false · {"$bindState": "/state/path"} · {"$bindItem": "row/field"}On or off, literal or bound to state
writable (optional)true · false · {"$state": "/state/path"}Accept changes; true or absent is changeable
error (optional){"$state": "/state/path"}Message shown under the field while it holds text, such as the host's field error
Element as the palette inserts it
{
"type": "Toggle",
"props": {
"label": "Email me updates",
"required": false,
"helpText": null
},
"children": []
}

DateField — Date

Calendar date stored as YYYY-MM-DD, typed or picked from a calendar. Palette group: Controls. Has no children.

PropValuesDescription
labeltext (not empty)Field label
display (optional)"field" · "picker"A typed date field (the default when left out), or the field with a calendar to pick from
min (optional)date "YYYY-MM-DD"Earliest date a person may enter, YYYY-MM-DD
max (optional)date "YYYY-MM-DD"Latest date a person may enter, YYYY-MM-DD
requiredtrue · false · {"$cond": <condition>, "$then": true, "$else": false}Show as required, always or while a condition holds
helpTexttext · nullOptional help text
value (optional)date "YYYY-MM-DD" · "" · {"$bindState": "/state/path"} · {"$bindItem": "row/field"}The date as YYYY-MM-DD ("" for none), literal or bound to state
writable (optional)true · false · {"$state": "/state/path"}Accept changes; true or absent is changeable
error (optional){"$state": "/state/path"}Message shown under the field while it holds text, such as the host's field error
rules (optional){ required?: true, enum?: [text or number, …], pattern?, minLength?, maxLength? }Local checks when a validate action runs: required, enum, pattern, minLength, maxLength. Needs a $bindState value and an error $state path validate may write (not a declared object path, not overlapping any $bindState). The host is not asked.
Element as the palette inserts it
{
"type": "DateField",
"props": {
"label": "Date",
"required": false,
"helpText": null
},
"children": []
}

DateRange — Date range

Start and end dates, each stored as YYYY-MM-DD, typed or picked from a calendar. Palette group: Controls. Has no children.

PropValuesDescription
labeltext (not empty)Field label
min (optional)date "YYYY-MM-DD"Earliest date a person may enter, YYYY-MM-DD
max (optional)date "YYYY-MM-DD"Latest date a person may enter, YYYY-MM-DD
requiredtrue · false · {"$cond": <condition>, "$then": true, "$else": false}Show as required, always or while a condition holds
helpTexttext · nullOptional help text
start (optional)date "YYYY-MM-DD" · "" · {"$bindState": "/state/path"} · {"$bindItem": "row/field"}First day as YYYY-MM-DD ("" for none), literal or bound to state
end (optional)date "YYYY-MM-DD" · "" · {"$bindState": "/state/path"} · {"$bindItem": "row/field"}Last day as YYYY-MM-DD ("" for none), literal or bound to state; shown invalid while before the start
writable (optional)true · false · {"$state": "/state/path"}Accept changes; true or absent is changeable
error (optional){"$state": "/state/path"}Message shown under the field while it holds text, such as the host's field error
Element as the palette inserts it
{
"type": "DateRange",
"props": {
"label": "Dates",
"required": false,
"helpText": null
},
"children": []
}

Slider — Slider

Number picked by dragging along a range, such as a rating. Palette group: Controls. Has no children.

PropValuesDescription
labeltext (not empty)Field label
minnumberLowest value
maxnumberHighest value
step (optional)numberDistance between values; 1 when left out
format (optional)"number" · "currency" · "percent" · "unit"Show the number plain (the default when left out), as money, as a percent of a stored fraction, or with a unit
currency (optional)ISO 4217 code, like "EUR"ISO 4217 currency code, such as “EUR”. Currency format only, which needs it
unit (optional)Intl unit, like "kilogram" or "kilometer-per-hour"Unit, such as “kilogram”, “hour” or “kilometer-per-hour”. Unit format only, which needs it
requiredtrue · false · {"$cond": <condition>, "$then": true, "$else": false}Show as required, always or while a condition holds
helpTexttext · nullOptional help text
value (optional)number · {"$bindState": "/state/path"} · {"$bindItem": "row/field"}The number chosen, literal or bound to state
writable (optional)true · false · {"$state": "/state/path"}Accept changes; true or absent is changeable
error (optional){"$state": "/state/path"}Message shown under the field while it holds text, such as the host's field error
rules (optional){ required?: true, enum?: [number, …], minimum?, maximum? }Local checks when a validate action runs: required, enum, minimum, maximum. Needs a $bindState value and an error $state path validate may write (not a declared object path, not overlapping any $bindState). The host is not asked.
Element as the palette inserts it
{
"type": "Slider",
"props": {
"label": "Rating",
"min": 0,
"max": 10,
"step": 1,
"required": false,
"helpText": null
},
"children": []
}

Image — Image

Responsive image with alt text and an optional caption. Palette group: Content. Has no children.

PropValuesDescription
srcURLImage URL
alttext (not empty)Accessible description
fit"cover" · "contain"Frame fitting
ratio"1:1" · "4:3" · "3:2" · "16:9" · nullOptional fixed aspect ratio
captiontext · nullOptional caption
Element as the palette inserts it
{
"type": "Image",
"props": {
"src": "data:image/svg+xml;utf8,%3Csvg%2…",
"alt": "Placeholder artwork with a layered horizon",
"fit": "cover",
"ratio": "16:9",
"caption": null
},
"children": []
}

Value — Value

Labelled read-only value, such as an answer on a review page. Palette group: Content. Has no children.

PropValuesDescription
labeltext (not empty)What the value is, shown above it
valuetext · {"$state": "/state/path"} · {"$item": "row/field"} · {"$index": true} · {"$format": "number" | "currency" | "percent" | "date" | "count", "value": <read>, …options} · {"$calc": "sum" | "product" | "difference" | "quotient" | "round" | "min" | "max" | "daysBetween", "args": [<operand>, …]} · {"$expr": "sum" | "product" | "difference" | "quotient" | "round" | "min" | "max" | "daysBetween" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "and" | "or" | "not" | "isEmpty" | "if", "args": [<operand>, …]} · {"$label": "choice-key"}The value shown: literal, a state read, or a Choice's option label
empty (optional)text (not empty)Shown in place of the value while it is missing or empty
error (optional){"$state": "/state/path"}Message shown under the value while it holds text, such as the host's field error
Element as the palette inserts it
{
"type": "Value",
"props": {
"label": "Label",
"value": "Value"
},
"children": []
}

Steps — Steps

Step counter such as “Step 2 of 3”, read from the current page. Palette group: Content. Has no children.

PropValuesDescription
formattext (not empty)Text shown on each counted page; {n} is the page's position and {total} the number of counted pages
pages (optional)list of text (not empty)The pages to count, counted in page order; every page when left out, and nothing shows on a page outside the list
Element as the palette inserts it
{
"type": "Steps",
"props": {
"format": "Step {n} of {total}"
},
"children": []
}