# Kit component reference

*Generated by kui-addon-schema from kit's schema.lua (ADR 0066); do not edit.*

Kit: a UI kit for kui, tuned for dense tool UIs — inputs, data views, overlays, layout, charts and a trace waterfall, drawn by a skin (Ledger, Phosphor, Neutral) the host picks.

Lua places a component with `kit.<name>(props, children)` after `local kit = require("kit.ui")`; Node with `<Name … />` or `Name({ … })` from `@qxuken/kui/kit`. Props are snake_case in Lua and camelCase in Node. An event `<event>` is the prop `on_<event>` (`on<Event>`): the message it arrives as in `update`, the event's fields under `<event>`. A prop's type ending in `?` may be left out; `{T}` is a list of `T`; a colour is `0xRRGGBBAA` or a `$token`, a length px or a `$token`. Every component also takes `key` and `fresh`.

## Contents

Components: [`kit.settings`](#kitsettings), [`kit.panel`](#kitpanel), [`kit.toolbar`](#kittoolbar), [`kit.statusbar`](#kitstatusbar), [`kit.split`](#kitsplit), [`kit.tabs`](#kittabs), [`kit.section`](#kitsection), [`kit.divider`](#kitdivider), [`kit.heading`](#kitheading), [`kit.paragraph`](#kitparagraph), [`kit.content`](#kitcontent), [`kit.columns`](#kitcolumns), [`kit.comparison`](#kitcomparison), [`kit.quote`](#kitquote), [`kit.figure`](#kitfigure), [`kit.visibility`](#kitvisibility), [`kit.button`](#kitbutton), [`kit.icon_button`](#kiticon_button), [`kit.text_field`](#kittext_field), [`kit.password`](#kitpassword), [`kit.text_area`](#kittext_area), [`kit.search`](#kitsearch), [`kit.select`](#kitselect), [`kit.checkbox`](#kitcheckbox), [`kit.checklist`](#kitchecklist), [`kit.switch`](#kitswitch), [`kit.radio_group`](#kitradio_group), [`kit.segmented`](#kitsegmented), [`kit.slider`](#kitslider), [`kit.table`](#kittable), [`kit.list`](#kitlist), [`kit.inspector`](#kitinspector), [`kit.log`](#kitlog), [`kit.badge`](#kitbadge), [`kit.stat`](#kitstat), [`kit.code`](#kitcode), [`kit.markdown`](#kitmarkdown), [`kit.notice`](#kitnotice), [`kit.empty`](#kitempty), [`kit.progress`](#kitprogress), [`kit.skeleton`](#kitskeleton), [`kit.shader`](#kitshader), [`kit.dialog`](#kitdialog), [`kit.popover`](#kitpopover), [`kit.menu`](#kitmenu), [`kit.toast`](#kittoast), [`kit.toaster`](#kittoaster), [`kit.sparkline`](#kitsparkline), [`kit.line_chart`](#kitline_chart), [`kit.bar_chart`](#kitbar_chart), [`kit.histogram`](#kithistogram), [`kit.waterfall`](#kitwaterfall).

Types: [`Variant`](#variant), [`Tone`](#tone), [`Align`](#align), [`Axis`](#axis), [`Skin`](#skin), [`ContentTheme`](#contenttheme), [`ContentLayout`](#contentlayout), [`Density`](#density), [`Level`](#level), [`Browse`](#browse), [`XFormat`](#xformat), [`Appearance`](#appearance), [`ShaderPreset`](#shaderpreset), [`Selection`](#selection), [`SkeletonShape`](#skeletonshape), [`Sizes`](#sizes), [`Choice`](#choice), [`Column`](#column), [`Tab`](#tab), [`Item`](#item), [`Check`](#check), [`Entry`](#entry), [`RowRange`](#rowrange), [`Series`](#series).

## kit.settings

Kit's look for this window: the skin, the density, the hard shadows and any role the brand overrides. Place it once a frame, before the components; it draws nothing.

Lua `kit.settings(props)` · Node `<Settings />`

| prop | Node | type | description |
|---|---|---|---|
| `skin` | `skin` | [Skin](#skin)? | The skin; Ledger when left out. |
| `theme` | `theme` | [ContentTheme](#contenttheme)? | Optional content settings preset: Paper, Signal, Stage or Minimal. Explicit skin, fonts, roles and individual sizes override the preset; layout stays the author's. |
| `density` | `density` | [Density](#density)? | Comfortable when left out. |
| `shadows` | `shadows` | boolean? | The skin's hard shadows; on when left out. |
| `radius` | `radius` | number? | Corner radius in px, for a brand with its own; the skin's when left out. |
| `roles` | `roles` | any? | Roles the brand overrides, by name: `{ accent = 0x2f6fedff, panel = "$brandSurface" }` — a colour, `{ light, dark }` or a token each. An accent given as a colour derives the palette around it: what the skin drew in its accent takes it (the selection, a view switch's chosen segment, the first chart series and waterfall group), what it drew in the accent's hue takes the new hue, the ground and surfaces lean a few percent toward it, and every text role is moved in lightness until it reads at 4.5:1 on what it sits on (WCAG AA), what reads on the accent worked out. Roles the brand names are kept as named. |
| `appearance` | `appearance` | [Appearance](#appearance)? | Kit's colours held light or dark whatever the OS says; the OS's when left out (`system`). |
| `hair` | `hair` | number? | The hairline's width in px (rows, a field's edge); the skin's when left out. |
| `rule` | `rule` | number? | The region rule's width in px (a panel's frame, a control's border); the skin's when left out. |
| `font_ui` | `fontUi` | {string}? | The UI face, as a family list (`{ "Inter", "sans" }`); the skin's when left out. |
| `font_data` | `fontData` | {string}? | The data face (ids, numbers, code), as a family list; the skin's when left out. |
| `font_title` | `fontTitle` | {string}? | Content heading/quote families; the preset's, else the UI face. |
| `font_content` | `fontContent` | {string}? | Reading-text families; the UI face when omitted. |
| `sizes` | `sizes` | [Sizes](#sizes)? | Project typography and content spacing. Fields merge over the preset individually; sizes are logical px. |

## kit.panel

A titled region: a header with the title and its actions, the body, an optional footer.

Lua `kit.panel(props, children)` · Node `<Panel />`

| prop | Node | type | description |
|---|---|---|---|
| `title` | `title` | string? | Its title, as the skin labels regions. |
| `subtitle` | `subtitle` | string? | A line under the title. |
| `scroll` | `scroll` | boolean? | The body scrolls rather than grows. |
| `grow` | `grow` | boolean? | Takes the room its parent leaves. |
| `pad` | `pad` | number? | The body's padding in px; 10 when left out, 0 for a body that brings its own or is often empty. |

Children:

- the list part is the body.
- `actions` goes in the header, after the title.
- `footer` goes under the body.

## kit.toolbar

A row of controls at the control height, its trailing group pushed to the far side.

Lua `kit.toolbar(props, children)` · Node `<Toolbar />`

| prop | Node | type | description |
|---|---|---|---|
| `window_chrome` | `windowChrome` | boolean? | Opt into the native drag strip under custom window chrome. Reserves the OS window controls and keeps gaps draggable. False by default; native-decorated windows keep the normal content toolbar. Configure custom chrome and a medium/tall titlebar in the host when opting in. |

Children:

- the list part starts it.
- `trailing` ends it, at the far side.

## kit.statusbar

A thin row at a window's foot for state: counts, the connection, the clock.

Lua `kit.statusbar(props, children)` · Node `<Statusbar />`

Children:

- the list part fills it, in order.
- `trailing` ends it, at the far side.

## kit.split

Two panes and a draggable rule between them.

Lua `kit.split(props, children)` · Node `<Split />`

| prop | Node | type | description |
|---|---|---|---|
| `axis` | `axis` | [Axis](#axis)? | Side by side (row, the default) or stacked. |
| `fraction` | `fraction` | number | How much of the room the first pane takes, 0 to 1: yours to keep and pass back. |
| `min` | `min` | number? | The least either pane is, in px; 80 when left out. |

| event | Node | carries | description |
|---|---|---|---|
| `on_resize` | `onResize` | `resize` = { `fraction`: number — 0 to 1. } | The rule was dragged: the fraction it asks for. |

Children:

- `first` is the first pane.
- `second` is the second pane.

## kit.tabs

A strip of tabs over the body of the one chosen.

Lua `kit.tabs(props, children)` · Node `<Tabs />`

| prop | Node | type | description |
|---|---|---|---|
| `tabs` | `tabs` | {[Tab](#tab)} | The tabs, in order. |
| `value` | `value` | string | The one shown: yours to keep. |

| event | Node | carries | description |
|---|---|---|---|
| `on_change` | `onChange` | `change` = { `value`: string — Its value. } | Another tab was chosen. |

Children:

- the list part is the chosen tab's body.
- `trailing` ends the strip, at the far side: what acts on the chosen tab.

## kit.section

A heading that folds what is under it.

Lua `kit.section(props, children)` · Node `<Section />`

| prop | Node | type | description |
|---|---|---|---|
| `title` | `title` | string | The heading. |
| `collapsed` | `collapsed` | boolean? | Folded: yours to keep. |
| `count` | `count` | integer? | A count beside the heading. |
| `indent` | `indent` | number? | The body's left inset in px; 18 when left out, under the title. 0 for rows with their own inset that line up with `leading`. |

| event | Node | carries | description |
|---|---|---|---|
| `on_toggle` | `onToggle` | `toggle` = { `collapsed`: boolean — What it asks to be. } | The heading was pressed. |

Children:

- the list part is what it folds.
- `leading` goes before the heading, beside it rather than in it: a box that ticks the whole section.
- `actions` goes after the heading, at the far side: a status, an action on the whole section.

## kit.divider

A rule between groups, as the skin draws regions.

Lua `kit.divider(props)` · Node `<Divider />`

## kit.heading

An adaptive content heading in the project's title face.

Lua `kit.heading(props)` · Node `<Heading />`

| prop | Node | type | description |
|---|---|---|---|
| `text` | `text` | string | The heading. |
| `level` | `level` | integer? | Hierarchy, 1 to 6; 1 by default. |
| `size` | `size` | number? | Override the theme's heading size. |
| `family` | `family` | string? | A family name or family token. |
| `color` | `color` | color? | Override the foreground role. |
| `bold` | `bold` | boolean? | Bold by default. |
| `line_height` | `lineHeight` | number? | Line height in logical px. |

## kit.paragraph

Wrapping reading text in the project's content face.

Lua `kit.paragraph(props)` · Node `<Paragraph />`

| prop | Node | type | description |
|---|---|---|---|
| `text` | `text` | string | The text. |
| `size` | `size` | number? | Override the reading size. |
| `family` | `family` | string? | A family name or family token. |
| `color` | `color` | color? | Override the foreground role. |
| `line_height` | `lineHeight` | number? | Line height in logical px. |
| `selectable` | `selectable` | boolean? | Allow selecting and copying its text. |

## kit.content

A reading composition with project spacing, optional width limit and title/section centering.

Lua `kit.content(props, children)` · Node `<Content />`

| prop | Node | type | description |
|---|---|---|---|
| `layout` | `layout` | [ContentLayout](#contentlayout)? | Layout preset; ordinary reading flow if omitted. |
| `title` | `title` | string? | Optional composition heading. |
| `subtitle` | `subtitle` | string? | Optional reading lead. |
| `eyebrow` | `eyebrow` | string? | Optional small introductory label. |
| `preset` | `preset` | string? | title or section centers the content vertically; other values use regular flow. |
| `grow` | `grow` | boolean? | Take available height. |
| `max_width` | `maxWidth` | number? | Maximum reading width. |
| `pad` | `pad` | number? | Inset; theme default if omitted. |
| `gap` | `gap` | number? | Spacing; theme default if omitted. |
| `bg` | `bg` | color? | Optional background. |

Children:

- the list part is the composition.
- `aside` is the supporting visual in editorial, briefing or split layouts; below in minimal/regular flow.

## kit.columns

Two content regions that stack when the available width is narrow.

Lua `kit.columns(props, children)` · Node `<Columns />`

| prop | Node | type | description |
|---|---|---|---|
| `collapse_at` | `collapseAt` | number? | Stack below this width, 760 by default. |
| `gap` | `gap` | number? | Column gap. |

Children:

- `first` is the first region.
- `second` is the second region.

## kit.comparison

Titled before/after regions with adaptive stacking.

Lua `kit.comparison(props, children)` · Node `<Comparison />`

| prop | Node | type | description |
|---|---|---|---|
| `first_title` | `firstTitle` | string? | First title; Before by default. |
| `second_title` | `secondTitle` | string? | Second title; After by default. |
| `collapse_at` | `collapseAt` | number? | Stack below this width, 760 by default. |

Children:

- `first` is the first composition.
- `second` is the second composition.

## kit.quote

A quotation in the title face with an optional attribution.

Lua `kit.quote(props)` · Node `<Quote />`

| prop | Node | type | description |
|---|---|---|---|
| `text` | `text` | string | The quotation. |
| `attribution` | `attribution` | string? | Its author or source. |
| `size` | `size` | number? | Override reading size. |

## kit.figure

Any visual with a wrapping caption in the project's caption size.

Lua `kit.figure(props, children)` · Node `<Figure />`

| prop | Node | type | description |
|---|---|---|---|
| `caption` | `caption` | string? | The caption. |

Children:

- the list part is the visual, such as an image, SVG, chart or custom view.

## kit.visibility

Retained content whose visibility can change without changing layout. Invisible content has no paint, pointer input, accessibility presence or Tab stops.

Lua `kit.visibility(props, children)` · Node `<Visibility />`

| prop | Node | type | description |
|---|---|---|---|
| `visible` | `visible` | boolean | Whether the content is visible and interactive. |
| `collapse` | `collapse` | boolean? | Remove layout space too when invisible; otherwise reserve it. |

Children:

- the list part is retained even when invisible.

## kit.button

A button. Space, Enter and assistive technology press it as a click does.

Lua `kit.button(props)` · Node `<Button />`

| prop | Node | type | description |
|---|---|---|---|
| `label` | `label` | string | The text on it; its accessible name unless `name` says more. |
| `name` | `name` | string? | Its accessible name when that says more than the label; start it with the label's words (Clear → Clear the selection). |
| `variant` | `variant` | [Variant](#variant)? | Default when left out. |
| `icon` | `icon` | string? | An icon's name before the label (Kit's icon set). |
| `shortcut` | `shortcut` | string? | The chord, shown faintly after the label: `⌘R`. |
| `disabled` | `disabled` | boolean? | Drawn and read as unavailable; presses nothing. |
| `pressed` | `pressed` | boolean? | A toggle that is on (a panel shown): drawn selected and read as such. |
| `tooltip` | `tooltip` | string? | A hint under the pointer — why it is disabled, say. |

| event | Node | carries | description |
|---|---|---|---|
| `on_press` | `onPress` | — | Pressed. |

## kit.icon_button

A square button holding an icon.

Lua `kit.icon_button(props)` · Node `<IconButton />`

| prop | Node | type | description |
|---|---|---|---|
| `icon` | `icon` | string | The icon's name (Kit's icon set). |
| `label` | `label` | string | What it does: its accessible name and its tooltip. |
| `variant` | `variant` | [Variant](#variant)? | Ghost when left out. |
| `disabled` | `disabled` | boolean? | Unavailable. |
| `pressed` | `pressed` | boolean? | A toggle that is on: drawn selected and read as such. |
| `tooltip` | `tooltip` | string? | The hint under the pointer; the label when left out. |

| event | Node | carries | description |
|---|---|---|---|
| `on_press` | `onPress` | — | Pressed. |

## kit.text_field

A one-line text field, the skin's field style (an underline in Ledger).

Lua `kit.text_field(props)` · Node `<TextField />`

| prop | Node | type | description |
|---|---|---|---|
| `value` | `value` | string | Its text: yours to keep, from `change`. |
| `label` | `label` | string? | Its label, above it; its name. |
| `hide_label` | `hideLabel` | boolean? | The label names the field but is not drawn: a field whose place says what it is. |
| `placeholder` | `placeholder` | string? | Shown while it is empty. |
| `mono` | `mono` | boolean? | In the data face. |
| `disabled` | `disabled` | boolean? | Unavailable. |
| `width` | `width` | number? | Its width in px; grows when left out. |
| `focus` | `focus` | integer? | Takes the keyboard each time this number changes while the field is on screen: keep a counter in your model and bump it (⌘F). A field that shows after the bump takes its number as where it starts. |
| `autofocus` | `autofocus` | boolean? | Takes the keyboard as it first shows: a new item's name. |
| `error` | `error` | string? | What is wrong with the text, in the danger colour, its edge in danger too, and read after its name. It is shown whole: at the end of the field while the field has room for it beside the text, so a field in a wide toolbar keeps its height, and under the field, wrapping, while it has not, the row growing to fit. An empty string marks the field only, for fields that share one message. |
| `browse` | `browse` | [Browse](#browse)? | A Choose… button after the field that opens the system's folder, open or save dialog; the path picked arrives as `change`, as if typed. Cancelled, nothing changes. The dialog starts in the field's folder when its text is an absolute path. |
| `browse_label` | `browseLabel` | string? | The button's label; Choose… when left out. |

| event | Node | carries | description |
|---|---|---|---|
| `on_change` | `onChange` | `change` = { `text`: string — The whole text. } | The text changed, or a path was picked. |
| `on_submit` | `onSubmit` | `submit` = { `text`: string — The whole text. } | Enter. |

## kit.password

A password field in the skin's field style, masked by kui, with a show/hide eye that resets while the field is away.

Lua `kit.password(props)` · Node `<Password />`

| prop | Node | type | description |
|---|---|---|---|
| `value` | `value` | string | Its password: yours to keep, from `change`. |
| `label` | `label` | string? | Its label, above it; its name. |
| `hide_label` | `hideLabel` | boolean? | The label names the field but is not drawn: a field whose place says what it is. |
| `placeholder` | `placeholder` | string? | Shown while it is empty. |
| `disabled` | `disabled` | boolean? | Unavailable, including the show/hide eye. |
| `width` | `width` | number? | Its width in px; grows when left out. |
| `focus` | `focus` | integer? | Takes the keyboard each time this number changes while the field is on screen. |
| `autofocus` | `autofocus` | boolean? | Takes the keyboard as it first shows. |
| `error` | `error` | string? | What is wrong with the password, in the danger colour, its edge in danger too, and read after its name. It is shown whole: at the end of the field while there is room, and under it, wrapping, while there is not. An empty string marks the field only. |

| event | Node | carries | description |
|---|---|---|---|
| `on_change` | `onChange` | `change` = { `text`: string — The whole password. } | The password changed. |
| `on_submit` | `onSubmit` | `submit` = { `text`: string — The whole password. } | Enter. |

## kit.text_area

A text field of several lines, in a well in every skin: a note, a request body.

Lua `kit.text_area(props)` · Node `<TextArea />`

| prop | Node | type | description |
|---|---|---|---|
| `value` | `value` | string | Its text: yours to keep, from `change`. |
| `label` | `label` | string? | Its label, above it; its name. |
| `hide_label` | `hideLabel` | boolean? | The label names the field but is not drawn. |
| `placeholder` | `placeholder` | string? | Shown while it is empty. |
| `mono` | `mono` | boolean? | In the data face: code, JSON. |
| `disabled` | `disabled` | boolean? | Unavailable. |
| `width` | `width` | number? | Its width in px; grows when left out. |
| `rows` | `rows` | integer? | Lines tall at the least; 4 when left out. It grows with its text. |
| `max_rows` | `maxRows` | integer? | Lines tall at the most, scrolling past them; no limit when left out. |
| `grow` | `grow` | boolean? | Takes the room its parent leaves (a request body filling its tab), `rows` still its least. |
| `focus` | `focus` | integer? | Takes the keyboard each time this number changes while it is on screen. |
| `autofocus` | `autofocus` | boolean? | Takes the keyboard as it first shows. |
| `error` | `error` | string? | What is wrong with the text, under it in the danger colour. |
| `tab_moves_focus` | `tabMovesFocus` | boolean? | Tab and Shift+Tab move the keyboard to the next or the last control, as from a one-line field: a note, a comment. Left out, Tab types indentation as a code editor's does, and the ways out are Escape then Tab, or Ctrl+M (Ctrl+Shift+M on macOS). |

| event | Node | carries | description |
|---|---|---|---|
| `on_change` | `onChange` | `change` = { `text`: string — The whole text. } | The text changed. |

## kit.search

A search field: a glass, the query, and a clear button while it has one.

Lua `kit.search(props)` · Node `<Search />`

| prop | Node | type | description |
|---|---|---|---|
| `value` | `value` | string | The query: yours to keep. |
| `placeholder` | `placeholder` | string? | Shown while it is empty; `Search` when left out. |
| `label` | `label` | string? | Its name, read and not drawn: what it searches (the placeholder when left out). |
| `count` | `count` | string? | A count after the query: `12 of 340`. |
| `focus` | `focus` | integer? | Takes the keyboard each time this number changes while it is on screen (⌘F). |
| `autofocus` | `autofocus` | boolean? | Takes the keyboard as it first shows. |

| event | Node | carries | description |
|---|---|---|---|
| `on_change` | `onChange` | `change` = { `text`: string — The query. } | The query changed; cleared is the empty string. |
| `on_submit` | `onSubmit` | `submit` = { `text`: string — The query. } | Enter. |

## kit.select

A field that opens a menu of options.

Lua `kit.select(props)` · Node `<Select />`

| prop | Node | type | description |
|---|---|---|---|
| `options` | `options` | {[Choice](#choice)} | The options, in order. |
| `value` | `value` | string? | The one chosen: yours to keep. |
| `placeholder` | `placeholder` | string? | Shown with nothing chosen. |
| `label` | `label` | string? | Its label, above it. |
| `width` | `width` | number? | Its width in px. |
| `menu_max_width` | `menuMaxWidth` | number? | The open menu's width in px at the most; the window's less a margin when left out. The menu is as wide as its widest option up to it, and never narrower than the field. |
| `menu_wrap` | `menuWrap` | boolean? | An option too long for the menu wraps onto more lines, its row growing, where it is cut short with an ellipsis when left out. |

| event | Node | carries | description |
|---|---|---|---|
| `on_change` | `onChange` | `change` = { `value`: string — Its value. } | An option was chosen. |

## kit.checkbox

A box and its label.

Lua `kit.checkbox(props, children)` · Node `<Checkbox />`

| prop | Node | type | description |
|---|---|---|---|
| `label` | `label` | string | Its label; its name. |
| `checked` | `checked` | boolean | Ticked: yours to keep. |
| `mixed` | `mixed` | boolean? | Some of what it stands for: drawn as a dash. |
| `disabled` | `disabled` | boolean? | Unavailable. |
| `hide_label` | `hideLabel` | boolean? | The label names it but is not drawn: its children draw it instead (a name with search hits marked). |
| `grow` | `grow` | boolean? | Takes its row's room, the whole height a target: a list row ticked anywhere. |

| event | Node | carries | description |
|---|---|---|---|
| `on_toggle` | `onToggle` | `toggle` = { `checked`: boolean — What it asks to be. } | Pressed. |

Children:

- the list part draws after the box, the label's place: read as part of it, so nothing in it is a control.

## kit.checklist

A list of things to tick, one Tab stop: Up and Down walk the items, Home and End the ends, Space or a click ticks the one focused.

Lua `kit.checklist(props)` · Node `<Checklist />`

| prop | Node | type | description |
|---|---|---|---|
| `items` | `items` | {[Check](#check)} | The items, in order: yours to keep. |
| `label` | `label` | string? | What it lists, as it is read. |
| `removable` | `removable` | boolean? | An × on each item, which the pointer presses to remove it; Delete or Backspace removes the focused one. |

| event | Node | carries | description |
|---|---|---|---|
| `on_toggle` | `onToggle` | `toggle` = { `index`: integer — Its place, 0-based.; `checked`: boolean — What it asks to be. } | An item was ticked or unticked. |
| `on_remove` | `onRemove` | `remove` = { `index`: integer — Its place, 0-based. } | An item asked to go. |

## kit.switch

An on/off switch and its label.

Lua `kit.switch(props)` · Node `<Switch />`

| prop | Node | type | description |
|---|---|---|---|
| `label` | `label` | string | Its label; its name. |
| `on` | `on` | boolean | On: yours to keep. |
| `disabled` | `disabled` | boolean? | Unavailable. |

| event | Node | carries | description |
|---|---|---|---|
| `on_toggle` | `onToggle` | `toggle` = { `on`: boolean — What it asks to be. } | Pressed. |

## kit.radio_group

One of a few options, each a radio and its label.

Lua `kit.radio_group(props)` · Node `<RadioGroup />`

| prop | Node | type | description |
|---|---|---|---|
| `options` | `options` | {[Choice](#choice)} | The options, in order. |
| `value` | `value` | string? | The one chosen: yours to keep. |
| `label` | `label` | string? | The group's name, drawn above it. |
| `hide_label` | `hideLabel` | boolean? | The name is read but not drawn: a group whose place says what it is. |

| event | Node | carries | description |
|---|---|---|---|
| `on_change` | `onChange` | `change` = { `value`: string — Its value. } | An option was chosen. |

## kit.segmented

A row of joined buttons, one of them chosen: a view switch, a range.

Lua `kit.segmented(props)` · Node `<Segmented />`

| prop | Node | type | description |
|---|---|---|---|
| `options` | `options` | {[Choice](#choice)} | The segments, in order. |
| `value` | `value` | string | The one chosen: yours to keep. |
| `label` | `label` | string? | The group's name, read and not drawn: what the choice is of. |

| event | Node | carries | description |
|---|---|---|---|
| `on_change` | `onChange` | `change` = { `value`: string — Its value. } | A segment was chosen. |

## kit.slider

A value on a track, dragged, clicked or stepped by the arrows.

Lua `kit.slider(props)` · Node `<Slider />`

| prop | Node | type | description |
|---|---|---|---|
| `value` | `value` | number | The value: yours to keep. |
| `min` | `min` | number | The least. |
| `max` | `max` | number | The most. |
| `step` | `step` | number? | What an arrow moves it by; a hundredth of the range when left out. |
| `label` | `label` | string? | Its label; its name. |
| `value_label` | `valueLabel` | string? | The value as text, shown beside the label and read for it: `20 MB/s`, `30 days`. The number when left out. |

| event | Node | carries | description |
|---|---|---|---|
| `on_change` | `onChange` | `change` = { `value`: number — The value it asks for. } | It asks for another value. |

## kit.table

A virtual table over a channel: its columns, a sticky header, the rows in view only, a selection, sortable headers.

Lua `kit.table(props)` · Node `<Table />`

| prop | Node | type | description |
|---|---|---|---|
| `columns` | `columns` | {[Column](#column)} | The columns, in order. |
| `rows` | `rows` | channel | The rows: a channel whose columns the `field`s name. |
| `selected` | `selected` | integer? | The selected row (0-based): yours to keep. |
| `selection` | `selection` | [Selection](#selection)? | What it selects: one row (the default), any rows, or none. |
| `selected_ranges` | `selectedRanges` | {[RowRange](#rowrange)}? | With `selection = "multiple"`: the selected rows, as ranges — yours to keep, from `on_select`. |
| `select_on_focus` | `selectOnFocus` | boolean? | Whether the keyboard's moves select (the default): with false the arrows move the cursor only, Space selects (toggles, in a multiple selection), Enter activates and a click selects — a detail that loads on `select` or `activate` is not loaded for every row walked past. |
| `sort` | `sort` | string? | The field it is sorted by, marked in its header; the sorting is yours. |
| `descending` | `descending` | boolean? | Sorted from the top down. |
| `striped` | `striped` | boolean? | Every other row tinted. |
| `border` | `border` | boolean? | Framed in a hairline, the header ruled off inside it; left out, no frame and the header on a plane of its own (in a panel, which is framed already). |
| `cells` | `cells` | boolean? | A table of cells: the arrows walk cells (Left and Right along a row, Up and Down keeping the column), the header a row of column headers, landing on a row selecting it. Left out, a list of rows, the arrows moving whole rows. |
| `grow` | `grow` | boolean? | Takes the room its parent leaves. |

| event | Node | carries | description |
|---|---|---|---|
| `on_select` | `onSelect` | `select` = { `row`: integer — The row the change was about, 0-based: the one clicked, pressed or landed on.; `ranges`: any — A multiple selection: every selected row, as a list of `RowRange` (`{ first, last }`); absent in a single one.; `count`: integer? — A multiple selection: how many rows it holds.; `rows`: any — A multiple selection of no more than 1,000 rows: each of them, a list of integers; absent past that, and in a single one. } | The selection changed: a click, Space, the keyboard landing on a row when moves select, ⌘A, a Shift-range. One row in a single selection; in a multiple one, the ranges, their count, and the rows themselves when there are no more than 1,000. |
| `on_cursor` | `onCursor` | `cursor` = { `row`: integer — The row, 0-based. } | The row the keyboard is on moved — an arrow, a page key, a type-ahead, a click: cheap, and often. |
| `on_activate` | `onActivate` | `activate` = { `row`: integer — The row, 0-based. } | Enter on a row, or a double click: open it. Without a handler, Enter selects, as it did. |
| `on_sort` | `onSort` | `sort` = { `field`: string — The column's field. } | A header was clicked. |
| `on_range` | `onRange` | `range` = { `first`: integer — The first row in view.; `last`: integer — The last row in view. } | The rows in view changed: page your source by it. |

## kit.list

A virtual list over a channel: a title line and a detail line a row.

Lua `kit.list(props)` · Node `<List />`

| prop | Node | type | description |
|---|---|---|---|
| `rows` | `rows` | channel | The rows. |
| `title` | `title` | string | The field each row's title reads. |
| `detail` | `detail` | string? | The field its second line reads. |
| `badge` | `badge` | string? | A field drawn as a pill before the title: a method, a state. |
| `tone` | `tone` | string? | A field naming each row's badge tone (`ok`, `warn`, `danger`, `accent`, `neutral`). |
| `badge_width` | `badgeWidth` | number? | The badge column's width in px, so the titles line up; each badge's own when left out. |
| `label` | `label` | string? | Its name, read and not drawn: what the list holds (History). |
| `selected` | `selected` | integer? | The selected row (0-based): yours to keep. |
| `selection` | `selection` | [Selection](#selection)? | What it selects: one row (the default), any rows, or none. |
| `selected_ranges` | `selectedRanges` | {[RowRange](#rowrange)}? | With `selection = "multiple"`: the selected rows, as ranges — yours to keep, from `on_select`. |
| `select_on_focus` | `selectOnFocus` | boolean? | Whether the keyboard's moves select (the default): with false the arrows move the cursor only, Space selects (toggles, in a multiple selection), Enter activates and a click selects — a detail that loads on `select` or `activate` is not loaded for every row walked past. |
| `grow` | `grow` | boolean? | Takes the room its parent leaves. |

| event | Node | carries | description |
|---|---|---|---|
| `on_select` | `onSelect` | `select` = { `row`: integer — The row the change was about, 0-based: the one clicked, pressed or landed on.; `ranges`: any — A multiple selection: every selected row, as a list of `RowRange` (`{ first, last }`); absent in a single one.; `count`: integer? — A multiple selection: how many rows it holds.; `rows`: any — A multiple selection of no more than 1,000 rows: each of them, a list of integers; absent past that, and in a single one. } | The selection changed: a click, Space, the keyboard landing on a row when moves select, ⌘A, a Shift-range. One row in a single selection; in a multiple one, the ranges, their count, and the rows themselves when there are no more than 1,000. |
| `on_cursor` | `onCursor` | `cursor` = { `row`: integer — The row, 0-based. } | The row the keyboard is on moved — an arrow, a page key, a type-ahead, a click: cheap, and often. |
| `on_activate` | `onActivate` | `activate` = { `row`: integer — The row, 0-based. } | Enter on a row, or a double click: open it. Without a handler, Enter selects, as it did. |

## kit.inspector

Keys and their values, aligned: a request's headers, a record's fields.

Lua `kit.inspector(props)` · Node `<Inspector />`

| prop | Node | type | description |
|---|---|---|---|
| `entries` | `entries` | {[Entry](#entry)} | The rows, in order. |
| `key_width` | `keyWidth` | number? | The keys' column in px; 140 when left out. |

## kit.log

A log over a channel: time, level and message a line, following the end unless scrolled away.

Lua `kit.log(props)` · Node `<Log />`

| prop | Node | type | description |
|---|---|---|---|
| `rows` | `rows` | channel | The lines: fields `time`, `level` and `message`; a message's ANSI colours (SGR) are drawn in the skin's. |
| `follow` | `follow` | boolean? | Kept at the end as lines arrive; on when left out. |
| `grow` | `grow` | boolean? | Takes the room its parent leaves. |
| `wrap` | `wrap` | boolean? | A line longer than the log wraps onto more rows, where it is cut. |
| `time` | `time` | boolean? | The time column; on when left out. |

| event | Node | carries | description |
|---|---|---|---|
| `on_select` | `onSelect` | `select` = { `row`: integer — Its index. } | A line was clicked. |

## kit.badge

A short label in a pill: a status, a method, a count.

Lua `kit.badge(props)` · Node `<Badge />`

| prop | Node | type | description |
|---|---|---|---|
| `label` | `label` | string | What it says. |
| `tone` | `tone` | [Tone](#tone)? | Neutral when left out. |
| `dot` | `dot` | boolean? | A dot in the tone's colour before the label: a status. |
| `tooltip` | `tooltip` | string? | A hint under the pointer: what the status means. |
| `fade` | `fade` | boolean? | Fades in as it appears and out as it goes: a status that comes and goes with an edit (changed), not one of a table's. |

## kit.stat

A number with its label, and how it moved.

Lua `kit.stat(props)` · Node `<Stat />`

| prop | Node | type | description |
|---|---|---|---|
| `label` | `label` | string | What it counts. |
| `value` | `value` | string | The number, as text. |
| `display` | `display` | boolean? | Use the project's display size for a presentation or headline statistic. |
| `size` | `size` | number? | Override the value size in logical px. |
| `delta` | `delta` | string? | How it moved: `+12%`. |
| `tone` | `tone` | [Tone](#tone)? | Whether the move is good news. |

## kit.code

Text in the data face on the panel colour: a payload, a command, a stack.

Lua `kit.code(props)` · Node `<Code />`

| prop | Node | type | description |
|---|---|---|---|
| `text` | `text` | string | The text. |
| `language` | `language` | string? | Syntax highlighting: lua, teal, javascript, typescript, json, rust, python, c, css, shell or sql. Other languages remain plain text. |
| `highlight_lines` | `highlightLines` | {integer}? | One-based line numbers to emphasize. |
| `size` | `size` | number? | Code size in logical px; project code size when omitted. |
| `line_height` | `lineHeight` | number? | Line height; derived from the code size when omitted. |
| `wrap` | `wrap` | boolean? | Wraps rather than scrolls sideways. |
| `max_lines` | `maxLines` | integer? | At most this many lines high, the rest scrolled to. |
| `line_numbers` | `lineNumbers` | boolean? | Each line's number in a gutter beside it, outside the selection (not with `wrap`). |
| `copy` | `copy` | boolean? | A Copy button over the text that puts it on the clipboard and says Copied for a moment. |
| `label` | `label` | string? | A caption over the text (a file's name), and the block's accessible name. |

## kit.markdown

A document written in Markdown, drawn in the skin: `#` to `####` headings, paragraphs, `-` / `*` / `1.` lists nested by two spaces, `>` quotes, `---` rules, fenced code (as `code`), pipe tables (the first row their header), and inline `code`, **bold**, *italic* and links (drawn as their text). Raw HTML, images and footnotes stay text. Selectable.

Lua `kit.markdown(props)` · Node `<Markdown />`

| prop | Node | type | description |
|---|---|---|---|
| `text` | `text` | string | The Markdown. |

## kit.notice

A message in the flow of the page: an error to act on, a warning, a note; its actions after it.

Lua `kit.notice(props, children)` · Node `<Notice />`

| prop | Node | type | description |
|---|---|---|---|
| `message` | `message` | string | What happened, or what to know. |
| `tone` | `tone` | [Tone](#tone)? | Danger, warn, ok, accent, info or neutral (the default). |
| `title` | `title` | string? | A bold first line. |

Children:

- the list part are its actions, at its end.

## kit.empty

What a view shows with nothing in it: a title, a sentence, and what to do.

Lua `kit.empty(props, children)` · Node `<Empty />`

| prop | Node | type | description |
|---|---|---|---|
| `title` | `title` | string | What is missing. |
| `detail` | `detail` | string? | Why, or what fills it. |

Children:

- the list part are its actions.

## kit.progress

A bar that fills; with no value it moves to say work is going on. A reader hears a progress bar: its percent, or busy with no value.

Lua `kit.progress(props)` · Node `<Progress />`

| prop | Node | type | description |
|---|---|---|---|
| `value` | `value` | number? | 0 to 1; indeterminate when left out. |
| `label` | `label` | string? | What is under way. |

## kit.skeleton

A placeholder for what is still loading: lines a text high, a block or a circle, in the skin's well colour and rounded as its controls are, with a shimmer crossing them in step — Kit's shimmer fragment (`addons/kit/shaders/shimmer.wgsl`), which Kit registers itself — held still under reduced motion.

Lua `kit.skeleton(props)` · Node `<Skeleton />`

| prop | Node | type | description |
|---|---|---|---|
| `shape` | `shape` | [SkeletonShape](#skeletonshape)? | Lines of text (the default), a block or a circle. |
| `lines` | `lines` | integer? | Text: how many lines, the last of several shorter; 1 when left out. |
| `width` | `width` | number? | In px, or a circle's diameter (32 when left out); a text or a block grows when left out. |
| `height` | `height` | number? | A block's height in px; 80 when left out. |
| `label` | `label` | string? | What is loading, as it is read; `Loading` when left out. |

## kit.shader

A box a fragment shader paints (a `fragment` node, ADR 0015): one of Kit's presets, WGSL handed over as `source`, or a fragment the host registered (`id`) — Kit registers the first two itself. Kit rounds the box by the skin's radius and keeps a shader that reads `time` still under reduced motion. With no shader, or one that does not compile (`fragment-rejected`), it is the skin's well.

Lua `kit.shader(props)` · Node `<Shader />`

| prop | Node | type | description |
|---|---|---|---|
| `preset` | `preset` | [ShaderPreset](#shaderpreset)? | One of Kit's shaders, its colours the skin's: `shimmer` (a skeleton's sweep) or `noise` (gradient noise drifting between the well and the accent). Animated unless `animate = false`. |
| `source` | `source` | string? | A WGSL `fragment` function (ADR 0015), which Kit registers: the same source, the same fragment. |
| `id` | `id` | integer? | A fragment the host registered (`Core::add_fragment`, `ctx.addFragment`, `kui_fragment_add`, `env.add_fragment`). |
| `params` | `params` | {number}? | Up to sixteen numbers the shader reads as four `vec4<f32>`; a preset's come from the skin when left out. |
| `image` | `image` | integer? | A registered image's handle, which the shader samples with `kui_sample`. |
| `animate` | `animate` | boolean? | A frame every frame, for a shader that reads `time`; off under reduced motion. |
| `width` | `width` | number? | In px; it grows when left out. |
| `height` | `height` | number? | In px; 80 when left out. |
| `grow` | `grow` | boolean? | Takes the height its parent leaves. |
| `label` | `label` | string? | What it shows, as it is read; decoration when left out. |

## kit.dialog

A modal dialog: a title, its body and its actions; Escape and a press outside ask it to close.

Lua `kit.dialog(props, children)` · Node `<Dialog />`

| prop | Node | type | description |
|---|---|---|---|
| `title` | `title` | string | Its title; its name. |
| `width` | `width` | number? | Its width in px; 420 when left out. |

| event | Node | carries | description |
|---|---|---|---|
| `on_dismiss` | `onDismiss` | — | Escape, or a press outside. |

Children:

- the list part is the body.
- `actions` are its buttons, at the end of its foot.

## kit.popover

A panel floating beside what opened it; Escape and a press outside ask it to close.

Lua `kit.popover(props, children)` · Node `<Popover />`

| prop | Node | type | description |
|---|---|---|---|
| `label` | `label` | string? | Its name, read and not drawn: what it holds (Scale the service). A modal surface with no name warns `modal-without-name`. |
| `width` | `width` | number? | Its width in px. |

| event | Node | carries | description |
|---|---|---|---|
| `on_dismiss` | `onDismiss` | — | Escape, or a press outside. |

Children:

- the list part is what it holds.

## kit.menu

A menu of items floating under what opened it.

Lua `kit.menu(props)` · Node `<Menu />`

| prop | Node | type | description |
|---|---|---|---|
| `items` | `items` | {[Item](#item)} | The rows, in order. |

| event | Node | carries | description |
|---|---|---|---|
| `on_choose` | `onChoose` | `choose` = { `value`: string — Its value. } | A row was chosen. |
| `on_dismiss` | `onDismiss` | — | Escape, or a press outside. |

## kit.toast

A message in a window's corner: shown for `duration` (5 s) or until dismissed (`duration = 0`), in its tone — info, success, warning or error — as a bar down its edge and its icon; it slides out as it goes. Several stack in a `toaster`.

Lua `kit.toast(props)` · Node `<Toast />`

| prop | Node | type | description |
|---|---|---|---|
| `message` | `message` | string | What happened. |
| `tone` | `tone` | [Tone](#tone)? | info (the default, in the skin's focus blue), neutral (grey), accent, ok (success), warn (warning) or danger (error). |
| `action` | `action` | string? | One action on what happened, a button beside the message: `Undo`. |
| `action_name` | `actionName` | string? | The action's accessible name when it says more than its label (Undo → Undo the delete). |
| `duration` | `duration` | number? | How long it stays, in ms, counted again from when the pointer leaves it; 5000 when left out, 0 to keep it until dismissed. |
| `inline` | `inline` | boolean? | One of a `toaster`'s stack rather than floating in the corner on its own. |

| event | Node | carries | description |
|---|---|---|---|
| `on_dismiss` | `onDismiss` | — | Its close button, or its `duration` ran out. |
| `on_action` | `onAction` | — | Its action was pressed. |

## kit.toaster

Toasts stacked in the window's corner, the newest at the foot, each sliding into the room one that goes leaves.

Lua `kit.toaster(props, children)` · Node `<Toaster />`

Children:

- the list part are the toasts, each placed with `inline`.

## kit.sparkline

A line with no axes, for a trend inline.

Lua `kit.sparkline(props)` · Node `<Sparkline />`

| prop | Node | type | description |
|---|---|---|---|
| `data` | `data` | channel | The values. |
| `field` | `field` | string | The column to draw. |
| `color` | `color` | color? | The accent when left out. |
| `width` | `width` | number? | In px; 80 when left out. |
| `height` | `height` | number? | In px; 18 when left out. |
| `unit` | `unit` | string? | After the value under the pointer: `ms`, `%`. |
| `readout` | `readout` | boolean? | The value under the pointer, as a hint and a dot on its sample; on when left out. |

## kit.line_chart

Lines over time with axes and a legend; `live` keeps the newest window in view.

Lua `kit.line_chart(props)` · Node `<LineChart />`

| prop | Node | type | description |
|---|---|---|---|
| `data` | `data` | channel | The rows: an x column and a column a series. |
| `x` | `x` | string | The x column (time, an index). |
| `series` | `series` | {[Series](#series)} | The lines. |
| `height` | `height` | number? | In px; 160 when left out. |
| `area` | `area` | boolean? | Filled under the first line. |
| `x_min` | `xMin` | number? | The x window's start, held by the host: a chart that shares its axis with another view (a timeline's lanes). With `x_max`; the data's own range when left out. |
| `x_max` | `xMax` | number? | The x window's end, held by the host. |
| `gutter` | `gutter` | number? | The y labels' column in px, held: charts stacked under one another, or under a waterfall with the same `gutter`, share their plot's left edge. As wide as the widest label when left out. |
| `window` | `window` | number? | With it, only the last `window` of x is shown: a live chart. While samples come in it scrolls smoothly between them, drawn one sample behind and slid left over the time samples take to come (a keyframe cycle the core runs, so a frame between samples runs no view); under reduced motion, and while the plot is out of the viewport, it steps. |
| `x_format` | `xFormat` | [XFormat](#xformat)? | How the x ticks read; the number when left out. |
| `x_unit` | `xUnit` | string? | After each x tick's number: `min`, `s`. |
| `y_unit` | `yUnit` | string? | After each y tick's number: `ms`, `%`. |
| `readout` | `readout` | boolean? | Under the pointer, a crosshair at the pointer's x, a dot on each series there and a readout of the x and every series' value in its colour for the sample under it — a still pointer keeps its crosshair still while a live window slides samples under it — gone when the pointer leaves; on when left out. An idle chart pays one hover layer for it. |
| `focusable` | `focusable` | boolean? | A Tab stop that is a slider over the samples: the arrows move the readout a sample, Page Up and Down ten, Home and End to the ends, and a screen reader hears the readout as its value and as a live region. No key sink: every other key, Tab and the app's chords, goes on as from any control. Left out, the chart is no Tab stop; the pointer's readout works either way. |

| event | Node | carries | description |
|---|---|---|---|
| `on_hover` | `onHover` | `hover` = { `row`: integer — The row under it. } | The pointer moved over a row. |

## kit.bar_chart

Bars by label.

Lua `kit.bar_chart(props)` · Node `<BarChart />`

| prop | Node | type | description |
|---|---|---|---|
| `data` | `data` | channel | The rows. |
| `label` | `label` | string | The column naming each bar. |
| `value` | `value` | string | The column of their values. |
| `height` | `height` | number? | In px; 160 when left out (standing bars). |
| `unit` | `unit` | string? | After each value and axis number: `%`, `ms`. |
| `values` | `values` | boolean? | Each bar's value over it; on when left out. |
| `horizontal` | `horizontal` | boolean? | Bars lying along rows, each name whole beside its bar: for long names or many bars. |
| `label_width` | `labelWidth` | number? | Lying bars: the names' column in px; 120 when left out. |

| event | Node | carries | description |
|---|---|---|---|
| `on_select` | `onSelect` | `select` = { `row`: integer — Its row. } | A bar was clicked. |

## kit.histogram

How a column's values fall into bins.

Lua `kit.histogram(props)` · Node `<Histogram />`

| prop | Node | type | description |
|---|---|---|---|
| `data` | `data` | channel | The rows. |
| `field` | `field` | string | The column to bin. |
| `bins` | `bins` | integer? | How many; 24 when left out. |
| `height` | `height` | number? | In px; 120 when left out. |

## kit.waterfall

A trace waterfall: spans as bars on a time axis, nested by depth, coloured by group. The wheel and a pinch zoom about the pointer, a sideways swipe or Shift and the wheel pans, a drag anywhere in it pans — over a span too, which a click picks and a double click makes the range — and a drag on the time axis selects a range to zoom to.

Lua `kit.waterfall(props)` · Node `<Waterfall />`

| prop | Node | type | description |
|---|---|---|---|
| `bars` | `bars` | channel | The spans: fields `name`, `start`, `len` (ms), `depth`, `group`, and `target` (a label). |
| `marks` | `marks` | channel? | Points in time, fields `at` and `label`: a navigation, a paint. |
| `start` | `start` | number? | The window's start in ms: yours to keep, from `zoom`. |
| `length` | `length` | number? | The window's length in ms; the whole trace when left out. |
| `selected` | `selected` | integer? | The selected span (its row). |
| `grow` | `grow` | boolean? | Takes the room its parent leaves. |
| `max_height` | `maxHeight` | number? | The most the lanes take in px before they scroll, when it does not `grow`: as tall as its lanes up to that. |
| `gutter` | `gutter` | number? | An empty column in px left of the axis and the lanes, so they line up with charts under them that hold the same `gutter`. |
| `range_start` | `rangeStart` | number? | The range selected on the axis, in ms, held by the host: with `on_range`, the range drawn is this one, and a drag on the axis proposes another. Kit's own otherwise. |
| `range_length` | `rangeLength` | number? | The selected range's length in ms; none selected when left out or 0. |

| event | Node | carries | description |
|---|---|---|---|
| `on_select` | `onSelect` | `select` = { `row`: integer — Its row. } | A span was clicked. |
| `on_range` | `onRange` | `range` = { `start`: number — Its start in ms.; `length`: number — Its length in ms; 0 when cleared. } | A drag on the time axis selected a range, a double click on a span made its span the range, or a click on the axis or the range's × cleared it. |
| `on_zoom` | `onZoom` | `zoom` = { `start`: number — Its start in ms.; `length`: number — Its length in ms. } | The wheel, a pinch, a drag, a tool or zooming to the range asks for another window. |

## Types

The enums and records the props name.

### Variant

How loud a control is; success confirms what just happened (Copied).

One of `"default"`, `"primary"`, `"ghost"`, `"danger"`, `"success"`.

### Tone

What a badge, a stat or a toast is about.

One of `"neutral"`, `"info"`, `"accent"`, `"ok"`, `"warn"`, `"danger"`.

### Align

Where a cell's content sits.

One of `"start"`, `"center"`, `"end"`.

### Axis

Which way a split divides.

One of `"row"`, `"column"`.

### Skin

The look: Ledger's paper and ink, Phosphor's terminal, or Neutral's quiet chrome.

One of `"ledger"`, `"phosphor"`, `"neutral"`.

### ContentTheme

A settings preset, with project fonts, roles and sizes applied over it. Independent of content layout.

One of `"paper"`, `"signal"`, `"stage"`, `"minimal"`.

### ContentLayout

A reusable adaptive composition, independent of the content theme.

One of `"editorial"`, `"briefing"`, `"split"`, `"minimal"`.

### Density

Row and control heights: 22 and 26 px, or 20 and 22 px compact.

One of `"comfortable"`, `"compact"`.

### Level

A log line's level.

One of `"debug"`, `"info"`, `"warn"`, `"error"`.

### Browse

What a field's Choose… button asks the system for: a folder, a file to open, or where to save one.

One of `"folder"`, `"open"`, `"save"`.

### XFormat

How a chart labels its x axis: the number (with `x_unit`), time counted back to now (`-15` … `0` reads `15 min ago` … `now`), or Unix seconds as the local time of day.

One of `"number"`, `"ago"`, `"clock"`.

### Appearance

Which half of the skin's colours: the OS's, or light or dark held.

One of `"system"`, `"light"`, `"dark"`.

### ShaderPreset

One of Kit's shaders: a skeleton's shimmer, or gradient noise.

One of `"shimmer"`, `"noise"`.

### Selection

What a list or a table selects: one row, any rows (⌘- or Ctrl-click toggles a row, Shift extends from the last row clicked, ⌘A or Ctrl+A takes them all, Space toggles the row the keyboard is on), or none — the rows still a keyboard's to walk and Enter's to activate.

One of `"single"`, `"multiple"`, `"none"`.

### SkeletonShape

What a skeleton stands in for: lines of text, a block (an image, a chart), or a circle (an avatar).

One of `"text"`, `"block"`, `"circle"`.

### Sizes

Project typography and content spacing in logical px. Omitted fields keep the preset or skin default. Content sizes do not enlarge tool controls.

| field | Node | type | description |
|---|---|---|---|
| `body` | `body` | number? | Tool body text. |
| `label` | `label` | number? | Tool labels. |
| `title` | `title` | number? | Small titles and level-two headings. |
| `heading` | `heading` | number? | Level-one content headings. |
| `display` | `display` | number? | Large statistics and display text. |
| `content` | `content` | number? | Reading text. |
| `caption` | `caption` | number? | Figure captions. |
| `code` | `code` | number? | Code text. |
| `chart` | `chart` | number? | Chart axis and data labels. |
| `gap` | `gap` | number? | Default content spacing. |
| `pad` | `pad` | number? | Default content inset. |

### Choice

A choice: what it is, and what it reads as.

| field | Node | type | description |
|---|---|---|---|
| `value` | `value` | string | What the choice is; what the event carries. |
| `label` | `label` | string | What it reads as. |
| `disabled` | `disabled` | boolean? | Shown, not choosable. |
| `count` | `count` | integer? | A count beside the label (a segment's, a tab's). |
| `alert` | `alert` | boolean? | The count is bad news: drawn in the danger colour. |

### Column

A table's column: which field of the channel it shows, and how.

| field | Node | type | description |
|---|---|---|---|
| `field` | `field` | string | The channel column it reads. |
| `title` | `title` | string | Its header. |
| `width` | `width` | number? | Its width in px; shares the rest when left out. |
| `min_width` | `minWidth` | number? | How narrow a sharing column goes before the table hides a column or scrolls sideways (80 when left out). |
| `priority` | `priority` | number? | How much it matters when the table is narrow: the columns that do not fit hide lowest first, the header with them; left out, it never hides. What still does not fit scrolls sideways. |
| `align` | `align` | [Align](#align)? | Where its cells sit; numbers read best at the end. |
| `mono` | `mono` | boolean? | Its cells in the data face: ids, timings, hashes. |
| `tone` | `tone` | string? | A channel column naming each cell's tone (`ok`, `warn`, `danger`, `accent`, `neutral`): the cell is drawn in it — a status, an HTTP method. |
| `badge` | `badge` | boolean? | Its cells as pills with a dot in their `tone`: a status column. |

### Tab

A tab: its value and its label.

| field | Node | type | description |
|---|---|---|---|
| `value` | `value` | string | What it is; what `change` carries. |
| `label` | `label` | string | What it reads as. |
| `count` | `count` | integer? | A count beside the label. |

### Item

A menu row.

| field | Node | type | description |
|---|---|---|---|
| `value` | `value` | string | What `choose` carries. |
| `label` | `label` | string | What it reads as. |
| `shortcut` | `shortcut` | string? | The chord beside it, as text: `⌘K`. |
| `disabled` | `disabled` | boolean? | Shown, not choosable. |
| `danger` | `danger` | boolean? | A destructive action, drawn as one. |

### Check

One item of a checklist.

| field | Node | type | description |
|---|---|---|---|
| `label` | `label` | string | What it says; its name. |
| `checked` | `checked` | boolean | Ticked. |
| `disabled` | `disabled` | boolean? | Shown, not tickable. |

### Entry

One row of an inspector: a key and its value.

| field | Node | type | description |
|---|---|---|---|
| `key` | `key` | string | The field's name. |
| `value` | `value` | string | Its value, as text. |
| `mono` | `mono` | boolean? | The value in the data face. |

### RowRange

Rows `first` to `last` of a list or a table, both in (0-based): a multiple selection is a list of them, so ⌘A on 100,000 rows is one.

| field | Node | type | description |
|---|---|---|---|
| `first` | `first` | integer | The first row in it. |
| `last` | `last` | integer | The last row in it. |

### Series

One line of a line chart.

| field | Node | type | description |
|---|---|---|---|
| `field` | `field` | string | The channel column holding its values. |
| `name` | `name` | string | Its name in the legend. |
| `color` | `color` | color? | Its colour; the skin's series colours in order when left out. |
