@umriss-ui/core 0.34.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/core 0.34.0
1
+ # @umriss-ui/core 0.36.0
2
2
 
3
3
  > React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.
4
4
 
@@ -2390,7 +2390,7 @@ npm install @umriss-ui/core
2390
2390
 
2391
2391
  Demo page: https://romanhaendler.github.io/umriss-ui/core/installation/
2392
2392
 
2393
- The command installs the package alone: React 18 or newer is its only peer and stays the application's own. Importing a component brings its stylesheet along; `@umriss-ui/core/styles.css` stays exported for setups that link stylesheets by hand. The styles touch nothing outside the components: no rule on `html`, `body` or `*` ([ADR-0021](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0021-the-styles-load-themselves-and-touch-nothing-else.md)).
2393
+ The command installs the package alone: React 19 or newer is its only peer and stays the application's own. Importing a component brings its stylesheet along; `@umriss-ui/core/styles.css` stays exported for setups that link stylesheets by hand. The styles touch nothing outside the components: no rule on `html`, `body` or `*` ([ADR-0021](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0021-the-styles-load-themselves-and-touch-nothing-else.md)).
2394
2394
 
2395
2395
  Colours, sizes, fonts and light and dark are tokens, `--u-…` custom properties you override with ordinary CSS: [Theming](#/theming) lists them. The fonts are the application's: the tokens name Geist first and fall back to the system fonts, and nothing is loaded. For Geist, install `@fontsource/geist-sans` (400, 500, 600) and `@fontsource/geist-mono` (400).
2396
2396
 
@@ -2572,6 +2572,10 @@ export default function EverythingAtOnce() {
2572
2572
 
2573
2573
  The keys of [Button](#/button/keyboard-button), [Menu](#/menu/keyboard-menu) and [DatePicker](#/datepicker/keyboard-datepicker) apply here.
2574
2574
 
2575
+ #### Accessibility
2576
+
2577
+ Where a `ToastProvider` stands inside it, the toasts' two live regions stand where the overlays go: in the `portalTarget` before the first message, so that it is heard there, and inside the topmost modal dialog while one is open. [Toast](#/toast) describes them.
2578
+
2575
2579
  #### API
2576
2580
 
2577
2581
  ##### `UmrissProviderProps`
@@ -2579,7 +2583,7 @@ The keys of [Button](#/button/keyboard-button), [Menu](#/menu/keyboard-menu) and
2579
2583
  | Prop | Type | Default | Description |
2580
2584
  |---|---|---|---|
2581
2585
  | `density` | [`Density`](#type-Density)<br>`"comfortable" \| "compact"` | none - a component keeps its own density | The default for the `density` of every component that reads it with `useDensityFor` - in `@umriss-ui/table` `Table`, in `@umriss-ui/calculation` `Calculation` ("comfortable" means "regular").<br>Shown in: [Set up an application](#/umrissprovider/everything-at-once) |
2582
- | `portalTarget` | [`PortalTarget`](#type-PortalTarget) | `null` | Where overlays portal to. A function is evaluated on every opening - a target that only enters the tree later cannot be given otherwise; `null` means "as before". The callers' own rules take precedence: the popover seam portals into the nearest `<dialog>` ancestor, because a portal at the body does not reach the top layer.<br>Shown in: [Open overlays inside a full-screen panel](#/umrissprovider/portal-target), [Set up an application](#/umrissprovider/everything-at-once) |
2586
+ | `portalTarget` | [`PortalTarget`](#type-PortalTarget) | `null` | Where overlays portal to, unless an open dialog takes them. A function is evaluated on every opening - a target that only enters the tree later cannot be given otherwise; `null` means "as before". The callers' own rules take precedence: the popover seam portals into the nearest `<dialog>` ancestor, because a portal at the body does not reach the top layer, and the toasts follow the topmost modal dialog, because a toast outside it lies behind it and is inert.<br>Shown in: [Open overlays inside a full-screen panel](#/umrissprovider/portal-target), [Set up an application](#/umrissprovider/everything-at-once) |
2583
2587
  | `toast` | [`ToastConfig`](#type-ToastConfig) | — | The setting for toasts: the display duration where the individual toast names none, where they stand, and how many stand at once.<br>Shown in: [At the root](#/umrissprovider/at-the-root), [Set up an application](#/umrissprovider/everything-at-once), [Where they stand (Toast)](#/toast/where-they-stand) and 1 more |
2584
2588
  | `language` | [`LanguageOptions`](#/language/type-LanguageOptions) | none - the surrounding language holds, English at the root | Formats and wording, entry by entry - see [Language](#/language).<br>Shown in: [Set up an application](#/umrissprovider/everything-at-once) |
2585
2589
  | `children` *required* | `ReactNode` | — | The subtree the settings apply to.<br>Shown in: [At the root](#/umrissprovider/at-the-root), [Open overlays inside a full-screen panel](#/umrissprovider/portal-target), [Set up an application](#/umrissprovider/everything-at-once) and 2 more |
@@ -2981,7 +2985,7 @@ Continuous process. A spinner or a shimmer has no start and no end; it runs stea
2981
2985
 
2982
2986
  ##### Stacking order
2983
2987
 
2984
- Popovers portal into the nearest <dialog> ancestor, and this scale orders the rest.
2988
+ Popovers portal into the nearest <dialog> ancestor, and this scale orders the rest. The toasts also move into the topmost modal dialog. Inside a dialog the toasts and the tooltips stand in the top layer, which orders by the moment of showing and not by these numbers: a tooltip is shown after the toasts and lies above them, as the scale has it; popovers stay under the toasts.
2985
2989
 
2986
2990
  | Token | Light | Dark | Description |
2987
2991
  |---|---|---|---|
@@ -3100,7 +3104,7 @@ From `BadgeProps` — the full table stands on [Badge](#/badge/type-BadgeProps).
3100
3104
 
3101
3105
  - No theme object, no theme provider and no theme switch: a theme is a set of token overrides in your stylesheet, the mode is the page's `color-scheme` ([ADR-0021](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0021-the-styles-load-themselves-and-touch-nothing-else.md)).
3102
3106
  - A token that names another resolves where it is declared: set `--u-color-accent` on a region, and `--u-focus-ring`, which names it on `:root`, still draws the application's accent there. Set the naming token in the region too.
3103
- - A panel opened in a portal - a popover, a tooltip, a toast - takes the tokens and the `color-scheme` of the place it lands, not of the region it was opened from. Give [UmrissProvider](#/umrissprovider) a `portalTarget` inside the region, or override on `:root` - as for the toasts' distance from the window's edge, `--u-toast-inset-top` and `--u-toast-inset-bottom`.
3107
+ - A panel opened in a portal - a popover, a tooltip, a toast - takes the tokens and the `color-scheme` of the place it lands, not of the region it was opened from; inside a dialog the toasts take the tokens of the dialog's place. Give [UmrissProvider](#/umrissprovider) a `portalTarget` inside the region, or override on `:root` - as for the toasts' distance from the window's edge, `--u-toast-inset-top` and `--u-toast-inset-bottom`.
3104
3108
 
3105
3109
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
3106
3110
 
@@ -4773,6 +4777,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
4773
4777
  | `align` | `CSSProperties["alignItems"]` | — | Alignment across the direction – `alignItems` unchanged.<br>Shown in: [A row](#/stack-and-grid/a-row), [Gaps](#/stack-and-grid/gaps), [A tour summary](#/stack-and-grid/a-tour-summary) and 77 more |
4774
4778
  | `justify` | `CSSProperties["justifyContent"]` | — | Distribution along the direction – `justifyContent` unchanged.<br>Shown in: [A row](#/stack-and-grid/a-row), [A tour summary](#/stack-and-grid/a-tour-summary), [Name the same action in every row (VisuallyHidden)](#/visuallyhidden/actions-in-rows) and 9 more |
4775
4779
  | `wrap` | `boolean` | `false` | Lets the children wrap when the line does not suffice.<br>Shown in: [Gaps](#/stack-and-grid/gaps), [Wrapping](#/stack-and-grid/wrapping), [Sized to the value (Sizes)](#/sizes/sized-to-the-value) and 32 more |
4780
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
4776
4781
 
4777
4782
  Also takes every attribute of `<div>`.
4778
4783
 
@@ -4783,6 +4788,7 @@ Also takes every attribute of `<div>`.
4783
4788
  | `columns` | `number \| readonly `[`GridColumnWidth`](#type-GridColumnWidth)`[]` | `2` | How many columns, all of one width - or a list with one width per column: a number in pixels, or `"fill"` for a share of what is left. Overridden by minItemWidth.<br>Shown in: [Fixed columns](#/stack-and-grid/fixed-columns), [Columns of their own widths](#/stack-and-grid/columns-of-their-own-widths), [A token for one region (Theming)](#/theming/a-token-for-one-region) and 5 more |
4784
4789
  | `minItemWidth` | `string` | — | Responsive: as many columns as fit at this minimum width; wins over `columns`, a list included.<br>Shown in: [Columns by width](#/stack-and-grid/columns-by-width), [A tour summary](#/stack-and-grid/a-tour-summary), [A dark region (Theming)](#/theming/a-dark-region) and 51 more |
4785
4790
  | `gap` | [`SpaceStep`](#type-SpaceStep)<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions.<br>Shown in: [Fixed columns](#/stack-and-grid/fixed-columns), [Columns by width](#/stack-and-grid/columns-by-width), [Columns of their own widths](#/stack-and-grid/columns-of-their-own-widths) and 58 more |
4791
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
4786
4792
 
4787
4793
  Also takes every attribute of `<div>`.
4788
4794
 
@@ -4915,6 +4921,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
4915
4921
  | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | Horizontally it separates rows, vertically it separates columns.<br>Shown in: [Configurator](#/divider/configurator-divider), [Upright in a bar](#/divider/upright-in-a-bar) |
4916
4922
  | `strong` | `boolean` | `false` | A stronger line - for section boundaries rather than row separation.<br>Shown in: [Configurator](#/divider/configurator-divider), [Strength and label](#/divider/strength-and-label), [Upright in a bar](#/divider/upright-in-a-bar) |
4917
4923
  | `label` | `ReactNode` | — | A label in the middle. It makes the line a named separator.<br>Shown in: [Configurator](#/divider/configurator-divider), [Strength and label](#/divider/strength-and-label) |
4924
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
4918
4925
 
4919
4926
  Also takes every attribute of `<div>`.
4920
4927
 
@@ -5186,6 +5193,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
5186
5193
  | `defaultCollapsed` | `boolean` | `false` | Initial state of the collapse mechanism; afterwards it belongs to the card. Only effective together with `collapsible`.<br>Shown in: [Fold the body](#/card/fold-the-body) |
5187
5194
  | `collapsed` | `boolean` | — | Controlled: whether the body is folded away - for a card folded from outside, or one whose state is kept in an address. Only effective together with `collapsible`.<br>Shown in: [Fold from outside](#/card/fold-from-outside) |
5188
5195
  | `onCollapsedChange` | `(collapsed: boolean) => void` | — | Reports the wish of the header's button. Controlled, the card folds only once `collapsed` follows; uncontrolled it is merely a message.<br>Shown in: [Fold from outside](#/card/fold-from-outside) |
5196
+ | `ref` | `Ref<HTMLElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
5189
5197
 
5190
5198
  Also takes every attribute of the rendered element.
5191
5199
 
@@ -5197,6 +5205,7 @@ Also takes every attribute of the rendered element.
5197
5205
  | `eyebrow` | `ReactNode` | — | Small all-caps label above the title, e.g. a category.<br>Shown in: [Eyebrow and actions](#/card/eyebrow-and-actions), [A flush body](#/card/a-flush-body), [Fold the body](#/card/fold-the-body) and 17 more |
5198
5206
  | `actions` | `ReactNode` | — | Right-aligned area, e.g. buttons or badges.<br>Shown in: [Eyebrow and actions](#/card/eyebrow-and-actions), [Fold the body](#/card/fold-the-body), [Cards on a dashboard](#/card/cards-on-a-dashboard) and 13 more |
5199
5207
  | `divider` | `boolean` | `false` | A dividing line below the head. Only set it where the body needs it - typically with flush data (flush tables, logs). With normal content the white space carries the hierarchy on its own.<br>Shown in: [A flush body](#/card/a-flush-body) |
5208
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
5200
5209
 
5201
5210
  Also takes every attribute of `<div>` – without `title`.
5202
5211
 
@@ -5205,6 +5214,7 @@ Also takes every attribute of `<div>` – without `title`.
5205
5214
  | Prop | Type | Default | Description |
5206
5215
  |---|---|---|---|
5207
5216
  | `flush` | `boolean` | `false` | Removes the inner padding, e.g. for flush tables.<br>Shown in: [A flush body](#/card/a-flush-body) |
5217
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
5208
5218
 
5209
5219
  Also takes every attribute of `<div>`.
5210
5220
 
@@ -5623,6 +5633,7 @@ export default function ThreePanes() {
5623
5633
  | `step` | `number` | `5` | How far an arrow key moves the separator, in per cent.<br>Shown in: [Keep the share](#/splitter/keep-the-share) |
5624
5634
  | `separatorLabel` | `string` | the wording's "Resize the panes" | The separator's name. The APG names it after the first pane ("Trend").<br>Shown in: [One above the other](#/splitter/one-above-the-other), [Keep the share](#/splitter/keep-the-share), [Three panes](#/splitter/three-panes) |
5625
5635
  | `children` *required* | `[ReactNode, ReactNode]` | — | The first pane and the second, in this order.<br>Shown in: [Two panes](#/splitter/two-panes), [One above the other](#/splitter/one-above-the-other), [Keep the share](#/splitter/keep-the-share) and 1 more |
5636
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
5626
5637
 
5627
5638
  ###### Events
5628
5639
 
@@ -5996,13 +6007,14 @@ export default function IncidentSummary() {
5996
6007
 
5997
6008
  | Prop | Type | Default | Description |
5998
6009
  |---|---|---|---|
5999
- | `as` | `ElementType` | `"p"` | Element to render as.<br>Shown in: [Tones and weights](#/typography/tones-and-weights), [Set an incident summary](#/typography/incident-summary), [Use the language in your own components (Language)](#/language/own-components) and 16 more |
6000
- | `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#/typography/configurator-typography), [Sizes](#/typography/sizes), [Tones and weights](#/typography/tones-and-weights) and 128 more |
6010
+ | `as` | `ElementType` | `"p"` | Element to render as.<br>Shown in: [Tones and weights](#/typography/tones-and-weights), [Set an incident summary](#/typography/incident-summary), [Use the language in your own components (Language)](#/language/own-components) and 17 more |
6011
+ | `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#/typography/configurator-typography), [Sizes](#/typography/sizes), [Tones and weights](#/typography/tones-and-weights) and 129 more |
6001
6012
  | `weight` | [`TextWeight`](#type-TextWeight)<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 15 more |
6002
- | `tone` | [`TextTone`](#type-TextTone)<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 93 more |
6003
- | `mono` | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers.<br>Shown in: [Configurator](#/typography/configurator-typography), [Numbers and identifiers](#/typography/numbers), [Handle long values](#/typography/long-values) and 30 more |
6013
+ | `tone` | [`TextTone`](#type-TextTone)<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 94 more |
6014
+ | `mono` | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers.<br>Shown in: [Configurator](#/typography/configurator-typography), [Numbers and identifiers](#/typography/numbers), [Handle long values](#/typography/long-values) and 31 more |
6004
6015
  | `tracking` | [`TextTracking`](#type-TextTracking)<br>`"normal" \| "tight" \| "display" \| "caps"` | `"normal"` | Letter spacing from the token set. `caps` belongs with letterspaced capitals.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tracking and leading](#/typography/tracking-and-leading), [Set an incident summary](#/typography/incident-summary) |
6005
6016
  | `leading` | [`TextLeading`](#type-TextLeading)<br>`"normal" \| "tight"` | `"normal"` | Line spacing. `tight` for multi-line headings and key figures, where the normal spacing lets the lines fall apart.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tracking and leading](#/typography/tracking-and-leading) |
6017
+ | `ref` | `Ref<HTMLElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
6006
6018
 
6007
6019
  Also takes every attribute of the rendered element.
6008
6020
 
@@ -6014,6 +6026,7 @@ Also takes every attribute of the rendered element.
6014
6026
  | `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | the size matching the level | Optical size; independent of the level.<br>Shown in: [Tones and weights](#/typography/tones-and-weights), [Choose the level apart from the size](#/typography/level-and-size), [Set an incident summary](#/typography/incident-summary) and 4 more |
6015
6027
  | `weight` | [`TextWeight`](#type-TextWeight)<br>`"regular" \| "medium" \| "semibold"` | `"semibold"` | Font weight from the token set.<br>Shown in: [Tones and weights](#/typography/tones-and-weights) |
6016
6028
  | `tone` | [`TextTone`](#type-TextTone)<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the heading is.<br>Shown in: [Choose the level apart from the size](#/typography/level-and-size) |
6029
+ | `ref` | `Ref<HTMLHeadingElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
6017
6030
 
6018
6031
  Also takes every attribute of the heading.
6019
6032
 
@@ -6023,6 +6036,7 @@ Also takes every attribute of the heading.
6023
6036
  |---|---|---|---|
6024
6037
  | `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Size from the token set – a link has to match its body text.<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#/scenarios/watch-a-kiln-line) |
6025
6038
  | `external` | `boolean` | `false` | Opens in a new tab and sets the necessary protective attributes.<br>Shown in: [Link out of the application](#/typography/external-link), [Set an incident summary](#/typography/incident-summary) |
6039
+ | `ref` | `Ref<HTMLAnchorElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
6026
6040
 
6027
6041
  Also takes every attribute of `<a>`.
6028
6042
 
@@ -6193,8 +6207,9 @@ export default function ActionsInRows() {
6193
6207
  |---|---|---|---|
6194
6208
  | `as` | `E` | `"span"` | Element to render as.<br>Shown in: [Add a skip link](#/visuallyhidden/skip-link) |
6195
6209
  | `focusable` | `boolean` | `false` | Becomes visible as soon as the content receives the focus (skip link).<br>Shown in: [Add a skip link](#/visuallyhidden/skip-link) |
6210
+ | `ref` | `Ref<HTMLElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
6196
6211
 
6197
- Also takes every attribute of the chosen element – without `as`.
6212
+ Also takes every attribute of the chosen element – without `as`, `ref`.
6198
6213
 
6199
6214
  #### Known limits
6200
6215
 
@@ -6488,9 +6503,10 @@ Under forced colours every variant keeps an outline where its edge would lie, an
6488
6503
 
6489
6504
  | Prop | Type | Default | Description |
6490
6505
  |---|---|---|---|
6491
- | `variant` | [`ButtonVariant`](#type-ButtonVariant)<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"secondary"` | How loud the button is. `primary` exactly once per surface - two main actions side by side are no longer a main action. `ghost` is quiet in the accent, `plain` quiet and neutral.<br>Shown in: [Configurator](#/button/configurator-button), [Variants](#/button/variants), [Sizes](#/button/sizes) and 51 more |
6492
- | `size` | [`ButtonSize`](#type-ButtonSize)<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise.<br>Shown in: [Configurator](#/button/configurator-button), [Sizes](#/button/sizes), [Add an icon](#/button/with-an-icon) and 55 more |
6506
+ | `variant` | [`ButtonVariant`](#type-ButtonVariant)<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"secondary"` | How loud the button is. `primary` exactly once per surface - two main actions side by side are no longer a main action. `ghost` is quiet in the accent, `plain` quiet and neutral.<br>Shown in: [Configurator](#/button/configurator-button), [Variants](#/button/variants), [Sizes](#/button/sizes) and 52 more |
6507
+ | `size` | [`ButtonSize`](#type-ButtonSize)<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise.<br>Shown in: [Configurator](#/button/configurator-button), [Sizes](#/button/sizes), [Add an icon](#/button/with-an-icon) and 57 more |
6493
6508
  | `loading` | `boolean` | `false` | Shows a loading indicator and locks the button.<br>Shown in: [Configurator](#/button/configurator-button), [Loading and disabled](#/button/loading-and-disabled), [Submit a form](#/button/submit-a-form) and 4 more |
6509
+ | `ref` | `Ref<HTMLButtonElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
6494
6510
 
6495
6511
  Also takes every attribute of `<button>`.
6496
6512
 
@@ -6841,8 +6857,9 @@ export default function Toolbar() {
6841
6857
  |---|---|---|---|
6842
6858
  | `children` *required* | `ReactNode` | — | The icon: an SVG, a glyph of the set or an icon font's element. The button sets its size - `--u-icon-size`, `--u-icon-size-sm` at `sm`.<br>Shown in: [Configurator](#/iconbutton/configurator-iconbutton), [Name the icon](#/iconbutton/name-the-icon), [Variants](#/iconbutton/variants) and 5 more |
6843
6859
  | `variant` | [`ButtonVariant`](#type-ButtonVariant)<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"plain"` | How loud the button is; `plain` is quiet and neutral, and the rest mean what they mean on a `Button`.<br>Shown in: [Configurator](#/iconbutton/configurator-iconbutton), [Variants](#/iconbutton/variants), [Sizes](#/iconbutton/sizes) and 3 more |
6844
- | `size` | [`ButtonSize`](#type-ButtonSize)<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. From `ButtonProps`.<br>Shown in: [Configurator](#/iconbutton/configurator-iconbutton), [Sizes](#/iconbutton/sizes), [Build a toolbar](#/iconbutton/a-toolbar) and 55 more |
6860
+ | `size` | [`ButtonSize`](#type-ButtonSize)<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. From `ButtonProps`.<br>Shown in: [Configurator](#/iconbutton/configurator-iconbutton), [Sizes](#/iconbutton/sizes), [Build a toolbar](#/iconbutton/a-toolbar) and 57 more |
6845
6861
  | `loading` | `boolean` | `false` | Shows a loading indicator and locks the button. From `ButtonProps`.<br>Shown in: [Configurator](#/iconbutton/configurator-iconbutton), [Loading and disabled](#/iconbutton/loading-and-disabled), [Configurator (Button)](#/button/configurator-button) and 4 more |
6862
+ | `ref` | `Ref<HTMLButtonElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
6846
6863
 
6847
6864
  ###### Accessibility
6848
6865
 
@@ -7184,6 +7201,7 @@ export default function InvoiceToolbar() {
7184
7201
  | Prop | Type | Default | Description |
7185
7202
  |---|---|---|---|
7186
7203
  | `size` | [`ButtonSize`](#type-ButtonSize)<br>`"sm" \| "md"` | the size around it, else `"md"` | The size of the buttons in it that do not say their own - one group, one height.<br>Shown in: [Variants and sizes](#/buttongroup/variants-and-sizes) |
7204
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
7187
7205
 
7188
7206
  ###### Accessibility
7189
7207
 
@@ -7204,6 +7222,7 @@ Also takes every attribute of `<div>`.
7204
7222
  | `menuLabel` | `string` | the wording's "More actions" | Label of the trigger. |
7205
7223
  | `align` | `"start" \| "end"` | `"end"` | Alignment of the menu relative to the trigger.<br>Shown in: [Offer variants of the main action](#/buttongroup/split-button) |
7206
7224
  | `loading` | `boolean` | `false` | Shows a loading indicator and locks the button. From `ButtonProps`.<br>Shown in: [Configurator (Button)](#/button/configurator-button), [Loading and disabled (Button)](#/button/loading-and-disabled), [Submit a form (Button)](#/button/submit-a-form) and 4 more |
7225
+ | `ref` | `Ref<HTMLButtonElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
7207
7226
 
7208
7227
  ###### Events
7209
7228
 
@@ -7519,6 +7538,7 @@ export default function TakeADeliveryAddress() {
7519
7538
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#/input/configurator-input), [With an error](#/input/with-an-error), [With an error (TreeView)](#/treeview/with-an-error) |
7520
7539
  | `numeric` | `boolean` | `false` | Right-aligned tabular figures in Geist Mono, e.g. for key figures.<br>Shown in: [Configurator](#/input/configurator-input), [Align reference numbers](#/input/align-reference-numbers), [Take a delivery address](#/input/take-a-delivery-address) and 2 more |
7521
7540
  | `clearable` | `boolean` | `false` | Shows a gently appearing cross where there is content, which clears the input. Requires a controlled field (value) and onClear.<br>Shown in: [Clear the field](#/input/clear-the-field), [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still) |
7541
+ | `ref` | `Ref<HTMLInputElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
7522
7542
 
7523
7543
  ###### Events
7524
7544
 
@@ -7712,11 +7732,12 @@ The keys of [Input](#/input/keyboard-input), [NumberInput](#/numberinput/keyboar
7712
7732
 
7713
7733
  | Prop | Type | Default | Description |
7714
7734
  |---|---|---|---|
7715
- | `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Label and hint](#/formfield/label-and-hint), [Show an error](#/formfield/show-an-error) and 76 more |
7735
+ | `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Label and hint](#/formfield/label-and-hint), [Show an error](#/formfield/show-an-error) and 77 more |
7716
7736
  | `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Label and hint](#/formfield/label-and-hint), [Show an error](#/formfield/show-an-error) and 33 more |
7717
7737
  | `error` | `ReactNode` | — | Error message; it marks the field as invalid at the same time.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Show an error](#/formfield/show-an-error), [Check an invoice on submit](#/formfield/check-an-invoice-on-submit) and 22 more |
7718
7738
  | `required` | `boolean` | `false` | Sets the required mark on the label and `aria-required` on the field - on Input, Select, Textarea, NumberInput, Combobox, RadioGroup and Checkbox. The triggers of the pickers and of the MultiSelect are buttons, on which `aria-required` is not a permitted attribute; there the mark carries it alone. It validates nothing - validation belongs to the caller ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Mark a field as required](#/formfield/mark-a-field-as-required), [Check an invoice on submit](#/formfield/check-an-invoice-on-submit) and 9 more |
7719
7739
  | `fieldId` | `string` | — | Optional: a fixed id for the input element (instead of a generated one).<br>Shown in: [Sum up a form's errors (Alert)](#/alert/above-a-form) |
7740
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
7720
7741
 
7721
7742
  Also takes every attribute of `<div>`.
7722
7743
 
@@ -7907,6 +7928,7 @@ With `showCount` the characters left stand in a polite live region: a screen rea
7907
7928
  | `maxRows` | `number` | — | Upper bound for `autoGrow` in rows; beyond it the field scrolls.<br>Shown in: [Grow with the text](#/textarea/grow-with-the-text), [Resolve an incident (Scenarios)](#/scenarios/resolve-an-incident), [Approve spending against a budget (Scenarios)](#/scenarios/approve-spending) |
7908
7929
  | `showCount` | `boolean` | `false` | Shows at the bottom right how many characters still fit. Needs `maxLength`.<br>Shown in: [Count the characters](#/textarea/count-the-characters) |
7909
7930
  | `resize` | `"none" \| "vertical"` | `"none"` while the field grows by itself, else `"vertical"` | Whether the browser's handle for dragging is offered.<br>Shown in: [Configurator](#/textarea/configurator-textarea) |
7931
+ | `ref` | `Ref<HTMLTextAreaElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
7910
7932
 
7911
7933
  Also takes every attribute of `<textarea>` – without `cols`.
7912
7934
 
@@ -8143,6 +8165,7 @@ export default function PriceAnInvoiceLine() {
8143
8165
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#/numberinput/configurator-numberinput), [States](#/numberinput/states), [Set up a team (Scenarios)](#/scenarios/set-up-a-team) |
8144
8166
  | `chars` | `number` | — | The width in characters - room for the number; the field adds its own padding and steppers, and the room for a `prefix` and `suffix` given as text. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 10 characters wide where the place asks - in a toolbar or a row.<br>Shown in: [Configurator](#/numberinput/configurator-numberinput), [Sized to the value (Sizes)](#/sizes/sized-to-the-value) |
8145
8167
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` – by hand only needed without `FormField`.<br>Shown in: [Configurator](#/numberinput/configurator-numberinput), [With an error](#/numberinput/with-an-error) |
8168
+ | `ref` | `Ref<HTMLInputElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
8146
8169
 
8147
8170
  ###### Events
8148
8171
 
@@ -8327,6 +8350,7 @@ export default function SplitABudget() {
8327
8350
  | `marks` | `readonly `[`SliderMark`](#type-SliderMark)`[]` | — | Values marked on the track; an object with a `label` writes the word beneath its mark. A mark shows a value, it does not catch the thumb.<br>Shown in: [Units and marks](#/slider/units-and-marks), [Set roughly, then exactly](#/slider/set-roughly-then-exactly), [Split a budget](#/slider/split-a-budget) and 1 more |
8328
8351
  | `format` | `(value: number) => string` | the number in the formats' notation, with as many decimals as the step has | The value as text: for the readout and for the screen reader (`aria-valuetext`).<br>Shown in: [Units and marks](#/slider/units-and-marks), [Set roughly, then exactly](#/slider/set-roughly-then-exactly), [Split a budget](#/slider/split-a-budget) and 3 more |
8329
8352
  | `showValue` | `boolean` | `true` | The value in mono beside the track.<br>Shown in: [Configurator](#/slider/configurator-slider), [Units and marks](#/slider/units-and-marks), [Set roughly, then exactly](#/slider/set-roughly-then-exactly) and 1 more |
8353
+ | `ref` | `Ref<HTMLInputElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
8330
8354
 
8331
8355
  ###### Events
8332
8356
 
@@ -8469,6 +8493,7 @@ export default function SelectAllWithAMixedState() {
8469
8493
  |---|---|---|---|
8470
8494
  | `label` | `ReactNode` | — | Label to the right of the checkbox.<br>Shown in: [Configurator](#/checkbox/configurator-checkbox), [Checkbox](#/checkbox/checkbox), [States](#/checkbox/states) and 10 more |
8471
8495
  | `indeterminate` | `boolean` | `false` | Partially checked (e.g. "select all" with a mixed selection).<br>Shown in: [Configurator](#/checkbox/configurator-checkbox), [States](#/checkbox/states), [Select all with a mixed state](#/checkbox/select-all-with-a-mixed-state) |
8496
+ | `ref` | `Ref<HTMLInputElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
8472
8497
 
8473
8498
  Also takes every attribute of `<input>` – without `size`, `type`.
8474
8499
 
@@ -8674,6 +8699,7 @@ export default function SettingsOfAService() {
8674
8699
  | `label` | `ReactNode` | — | Label to the right of the switch.<br>Shown in: [Configurator](#/switch/configurator-switch), [On and off](#/switch/on-and-off), [States and sizes](#/switch/states-and-sizes) and 12 more |
8675
8700
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#/switch/configurator-switch), [States and sizes](#/switch/states-and-sizes) |
8676
8701
  | `invalid` | `boolean` | — | Marks the switch as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#/switch/configurator-switch), [With an error](#/switch/with-an-error) |
8702
+ | `ref` | `Ref<HTMLInputElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
8677
8703
 
8678
8704
  Also takes every attribute of `<input>` – without `role`, `size`, `type`.
8679
8705
 
@@ -8838,6 +8864,7 @@ export default function States() {
8838
8864
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#/radiogroup/configurator-radiogroup), [States](#/radiogroup/states) |
8839
8865
  | `disabled` | `boolean` | `false` | Disables the whole group. `RadioOption` disables single possibilities.<br>Shown in: [Configurator](#/radiogroup/configurator-radiogroup), [States](#/radiogroup/states) |
8840
8866
  | `name` | `string` | a generated one | Name of the radio group within the form. |
8867
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
8841
8868
 
8842
8869
  ###### Events
8843
8870
 
@@ -9124,6 +9151,7 @@ export default function DrawnAsAField() {
9124
9151
  | `fill` | `boolean` | `false` | Takes the whole width its place gives it, as a field in a column does, and shares it equally between the segments. Without it the control is as wide as its words.<br>Shown in: [Configurator](#/segmentedcontrol/configurator-segmentedcontrol), [A theme switch](#/segmentedcontrol/a-theme-switch) |
9125
9152
  | `disabled` | `boolean` | `false` | Disables the whole control. `SegmentedOption` disables single possibilities.<br>Shown in: [Configurator](#/segmentedcontrol/configurator-segmentedcontrol), [States and sizes](#/segmentedcontrol/states-and-sizes) |
9126
9153
  | `name` | `string` | a generated one | Name of the radio group within the form. |
9154
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
9127
9155
 
9128
9156
  ###### Events
9129
9157
 
@@ -9384,6 +9412,7 @@ export default function ImportBudgets() {
9384
9412
  |---|---|---|---|
9385
9413
  | `value` | `readonly File[]` | — | Controlled: the chosen files. Uncontrolled, the input keeps its own and starts empty.<br>Shown in: [Several files](#/fileinput/several-files), [With an error](#/fileinput/with-an-error), [Require a file before sending](#/fileinput/require-a-file-before-sending) and 1 more |
9386
9414
  | `invalid` | `boolean` | — | Marks the input as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [With an error](#/fileinput/with-an-error) |
9415
+ | `ref` | `Ref<HTMLInputElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
9387
9416
 
9388
9417
  ###### Events
9389
9418
 
@@ -9581,6 +9610,7 @@ export default function ClearTheChoice() {
9581
9610
  | `chars` | `number` | — | The width in characters - room for the chosen option; the field adds its own padding, chevron and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 20 characters wide where the place asks - never as wide as its longest option.<br>Shown in: [Configurator](#/select/configurator-select), [A row of fields (Sizes)](#/sizes/a-row-of-fields) |
9582
9611
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` – by hand only necessary without `FormField`.<br>Shown in: [Configurator](#/select/configurator-select), [With an error](#/select/with-an-error) |
9583
9612
  | `clearable` | `boolean` | `false` | Shows a × once a selection has been made, which fades in on hover/focus and empties the selection. Requires a controlled field (value) and onClear; sensible for optional selects with a placeholder option.<br>Shown in: [Clear the choice](#/select/clear-the-choice) |
9613
+ | `ref` | `Ref<HTMLSelectElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
9584
9614
 
9585
9615
  ###### Events
9586
9616
 
@@ -9839,6 +9869,7 @@ export default function AssignAnIncident() {
9839
9869
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#/combobox/configurator-combobox), [With an error](#/combobox/with-an-error) |
9840
9870
  | `emptyText` | `string` | — | Text shown for an empty search result.<br>Shown in: [States](#/combobox/states) |
9841
9871
  | `clearable` | `boolean` | `false` | Shows a cross on selection or input that clears field and selection.<br>Shown in: [Configurator](#/combobox/configurator-combobox), [Combobox](#/combobox/pick-a-driver), [Assign an incident](#/combobox/assign-an-incident) and 2 more |
9872
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
9842
9873
 
9843
9874
  ###### Events
9844
9875
 
@@ -10119,6 +10150,7 @@ export default function FilterIncidentsByService() {
10119
10150
  | `disabled` | `boolean` | `false` | Locks field and panel.<br>Shown in: [Configurator](#/multiselect/configurator-multiselect), [States](#/multiselect/states), [Dispatch a tour (Scenarios)](#/scenarios/dispatch-a-tour) |
10120
10151
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` – by hand only necessary without `FormField`.<br>Shown in: [Configurator](#/multiselect/configurator-multiselect), [With an error](#/multiselect/with-an-error) |
10121
10152
  | `clearable` | `boolean` | `false` | Shows a cross beside the chips that empties the selection, as "Select none" does: a chosen value whose option is disabled stays. The field keeps room for it, chosen values or none, so that it never moves.<br>Shown in: [Configurator](#/multiselect/configurator-multiselect), [Filter incidents by service](#/multiselect/filter-incidents-by-service), [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still) |
10153
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
10122
10154
 
10123
10155
  ###### Events
10124
10156
 
@@ -10304,6 +10336,7 @@ export default function CheckADueDate() {
10304
10336
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#/datepicker/configurator-datepicker), [States](#/datepicker/states) |
10305
10337
  | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, glyph and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as its longest value in the formats in use, so a date never truncates.<br>Shown in: [Configurator](#/datepicker/configurator-datepicker) |
10306
10338
  | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value.<br>Shown in: [Configurator](#/datepicker/configurator-datepicker), [Pick a day](#/datepicker/pick-a-day), [States](#/datepicker/states) and 4 more |
10339
+ | `ref` | `Ref<HTMLSpanElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
10307
10340
 
10308
10341
  ###### Events
10309
10342
 
@@ -10475,6 +10508,7 @@ export default function WithAnError() {
10475
10508
  | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, glyph and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as its longest value in the formats in use, so a date never truncates.<br>Shown in: [Configurator](#/datetimepicker/configurator-datetimepicker) |
10476
10509
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#/datetimepicker/configurator-datetimepicker), [With an error](#/datetimepicker/with-an-error) |
10477
10510
  | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value.<br>Shown in: [Configurator](#/datetimepicker/configurator-datetimepicker), [Set an instant](#/datetimepicker/set-an-instant), [States](#/datetimepicker/states) |
10511
+ | `ref` | `Ref<HTMLSpanElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
10478
10512
 
10479
10513
  ###### Events
10480
10514
 
@@ -10671,6 +10705,7 @@ export default function WithAnError() {
10671
10705
  | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, glyph and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as its longest value in the formats in use, so a date never truncates.<br>Shown in: [Configurator](#/daterangepicker/configurator-daterangepicker) |
10672
10706
  | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value.<br>Shown in: [Configurator](#/daterangepicker/configurator-daterangepicker), [A span of days](#/daterangepicker/a-span-of-days), [Presets](#/daterangepicker/presets) and 2 more |
10673
10707
  | `presets` | [`RangePreset`](#type-RangePreset)`[]` | `DEFAULT_PRESETS`, in the wording's labels | The quick-select column in the panel. An empty array hides the column.<br>Shown in: [Presets](#/daterangepicker/presets) |
10708
+ | `ref` | `Ref<HTMLSpanElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
10674
10709
 
10675
10710
  ###### Events
10676
10711
 
@@ -10885,6 +10920,7 @@ export default function WithAnError() {
10885
10920
  | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, glyph and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as its longest value in the formats in use, so a date never truncates.<br>Shown in: [Configurator](#/datetimerangepicker/configurator-datetimerangepicker) |
10886
10921
  | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value.<br>Shown in: [Configurator](#/datetimerangepicker/configurator-datetimerangepicker), [A downtime window](#/datetimerangepicker/a-downtime-window), [States](#/datetimerangepicker/states) |
10887
10922
  | `presets` | [`RangePreset`](#type-RangePreset)`[]` | `DEFAULT_PRESETS`, in the wording's labels | The quick-select column in the panel; presets apply for the whole day and close immediately. An empty array hides the column.<br>Shown in: [With seconds](#/datetimerangepicker/with-seconds) |
10923
+ | `ref` | `Ref<HTMLSpanElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
10888
10924
 
10889
10925
  ###### Events
10890
10926
 
@@ -11066,6 +11102,7 @@ With reduced motion it turns at less than half its speed instead of stopping, so
11066
11102
  | Prop | Type | Default | Description |
11067
11103
  |---|---|---|---|
11068
11104
  | `size` | `number` | `14` | Edge length in pixels.<br>Shown in: [Sizes](#/spinner/sizes), [Colour](#/spinner/colour) |
11105
+ | `ref` | `Ref<SVGSVGElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
11069
11106
 
11070
11107
  Also takes every attribute of `<svg>`.
11071
11108
 
@@ -11250,6 +11287,7 @@ Under forced colours the track takes an edge and the fill the system's selection
11250
11287
  | `label` | `string` | the wording's "Progress" | What is progressing, e.g. "Import of the invoice records". A progress bar needs a name from the author.<br>Shown in: [How far a job has come](#/progressbar/how-far), [Count instead of a share](#/progressbar/a-count), [Run without a known end](#/progressbar/without-an-end) and 3 more |
11251
11288
  | `valueText` | `string` | — | What a screen reader says instead of the percentage, where a count says it better - "3 of 12 files".<br>Shown in: [Count instead of a share](#/progressbar/a-count), [Follow a job through its steps](#/progressbar/a-close-in-steps), [A deployment (Stepper)](#/stepper/a-deployment) |
11252
11289
  | `showLabel` | `boolean` | `false` | The percentage beside the bar (Geist Mono). Never for an indeterminate bar - it has no figure to show.<br>Shown in: [Configurator](#/progressbar/configurator-progressbar), [How far a job has come](#/progressbar/how-far), [Follow a job through its steps](#/progressbar/a-close-in-steps) and 1 more |
11290
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
11253
11291
 
11254
11292
  Also takes every attribute of `<div>`.
11255
11293
 
@@ -11408,6 +11446,7 @@ With reduced motion the shimmer stops, and the shape stands in a still, faint gr
11408
11446
  | `width` | `string \| number` | `"100%"` | Width, e.g. "120px" or "60%".<br>Shown in: [Configurator](#/skeleton/configurator-skeleton), [Lines of text to come](#/skeleton/lines), [Shapes](#/skeleton/shapes) and 2 more |
11409
11447
  | `height` | `string \| number` | `"12px"` | Height, e.g. "12px" or 16.<br>Shown in: [Configurator](#/skeleton/configurator-skeleton), [Shapes](#/skeleton/shapes), [Hold a list's place while it loads](#/skeleton/a-list-loading) |
11410
11448
  | `circle` | `boolean` | `false` | Circular shape, e.g. for an avatar placeholder.<br>Shown in: [Configurator](#/skeleton/configurator-skeleton), [Shapes](#/skeleton/shapes), [Hold a list's place while it loads](#/skeleton/a-list-loading) |
11449
+ | `ref` | `Ref<HTMLSpanElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
11411
11450
 
11412
11451
  Also takes every attribute of `<span>`.
11413
11452
 
@@ -11609,6 +11648,7 @@ The title is a paragraph, not a heading, so an alert does not enter the page's o
11609
11648
  | `title` | `ReactNode` | — | Heading; without it the body text carries the message on its own.<br>Shown in: [A message](#/alert/a-message), [Tones](#/alert/tones), [Offer the way forward](#/alert/with-actions) and 5 more |
11610
11649
  | `actions` | `ReactNode` | — | Actions below the text, e.g. "Try again".<br>Shown in: [Offer the way forward](#/alert/with-actions), [Sum up a form's errors](#/alert/above-a-form), [A deployment (Stepper)](#/stepper/a-deployment) |
11611
11650
  | `dismissLabel` | `string` | the wording's "Close message" | Label of the dismiss cross. |
11651
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
11612
11652
 
11613
11653
  ###### Events
11614
11654
 
@@ -11648,6 +11688,8 @@ Demo page: https://romanhaendler.github.io/umriss-ui/core/toast/
11648
11688
 
11649
11689
  [`useToast`](#/api/useToast) needs a `ToastProvider` around the application, once, at the root.
11650
11690
 
11691
+ Toasts stand above an open modal dialog and can be used there: they are seen, pressed and heard, and stay where they were while a dialog opens or closes.
11692
+
11651
11693
  A toast stays five seconds by default. Its clock stops while the deck is open – under the pointer, with the focus inside it – and runs on with the time that was left.
11652
11694
 
11653
11695
  The title says what has happened, in about one line: “Invoice not sent”. Why, and what to do next, go in the description.
@@ -12034,6 +12076,74 @@ export default function HowManyStand() {
12034
12076
  }
12035
12077
  ```
12036
12078
 
12079
+ ##### Inside a modal
12080
+
12081
+ A toast stands above an open modal dialog and can be pressed there: the dialog's "Save" fails, and the toast carries "Retry" next to the form it belongs to.
12082
+
12083
+ ```tsx
12084
+ import { useState } from "react";
12085
+ import { Button, FormField, Input, Modal, ModalBody, ModalFooter, ModalHeader, Select, Text, ToastProvider, Tooltip, useToast } from "@umriss-ui/core";
12086
+
12087
+ function Content() {
12088
+ const { toast } = useToast();
12089
+ const [open, setOpen] = useState(false);
12090
+
12091
+ const save = () =>
12092
+ toast({
12093
+ title: "Profile not saved",
12094
+ description: "The server did not answer.",
12095
+ tone: "danger",
12096
+ /* A failure stays until it is read. */
12097
+ duration: 0,
12098
+ action: { label: "Retry", onClick: save },
12099
+ });
12100
+
12101
+ return (
12102
+ <>
12103
+ <Button onClick={() => setOpen(true)}>Edit the profile</Button>
12104
+ <Modal open={open} onClose={() => setOpen(false)} size="sm">
12105
+ <ModalHeader title="Edit the profile" description="Changes are saved to the account." />
12106
+ <ModalBody>
12107
+ <FormField label="Display name">
12108
+ <Input defaultValue="Maya Lindgren" />
12109
+ </FormField>
12110
+ <FormField label="Language">
12111
+ <Select defaultValue="en">
12112
+ <option value="en">English</option>
12113
+ <option value="de">Deutsch</option>
12114
+ <option value="fr">Français</option>
12115
+ <option value="es">Español</option>
12116
+ </Select>
12117
+ </FormField>
12118
+ <Tooltip content="Shows the profile as colleagues see it.">
12119
+ <Button size="sm" variant="secondary">
12120
+ Preview
12121
+ </Button>
12122
+ </Tooltip>
12123
+ <Text size="xs" tone="muted">
12124
+ Nothing is kept until it is saved.
12125
+ </Text>
12126
+ </ModalBody>
12127
+ <ModalFooter>
12128
+ <Button onClick={() => setOpen(false)}>Cancel</Button>
12129
+ <Button variant="primary" onClick={save}>
12130
+ Save
12131
+ </Button>
12132
+ </ModalFooter>
12133
+ </Modal>
12134
+ </>
12135
+ );
12136
+ }
12137
+
12138
+ export default function InsideAModal() {
12139
+ return (
12140
+ <ToastProvider>
12141
+ <Content />
12142
+ </ToastProvider>
12143
+ );
12144
+ }
12145
+ ```
12146
+
12037
12147
  #### When to use something else
12038
12148
 
12039
12149
  - The reader must see it, or it stays true until something is done → Alert
@@ -12058,17 +12168,19 @@ The count on a deck of several is out of the tab order, since a focus on it woul
12058
12168
 
12059
12169
  With reduced motion toasts appear, stack and leave without movement.
12060
12170
 
12171
+ Inside a modal dialog the live regions move with the toasts, so a message is heard there as well as outside.
12172
+
12061
12173
  #### API
12062
12174
 
12063
12175
  ##### `ToastOptions`
12064
12176
 
12065
12177
  | Prop | Type | Default | Description |
12066
12178
  |---|---|---|---|
12067
- | `title` *required* | `string` | — | What has happened – short, about one line (some 45 characters), in the perfect tense and not a request: "Invoice not sent". Why, and what to do next, belong in the description. A longer title wraps; it is never cut.<br>Shown in: [Show a toast](#/toast/show-a-toast), [Tones](#/toast/tones), [Undo](#/toast/undo) and 11 more |
12068
- | `description` | `string` | — | One more sentence where the title alone is too little. Nothing the reader MUST read: the toast goes away by itself.<br>Shown in: [Show a toast](#/toast/show-a-toast), [Tones](#/toast/tones), [Undo](#/toast/undo) and 9 more |
12069
- | `tone` | [`ToastTone`](#type-ToastTone)<br>`"neutral" \| "success" \| "warning" \| "danger" \| "loading"` | — | How the message turns out. The tone is never the only information – the glyph beside it and the text say the same thing once more. `loading` shows a spinner, has no close button and does not leave by itself: turn it into its outcome with `update`.<br>Shown in: [Tones](#/toast/tones), [Keep it until it is closed](#/toast/until-closed), [Save, and say how it went](#/toast/save-with-loading) and 8 more |
12070
- | `duration` | `number` | the provider's `duration`, else `5000` | Display duration in ms; 0 = stays until closed by hand.<br>Shown in: [Keep it until it is closed](#/toast/until-closed) |
12071
- | `action` | [`ToastAction`](#type-ToastAction) | — | One action - "Undo". Never the only way to do what it offers: the toast leaves by itself, and not everybody reaches it in time. More than one action is a dialog.<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading) |
12179
+ | `title` *required* | `string` | — | What has happened – short, about one line (some 45 characters), in the perfect tense and not a request: "Invoice not sent". Why, and what to do next, belong in the description. A longer title wraps; it is never cut.<br>Shown in: [Show a toast](#/toast/show-a-toast), [Tones](#/toast/tones), [Undo](#/toast/undo) and 12 more |
12180
+ | `description` | `string` | — | One more sentence where the title alone is too little. Nothing the reader MUST read: the toast goes away by itself.<br>Shown in: [Show a toast](#/toast/show-a-toast), [Tones](#/toast/tones), [Undo](#/toast/undo) and 10 more |
12181
+ | `tone` | [`ToastTone`](#type-ToastTone)<br>`"neutral" \| "success" \| "warning" \| "danger" \| "loading"` | — | How the message turns out. The tone is never the only information – the glyph beside it and the text say the same thing once more. `loading` shows a spinner, has no close button and does not leave by itself: turn it into its outcome with `update`.<br>Shown in: [Tones](#/toast/tones), [Keep it until it is closed](#/toast/until-closed), [Save, and say how it went](#/toast/save-with-loading) and 9 more |
12182
+ | `duration` | `number` | the provider's `duration`, else `5000` | Display duration in ms; 0 = stays until closed by hand.<br>Shown in: [Keep it until it is closed](#/toast/until-closed), [Inside a modal](#/toast/inside-a-modal) |
12183
+ | `action` | [`ToastAction`](#type-ToastAction) | — | One action - "Undo". Never the only way to do what it offers: the toast leaves by itself, and not everybody reaches it in time. More than one action is a dialog.<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading), [Inside a modal](#/toast/inside-a-modal) |
12072
12184
 
12073
12185
  ###### Events
12074
12186
 
@@ -12080,13 +12192,13 @@ With reduced motion toasts appear, stack and leave without movement.
12080
12192
 
12081
12193
  | Prop | Type | Default | Description |
12082
12194
  |---|---|---|---|
12083
- | `label` *required* | `string` | — | A verb for what it does - "Undo", "Show".<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading) |
12195
+ | `label` *required* | `string` | — | A verb for what it does - "Undo", "Show".<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading), [Inside a modal](#/toast/inside-a-modal) |
12084
12196
 
12085
12197
  ###### Events
12086
12198
 
12087
12199
  | Prop | Type | Default | Description |
12088
12200
  |---|---|---|---|
12089
- | `onClick` *required* | `() => void` | — | Runs, and the toast goes with the reason `action`.<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading) |
12201
+ | `onClick` *required* | `() => void` | — | Runs, and the toast goes with the reason `action`.<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading), [Inside a modal](#/toast/inside-a-modal) |
12090
12202
 
12091
12203
  ##### Types on this page
12092
12204
 
@@ -12112,6 +12224,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
12112
12224
  - One action at most, and never the only way to what it offers: the toast leaves by itself. What needs a decision needs an [Alert](#/alert) or a [ConfirmDialog](#/confirmdialog).
12113
12225
  - One position for the whole application, set in the [UmrissProvider](#/umrissprovider); none per toast.
12114
12226
  - No queue: a toast over the limit pushes the oldest out rather than waiting.
12227
+ - Without the Popover API the deck moves with a dialog that transforms itself: inside a dialog the toasts stand in the top layer only where the browser has it, and elsewhere they are a fixed box in the dialog.
12115
12228
 
12116
12229
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
12117
12230
 
@@ -12250,6 +12363,7 @@ The keys of [Button](#/button/keyboard-button) and [Tag](#/tag/keyboard-tag) app
12250
12363
  | `description` | `ReactNode` | — | One sentence on why nothing is here and what would put something here.<br>Shown in: [Nothing yet](#/emptystate/nothing-yet), [Say why a filter found nothing](#/emptystate/a-filter-found-nothing), [Mark good news in a panel](#/emptystate/in-a-panel) and 3 more |
12251
12364
  | `action` | `ReactNode` | — | The way into the next action, e.g. a button.<br>Shown in: [Nothing yet](#/emptystate/nothing-yet), [Say why a filter found nothing](#/emptystate/a-filter-found-nothing), [Cards on a dashboard (Card)](#/card/cards-on-a-dashboard) and 1 more |
12252
12365
  | `icon` | `ReactNode` | — | Optional symbol above the title.<br>Shown in: [Mark good news in a panel](#/emptystate/in-a-panel) |
12366
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
12253
12367
 
12254
12368
  Also takes every attribute of `<div>` – without `title`.
12255
12369
 
@@ -12415,8 +12529,8 @@ export default function ACalculation() {
12415
12529
 
12416
12530
  | Prop | Type | Default | Description |
12417
12531
  |---|---|---|---|
12418
- | `content` *required* | `ReactNode` | — | Short help text; no interaction, no long content.<br>Shown in: [A tooltip](#/tooltip/a-tooltip), [Delay](#/tooltip/delay), [Explain an abbreviation](#/tooltip/an-abbreviation) and 1 more |
12419
- | `children` *required* | `ReactElement<Record<string, unknown>>` | — | Exactly one element that triggers the tooltip (must accept refs). Its own ref keeps its element: the tooltip holds the same one beside it.<br>Shown in: [A tooltip](#/tooltip/a-tooltip), [Delay](#/tooltip/delay), [Explain an abbreviation](#/tooltip/an-abbreviation) and 1 more |
12532
+ | `content` *required* | `ReactNode` | — | Short help text; no interaction, no long content.<br>Shown in: [A tooltip](#/tooltip/a-tooltip), [Delay](#/tooltip/delay), [Explain an abbreviation](#/tooltip/an-abbreviation) and 2 more |
12533
+ | `children` *required* | `ReactElement<Record<string, unknown>>` | — | Exactly one element that triggers the tooltip (must accept refs). Its own ref keeps its element: the tooltip holds the same one beside it.<br>Shown in: [A tooltip](#/tooltip/a-tooltip), [Delay](#/tooltip/delay), [Explain an abbreviation](#/tooltip/an-abbreviation) and 2 more |
12420
12534
  | `delay` | `number` | `300` | Delay in ms before the tooltip appears.<br>Shown in: [Delay](#/tooltip/delay) |
12421
12535
 
12422
12536
  #### Known limits
@@ -12870,6 +12984,7 @@ export default function PerRow() {
12870
12984
  | Prop | Type | Default | Description |
12871
12985
  |---|---|---|---|
12872
12986
  | `tone` | `"default" \| "danger"` | `"default"` | "danger" for destructive actions.<br>Shown in: [Run actions from a trigger](#/menu/actions), [Disable an entry, mark a destructive one](#/menu/disabled-and-danger), [Act on a row](#/menu/per-row) and 5 more |
12987
+ | `ref` | `Ref<HTMLButtonElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
12873
12988
 
12874
12989
  ###### Events
12875
12990
 
@@ -13386,15 +13501,16 @@ export default function MustBeAnswered() {
13386
13501
 
13387
13502
  | Prop | Type | Default | Description |
13388
13503
  |---|---|---|---|
13389
- | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open.<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 9 more |
13390
- | `size` | [`ModalSize`](#type-ModalSize)<br>`"sm" \| "md" \| "lg"` | `"md"` | The width of the window. The height comes from the content; only the body scrolls, header and footer stand fast.<br>Shown in: [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content), [Guard unsaved changes](#/modal/unsaved-changes) and 2 more |
13504
+ | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open.<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 10 more |
13505
+ | `size` | [`ModalSize`](#type-ModalSize)<br>`"sm" \| "md" \| "lg"` | `"md"` | The width of the window. The height comes from the content; only the body scrolls, header and footer stand fast.<br>Shown in: [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content), [Guard unsaved changes](#/modal/unsaved-changes) and 3 more |
13391
13506
  | `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop.<br>Shown in: [A window that must be answered](#/modal/must-be-answered) |
13507
+ | `ref` | `Ref<HTMLDialogElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
13392
13508
 
13393
13509
  ###### Events
13394
13510
 
13395
13511
  | Prop | Type | Default | Description |
13396
13512
  |---|---|---|---|
13397
- | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 9 more |
13513
+ | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 10 more |
13398
13514
 
13399
13515
  Also takes every attribute of `<dialog>` – without `onClose`.
13400
13516
 
@@ -13402,9 +13518,10 @@ Also takes every attribute of `<dialog>` – without `onClose`.
13402
13518
 
13403
13519
  | Prop | Type | Default | Description |
13404
13520
  |---|---|---|---|
13405
- | `title` *required* | `ReactNode` | — | The heading of the window. It names it for the screen reader at the same time – a dialog without a name says only "dialog".<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 9 more |
13406
- | `description` | `ReactNode` | — | One sentence below the heading: what is to be decided here.<br>Shown in: [A window that holds focus](#/modal/a-window), [Scroll long content](#/modal/long-content), [Guard unsaved changes](#/modal/unsaved-changes) and 7 more |
13521
+ | `title` *required* | `ReactNode` | — | The heading of the window. It names it for the screen reader at the same time – a dialog without a name says only "dialog".<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 10 more |
13522
+ | `description` | `ReactNode` | — | One sentence below the heading: what is to be decided here.<br>Shown in: [A window that holds focus](#/modal/a-window), [Scroll long content](#/modal/long-content), [Guard unsaved changes](#/modal/unsaved-changes) and 8 more |
13407
13523
  | `hideClose` | `boolean` | `false` | Hides the close button.<br>Shown in: [A window that must be answered](#/modal/must-be-answered) |
13524
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
13408
13525
 
13409
13526
  Also takes every attribute of `<div>` – without `title`.
13410
13527
 
@@ -13722,14 +13839,15 @@ export default function BesideAServiceList() {
13722
13839
  | Prop | Type | Default | Description |
13723
13840
  |---|---|---|---|
13724
13841
  | `side` | `"right" \| "left"` | `"right"` | The edge the drawer stands at and enters from.<br>Shown in: [From the left, and wider](#/drawer/left-and-wider) |
13725
- | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open. From `ModalProps`.<br>Shown in: [A detail from the edge](#/drawer/a-detail-from-the-edge), [From the left, and wider](#/drawer/left-and-wider), [Open a service's detail from its list](#/drawer/beside-a-service-list) and 9 more |
13842
+ | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open. From `ModalProps`.<br>Shown in: [A detail from the edge](#/drawer/a-detail-from-the-edge), [From the left, and wider](#/drawer/left-and-wider), [Open a service's detail from its list](#/drawer/beside-a-service-list) and 10 more |
13726
13843
  | `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop. From `ModalProps`.<br>Shown in: [A window that must be answered (Modal)](#/modal/must-be-answered) |
13844
+ | `ref` | `Ref<HTMLDialogElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
13727
13845
 
13728
13846
  ###### Events
13729
13847
 
13730
13848
  | Prop | Type | Default | Description |
13731
13849
  |---|---|---|---|
13732
- | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. From `ModalProps`.<br>Shown in: [A detail from the edge](#/drawer/a-detail-from-the-edge), [From the left, and wider](#/drawer/left-and-wider), [Open a service's detail from its list](#/drawer/beside-a-service-list) and 9 more |
13850
+ | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. From `ModalProps`.<br>Shown in: [A detail from the edge](#/drawer/a-detail-from-the-edge), [From the left, and wider](#/drawer/left-and-wider), [Open a service's detail from its list](#/drawer/beside-a-service-list) and 10 more |
13733
13851
 
13734
13852
  Also takes every attribute of `<dialog>` – without `onClose`.
13735
13853
 
@@ -13902,6 +14020,7 @@ export default function WhileItRuns() {
13902
14020
  | `cancelLabel` | `string` | the wording's "Cancel" | Label of the cancelling button.<br>Shown in: [Guard unsaved changes (Modal)](#/modal/unsaved-changes) |
13903
14021
  | `tone` | `"primary" \| "danger"` | `"primary"` | "danger" for destructive actions.<br>Shown in: [The one question](#/confirmdialog/the-one-question), [Ask before a commitment](#/confirmdialog/a-commitment), [Stay open while it runs](#/confirmdialog/while-it-runs) and 2 more |
13904
14022
  | `loading` | `boolean` | `false` | Locks the actions while the confirmation is running.<br>Shown in: [Stay open while it runs](#/confirmdialog/while-it-runs) |
14023
+ | `ref` | `Ref<HTMLDialogElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
13905
14024
 
13906
14025
  ###### Events
13907
14026
 
@@ -14190,6 +14309,7 @@ export default function SearchHundredsOfPages() {
14190
14309
  | `items` *required* | `readonly `[`CommandPaletteItem`](#type-CommandPaletteItem)`[]` | — | The candidates that are searched. They belong to the caller: the palette keeps no memory and does not reorder them.<br>Shown in: [Run a command](#/commandpalette/commands), [Show recent choices first](#/commandpalette/recent-first), [Open it with a shortcut](#/commandpalette/shortcut) and 2 more |
14191
14310
  | `restingItems` | `readonly `[`CommandPaletteItem`](#type-CommandPaletteItem)`[]` | — | What stands there as long as nothing is typed. Without a value: nothing, and the window is only the field. A LIST and not a switch, because the interesting question is not "all or none" but "which". Whoever really wants to show everything passes `restingItems={items}`; whoever wants to show the five most recently used passes those - and a switch cannot do that. With long lists "all" is also exactly the state this component did away with: a list that is already full can only shrink. The rows stand in THIS order and without marks: without a query there is no rank and nothing to mark. Rank and weight therefore play no part here; the order belongs to the caller.<br>Shown in: [Run a command](#/commandpalette/commands), [Show recent choices first](#/commandpalette/recent-first) |
14192
14311
  | `maxFinds` | `number` | every find | The most finds that stand at once - the best by rank. A last line says how many more there are, and typing on narrows them. For a long list of candidates, where a single letter finds hundreds and drawing them all would make every keystroke wait.<br>Shown in: [Search hundreds of pages](#/commandpalette/search-hundreds-of-pages) |
14312
+ | `ref` | `Ref<HTMLDialogElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
14193
14313
 
14194
14314
  ###### Events
14195
14315
 
@@ -14518,6 +14638,7 @@ export default function BrowseDownAndBackUp() {
14518
14638
  | Prop | Type | Default | Description |
14519
14639
  |---|---|---|---|
14520
14640
  | `items` *required* | `readonly `[`BreadcrumbEntry`](#type-BreadcrumbEntry)`[]` | — | The trail from the root to the current page; the last is the page.<br>Shown in: [A trail](#/breadcrumb/a-trail), [Route it yourself](#/breadcrumb/route-it-yourself), [Fold when narrow](#/breadcrumb/fold-when-narrow) and 3 more |
14641
+ | `ref` | `Ref<HTMLElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
14521
14642
 
14522
14643
  Also takes every attribute of the rendered element.
14523
14644
 
@@ -14847,6 +14968,7 @@ export default function AnInvoiceInTabs() {
14847
14968
  |---|---|---|---|
14848
14969
  | `defaultValue` | `string` | — | Uncontrolled: the tab that stands first. Afterwards the choice belongs to the tabs - for a switch no address and no handler needs to know.<br>Shown in: [One view at a time](#/tabs/one-view-at-a-time), [Loading and empty panels](#/tabs/loading-and-empty-panels), [An invoice in tabs](#/tabs/an-invoice-in-tabs) and 1 more |
14849
14970
  | `value` | `string` | — | The value of the visible tab. Controlled, `Tabs` remember nothing, so that the tab can come out of an address.<br>Shown in: [Keep the tab in the address](#/tabs/keep-the-tab-in-the-address) |
14971
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
14850
14972
 
14851
14973
  ###### Events
14852
14974
 
@@ -14861,6 +14983,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
14861
14983
  | Prop | Type | Default | Description |
14862
14984
  |---|---|---|---|
14863
14985
  | `value` *required* | `string` | — | The value this tab reports – and under which its panel stands.<br>Shown in: [One view at a time](#/tabs/one-view-at-a-time), [Keep the tab in the address](#/tabs/keep-the-tab-in-the-address), [Loading and empty panels](#/tabs/loading-and-empty-panels) and 2 more |
14986
+ | `ref` | `Ref<HTMLButtonElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
14864
14987
 
14865
14988
  Also takes every attribute of `<button>`.
14866
14989
 
@@ -14869,6 +14992,7 @@ Also takes every attribute of `<button>`.
14869
14992
  | Prop | Type | Default | Description |
14870
14993
  |---|---|---|---|
14871
14994
  | `value` *required* | `string` | — | The value of the tab this panel belongs to. Only the matching panel stands in the document – a hidden panel would keep focus, scroll position and live regions that nobody sees.<br>Shown in: [One view at a time](#/tabs/one-view-at-a-time), [Keep the tab in the address](#/tabs/keep-the-tab-in-the-address), [Loading and empty panels](#/tabs/loading-and-empty-panels) and 2 more |
14995
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
14872
14996
 
14873
14997
  Also takes every attribute of `<div>`.
14874
14998
 
@@ -15102,6 +15226,7 @@ export default function LongSettingsInSections() {
15102
15226
  | `defaultValue` | `readonly string[]` | `[]` | Uncontrolled: the sections open at the start.<br>Shown in: [One section at a time](#/accordion/one-section-at-a-time), [Several open, one locked](#/accordion/several-open), [Long settings in sections](#/accordion/long-settings-in-sections) |
15103
15227
  | `value` | `readonly string[]` | — | Controlled: the values of the open sections. A list for both types, so that switching the type changes nothing else.<br>Shown in: [Open and fold all](#/accordion/open-and-fold-all) |
15104
15228
  | `headingLevel` | `2 \| 3 \| 4 \| 5 \| 6` | `3` | The level of the heading each header stands in - the one that fits the page's outline.<br>Shown in: [Several open, one locked](#/accordion/several-open), [Long settings in sections](#/accordion/long-settings-in-sections) |
15229
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
15105
15230
 
15106
15231
  ###### Events
15107
15232
 
@@ -15118,6 +15243,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
15118
15243
  | `value` *required* | `string` | — | What names the section in the accordion's `value`.<br>Shown in: [One section at a time](#/accordion/one-section-at-a-time), [Several open, one locked](#/accordion/several-open), [Open and fold all](#/accordion/open-and-fold-all) and 1 more |
15119
15244
  | `title` *required* | `ReactNode` | — | The header's text. It names the section's region too.<br>Shown in: [One section at a time](#/accordion/one-section-at-a-time), [Several open, one locked](#/accordion/several-open), [Open and fold all](#/accordion/open-and-fold-all) and 1 more |
15120
15245
  | `disabled` | `boolean` | `false` | A section that cannot be opened now; its header stays in the list.<br>Shown in: [Several open, one locked](#/accordion/several-open) |
15246
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
15121
15247
 
15122
15248
  Also takes every attribute of `<div>` – without `title`.
15123
15249
 
@@ -15320,6 +15446,7 @@ Under forced colours the lines between the steps take the system's text colour,
15320
15446
  | `steps` *required* | `readonly `[`StepperStep`](#type-StepperStep)`[]` | — | The steps in the order they are walked.<br>Shown in: [Where a procedure stands](#/stepper/where-a-procedure-stands), [Steps in a column](#/stepper/steps-in-a-column), [A failed step](#/stepper/a-failed-step) and 6 more |
15321
15447
  | `current` *required* | `number` | — | The index of the step being worked on. The steps before it are done, the ones after it upcoming; past the last step, every step is done.<br>Shown in: [Where a procedure stands](#/stepper/where-a-procedure-stands), [Steps in a column](#/stepper/steps-in-a-column), [A failed step](#/stepper/a-failed-step) and 6 more |
15322
15448
  | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | `horizontal` in a row, `vertical` in a column for steps with longer descriptions.<br>Shown in: [Steps in a column](#/stepper/steps-in-a-column), [A failed step](#/stepper/a-failed-step), [An invoice in tabs (Tabs)](#/tabs/an-invoice-in-tabs) |
15449
+ | `ref` | `Ref<HTMLOListElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
15323
15450
 
15324
15451
  Also takes every attribute of the rendered element.
15325
15452
 
@@ -15895,15 +16022,16 @@ export default function SearchCheckAndReveal() {
15895
16022
 
15896
16023
  | Prop | Type | Default | Description |
15897
16024
  |---|---|---|---|
15898
- | `tree` *required* | [`Tree`](#type-Tree)`<K, S>` | — | The tree from `useTree`. It is the whole state: flattening, active node, checks, anchor. The view holds nothing beside it.<br>Shown in: [A tree](#/treeview/a-tree), [Tick a selection](#/treeview/tick-a-selection), [Load branches on demand](#/treeview/load-branches-on-demand) and 4 more |
16025
+ | `tree` *required* | [`Tree`](#type-Tree)`<K, S>` | — | The tree from `useTree`. It is the whole state: flattening, active node, checks, anchor. The view holds nothing beside it.<br>Shown in: [A tree](#/treeview/a-tree), [Tick a selection](#/treeview/tick-a-selection), [Load branches on demand](#/treeview/load-branches-on-demand) and 5 more |
15899
16026
  | `checkable` | `boolean` | `false` | Show ticks. Without them a tree remains that knows only an active node - and no space is kept free for them.<br>Shown in: [Tick a selection](#/treeview/tick-a-selection), [With an error](#/treeview/with-an-error), [Search, check and reveal in a large tree](#/treeview/search-check-and-reveal) |
15900
- | `children` *required* | `(entry: `[`FlatteningEntry`](#type-FlatteningEntry)`<K, S>) => ReactNode` | — | What the node says.<br>Shown in: [A tree](#/treeview/a-tree), [Tick a selection](#/treeview/tick-a-selection), [Load branches on demand](#/treeview/load-branches-on-demand) and 4 more |
16027
+ | `children` *required* | `(entry: `[`FlatteningEntry`](#type-FlatteningEntry)`<K, S>) => ReactNode` | — | What the node says.<br>Shown in: [A tree](#/treeview/a-tree), [Tick a selection](#/treeview/tick-a-selection), [Load branches on demand](#/treeview/load-branches-on-demand) and 5 more |
16028
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
15901
16029
 
15902
16030
  ###### Accessibility
15903
16031
 
15904
16032
  | Prop | Type | Default | Description |
15905
16033
  |---|---|---|---|
15906
- | `ariaLabel` *required* | `string` | — | Required: the tree is a structure of its own and needs a name.<br>Shown in: [A tree](#/treeview/a-tree), [Tick a selection](#/treeview/tick-a-selection), [Load branches on demand](#/treeview/load-branches-on-demand) and 4 more |
16034
+ | `ariaLabel` *required* | `string` | — | Required: the tree is a structure of its own and needs a name.<br>Shown in: [A tree](#/treeview/a-tree), [Tick a selection](#/treeview/tick-a-selection), [Load branches on demand](#/treeview/load-branches-on-demand) and 5 more |
15907
16035
 
15908
16036
  Also takes every attribute of `<div>` – without `children`.
15909
16037
 
@@ -15917,6 +16045,7 @@ Also takes every attribute of `<div>` – without `children`.
15917
16045
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`. From `InputProps`.<br>Shown in: [With an error](#/treeview/with-an-error), [Configurator (Input)](#/input/configurator-input), [With an error (Input)](#/input/with-an-error) |
15918
16046
  | `numeric` | `boolean` | `false` | Right-aligned tabular figures in Geist Mono, e.g. for key figures. From `InputProps`.<br>Shown in: [Configurator (Input)](#/input/configurator-input), [Align reference numbers (Input)](#/input/align-reference-numbers), [Take a delivery address (Input)](#/input/take-a-delivery-address) and 2 more |
15919
16047
  | `clearable` | `boolean` | `false` | Shows a gently appearing cross where there is content, which clears the input. Requires a controlled field (value) and onClear. From `InputProps`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [Clear the field (Input)](#/input/clear-the-field) |
16048
+ | `ref` | `Ref<HTMLInputElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
15920
16049
 
15921
16050
  ###### Events
15922
16051
 
@@ -15962,7 +16091,7 @@ among its siblings.
15962
16091
 
15963
16092
  | Prop | Type | Default | Description |
15964
16093
  |---|---|---|---|
15965
- | `node` *required* | `K` | — | <br>Shown in: [A tree](#/treeview/a-tree), [Tick a selection](#/treeview/tick-a-selection), [Load branches on demand](#/treeview/load-branches-on-demand) and 4 more |
16094
+ | `node` *required* | `K` | — | <br>Shown in: [A tree](#/treeview/a-tree), [Tick a selection](#/treeview/tick-a-selection), [Load branches on demand](#/treeview/load-branches-on-demand) and 5 more |
15966
16095
  | `key` *required* | `S` | — | |
15967
16096
  | `level` *required* | `number` | — | Roots stand at 0. Drives the indentation and what is read out. |
15968
16097
  | `label` *required* | `string` | — | The node's text; here, so that typeahead can be a pure function over the flattening and needs no reader. |
@@ -16016,6 +16145,291 @@ to render and the heights of the filler rows around it.
16016
16145
 
16017
16146
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
16018
16147
 
16148
+ ### Benchmark
16149
+
16150
+ A large virtualised tree, measured in this browser rather than claimed: the first render, a walk down it with the arrow keys and a scroll.
16151
+
16152
+ ```ts
16153
+ import { useVirtual } from "@umriss-ui/core";
16154
+ ```
16155
+
16156
+ Demo page: https://romanhaendler.github.io/umriss-ui/core/benchmark/
16157
+
16158
+ The figures in `packages/core/docs/capabilities-tree.md` come from here. The page adds nothing to the tree; it times it from outside.
16159
+
16160
+ #### Examples
16161
+
16162
+ ##### Measure a large tree
16163
+
16164
+ Set a node count and press the buttons: the first render, a walk down the tree with the arrow keys and a scroll are timed in this browser.
16165
+
16166
+ ```tsx
16167
+ /* What a large virtualised tree costs, measured from outside: the first render,
16168
+ a walk of the Active node with the arrow keys, and a scroll. Nothing here is
16169
+ a prop of the tree. Not photographed: it measures the moment it runs.
16170
+
16171
+ The scripted runs start from a button and are driven by the page itself, so
16172
+ a person and a script read the same figures. `data-role` names every control
16173
+ and every figure; `status` reads idle, running or done.
16174
+
16175
+ What a figure covers: script, React's commit and a forced layout - the
16176
+ clock stops after two macrotasks and a layout read, not at the paint, so
16177
+ that frame quantisation does not enter the figure. */
16178
+
16179
+ import { useCallback, useEffect, useRef, useState } from "react";
16180
+ import { Button, Text, TreeView, useTree } from "@umriss-ui/core";
16181
+ import type { NodeReader } from "@umriss-ui/core";
16182
+
16183
+ interface Unit {
16184
+ id: string;
16185
+ name: string;
16186
+ children?: Unit[];
16187
+ }
16188
+
16189
+ const SIZES = [10_000, 50_000, 100_000] as const;
16190
+ const ROW = 26;
16191
+ const KEYS = 200;
16192
+ const SCROLLS = 100;
16193
+ /* Rows per scroll step: far enough to replace the window every time. */
16194
+ const SCROLL_ROWS = 10;
16195
+
16196
+ /** A forest of folders (6 groups of 7 leaves each, 49 nodes per root) cut off at
16197
+ `count` nodes; every folder is open, so the visible rows are the nodes. */
16198
+ function build(count: number): { roots: Unit[]; open: string[] } {
16199
+ const roots: Unit[] = [];
16200
+ const open: string[] = [];
16201
+ let made = 0;
16202
+ const node = (id: string, children?: Unit[]): Unit => ({ id, name: `Node ${id}`, children });
16203
+ for (let r = 0; made < count; r++) {
16204
+ const groups: Unit[] = [];
16205
+ open.push(`r${r}`);
16206
+ made++;
16207
+ for (let g = 0; g < 6 && made < count; g++) {
16208
+ const leaves: Unit[] = [];
16209
+ made++;
16210
+ open.push(`r${r}-${g}`);
16211
+ for (let l = 0; l < 7 && made < count; l++) {
16212
+ leaves.push(node(`r${r}-${g}-${l}`));
16213
+ made++;
16214
+ }
16215
+ groups.push(node(`r${r}-${g}`, leaves));
16216
+ }
16217
+ roots.push(node(`r${r}`, groups));
16218
+ }
16219
+ return { roots, open };
16220
+ }
16221
+
16222
+ const READER: NodeReader<Unit> = {
16223
+ key: (unit) => unit.id,
16224
+ children: (unit) => unit.children,
16225
+ label: (unit) => unit.name,
16226
+ };
16227
+
16228
+ type Status = "idle" | "running" | "done";
16229
+ type Figures = { firstRender: number | null; perKey: number | null; perScroll: number | null };
16230
+
16231
+ /** Two macrotasks, then a layout read: React has committed by then. */
16232
+ function settled(): Promise<void> {
16233
+ const tick = () =>
16234
+ new Promise<void>((resolve) => {
16235
+ const channel = new MessageChannel();
16236
+ channel.port1.onmessage = () => resolve();
16237
+ channel.port2.postMessage(null);
16238
+ });
16239
+ return tick()
16240
+ .then(tick)
16241
+ .then(() => void document.body.offsetHeight);
16242
+ }
16243
+
16244
+ function Body({ built, onShown }: { built: { roots: Unit[]; open: string[] }; onShown: () => void }) {
16245
+ const tree = useTree(built.roots, {
16246
+ reader: READER,
16247
+ defaultExpanded: built.open,
16248
+ defaultActive: built.roots[0]?.id ?? null,
16249
+ virtual: { rowHeight: ROW },
16250
+ });
16251
+ useEffect(onShown, [onShown]);
16252
+ return (
16253
+ <TreeView tree={tree} ariaLabel="Benchmark tree" style={{ height: 320 }}>
16254
+ {(entry) => entry.node.name}
16255
+ </TreeView>
16256
+ );
16257
+ }
16258
+
16259
+ /** The clock, behind a function so that it is read in handlers only. */
16260
+ const now = () => performance.now();
16261
+
16262
+ const show = (ms: number | null) => (ms === null ? "-" : ms.toFixed(2));
16263
+
16264
+ export default function Benchmark() {
16265
+ const [size, setSize] = useState<(typeof SIZES)[number]>(SIZES[0]);
16266
+ const [built, setBuilt] = useState(() => build(SIZES[0]));
16267
+ const [status, setStatus] = useState<Status>("idle");
16268
+ const [figures, setFigures] = useState<Figures>({ firstRender: null, perKey: null, perScroll: null });
16269
+ const [run, setRun] = useState(0);
16270
+ const started = useRef<number | null>(null);
16271
+ const host = useRef<HTMLDivElement>(null);
16272
+
16273
+ const choose = (n: (typeof SIZES)[number]) => {
16274
+ if (status === "running") return;
16275
+ const next = build(n);
16276
+ setStatus("running");
16277
+ setFigures({ firstRender: null, perKey: null, perScroll: null });
16278
+ started.current = now();
16279
+ setSize(n);
16280
+ setBuilt(next);
16281
+ setRun((r) => r + 1);
16282
+ };
16283
+
16284
+ /* Stable between renders: the body's effect runs on mount only, which is
16285
+ the first render of a run (the body is keyed by the run, so the
16286
+ same size again renders anew). */
16287
+ const onShown = useCallback(() => {
16288
+ const from = started.current;
16289
+ if (from === null) return;
16290
+ started.current = null;
16291
+ void settled().then(() => {
16292
+ setFigures((f) => ({ ...f, firstRender: performance.now() - from }));
16293
+ setStatus("done");
16294
+ });
16295
+ }, []);
16296
+
16297
+ const tree = () => host.current?.querySelector<HTMLElement>('[role="tree"]') ?? null;
16298
+
16299
+ const walk = async () => {
16300
+ const root = tree();
16301
+ const active = root?.querySelector<HTMLElement>('[role="treeitem"][tabindex="0"]');
16302
+ if (status === "running" || !root || !active) return;
16303
+ setStatus("running");
16304
+ active.focus();
16305
+ await settled();
16306
+ let total = 0;
16307
+ for (let i = 0; i < KEYS; i++) {
16308
+ const target = document.activeElement ?? root;
16309
+ const from = performance.now();
16310
+ target.dispatchEvent(new KeyboardEvent("keydown", { key: "ArrowDown", bubbles: true, cancelable: true }));
16311
+ await settled();
16312
+ total += performance.now() - from;
16313
+ }
16314
+ setFigures((f) => ({ ...f, perKey: total / KEYS }));
16315
+ setStatus("done");
16316
+ };
16317
+
16318
+ const scroll = async () => {
16319
+ const root = tree();
16320
+ if (status === "running" || !root) return;
16321
+ setStatus("running");
16322
+ root.scrollTop = 0;
16323
+ await settled();
16324
+ let from = 0;
16325
+ /* A capture listener on the window runs before React's own at the root, so
16326
+ the clock starts as the scroll event is dispatched. */
16327
+ const start = () => {
16328
+ from = performance.now();
16329
+ };
16330
+ window.addEventListener("scroll", start, { capture: true });
16331
+ let total = 0;
16332
+ for (let i = 0; i < SCROLLS; i++) {
16333
+ /* A step that moves nothing fires no event; the run goes on after a
16334
+ moment instead of waiting for one that never comes. */
16335
+ const fired = new Promise<void>((resolve) => {
16336
+ root.addEventListener("scroll", () => resolve(), { once: true });
16337
+ setTimeout(resolve, 500);
16338
+ });
16339
+ from = performance.now();
16340
+ root.scrollTop += SCROLL_ROWS * ROW;
16341
+ await fired;
16342
+ await settled();
16343
+ total += performance.now() - from;
16344
+ }
16345
+ window.removeEventListener("scroll", start, { capture: true });
16346
+ setFigures((f) => ({ ...f, perScroll: total / SCROLLS }));
16347
+ setStatus("done");
16348
+ };
16349
+
16350
+ return (
16351
+ <>
16352
+ <div style={{ display: "flex", flexWrap: "wrap", gap: "0.5rem" }}>
16353
+ {SIZES.map((n) => (
16354
+ <Button key={n} size="sm" data-role={`size-${n}`} aria-pressed={n === size} onClick={() => choose(n)}>
16355
+ {n.toLocaleString("en-US")} nodes
16356
+ </Button>
16357
+ ))}
16358
+ <Button size="sm" data-role="walk" onClick={walk}>
16359
+ Walk {KEYS} keys
16360
+ </Button>
16361
+ <Button size="sm" data-role="scroll" onClick={scroll}>
16362
+ Scroll {SCROLLS} steps
16363
+ </Button>
16364
+ </div>
16365
+ <dl style={{ display: "flex", flexWrap: "wrap", gap: "1.5rem", margin: 0 }}>
16366
+ <div>
16367
+ <Text as="dt">Status</Text>
16368
+ <Text as="dd" mono style={{ margin: 0 }} data-role="status">{status}</Text>
16369
+ </div>
16370
+ <div>
16371
+ <Text as="dt">Nodes</Text>
16372
+ <Text as="dd" mono style={{ margin: 0 }} data-role="nodes">{size}</Text>
16373
+ </div>
16374
+ <div>
16375
+ <Text as="dt">First render (ms)</Text>
16376
+ <Text as="dd" mono style={{ margin: 0 }} data-role="first-render">{show(figures.firstRender)}</Text>
16377
+ </div>
16378
+ <div>
16379
+ <Text as="dt">Per key (ms)</Text>
16380
+ <Text as="dd" mono style={{ margin: 0 }} data-role="per-key">{show(figures.perKey)}</Text>
16381
+ </div>
16382
+ <div>
16383
+ <Text as="dt">Per scroll event (ms)</Text>
16384
+ <Text as="dd" mono style={{ margin: 0 }} data-role="per-scroll">{show(figures.perScroll)}</Text>
16385
+ </div>
16386
+ </dl>
16387
+ <div ref={host}>
16388
+ <Body key={run} built={built} onShown={onShown} />
16389
+ </div>
16390
+ </>
16391
+ );
16392
+ }
16393
+ ```
16394
+
16395
+ #### Keyboard
16396
+
16397
+ The keys of [TreeView](#/treeview/keyboard-treeview) apply here.
16398
+
16399
+ #### Props on this page
16400
+
16401
+ From `TextProps` — the full table stands on [Typography](#/typography/type-TextProps).
16402
+
16403
+ | Prop | Type | Default | Description |
16404
+ |---|---|---|---|
16405
+ | [`as`](#/typography/TextProps-as) | `ElementType` | `"p"` | Element to render as. |
16406
+ | [`mono`](#/typography/TextProps-mono) | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers. |
16407
+
16408
+ From `ButtonProps` — the full table stands on [Button](#/button/type-ButtonProps).
16409
+
16410
+ | Prop | Type | Default | Description |
16411
+ |---|---|---|---|
16412
+ | [`size`](#/button/ButtonProps-size) | [`ButtonSize`](#/button/type-ButtonSize)<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. |
16413
+
16414
+ From `IconButtonProps` — the full table stands on [IconButton](#/iconbutton/type-IconButtonProps).
16415
+
16416
+ | Prop | Type | Default | Description |
16417
+ |---|---|---|---|
16418
+ | [`size`](#/iconbutton/IconButtonProps-size) | [`ButtonSize`](#/iconbutton/type-ButtonSize)<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. From `ButtonProps`. |
16419
+
16420
+ From `TreeViewProps` — the full table stands on [TreeView](#/treeview/type-TreeViewProps).
16421
+
16422
+ | Prop | Type | Default | Description |
16423
+ |---|---|---|---|
16424
+ | [`tree`](#/treeview/TreeViewProps-tree) *required* | [`Tree`](#/treeview/type-Tree)`<K, S>` | — | The tree from `useTree`. It is the whole state: flattening, active node, checks, anchor. The view holds nothing beside it. |
16425
+ | [`children`](#/treeview/TreeViewProps-children) *required* | `(entry: `[`FlatteningEntry`](#/treeview/type-FlatteningEntry)`<K, S>) => ReactNode` | — | What the node says. |
16426
+
16427
+ ###### Accessibility
16428
+
16429
+ | Prop | Type | Default | Description |
16430
+ |---|---|---|---|
16431
+ | [`ariaLabel`](#/treeview/TreeViewProps-ariaLabel) *required* | `string` | — | Required: the tree is a structure of its own and needs a name. |
16432
+
16019
16433
  ## Data display
16020
16434
 
16021
16435
  Single values and labels, read at a glance.
@@ -16190,6 +16604,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
16190
16604
  |---|---|---|---|
16191
16605
  | `tone` | [`BadgeTone`](#type-BadgeTone)<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | `"neutral"` | What the badge stands for. There is always a word beside it: a colour on its own is not a statement.<br>Shown in: [Configurator](#/badge/configurator-badge), [Tones](#/badge/tones), [Counters](#/badge/counters) and 19 more |
16192
16606
  | `pill` | `boolean` | `false` | Fully rounded pill shape - for counters and key figures. The default is the slightly rounded badge shape for status labels.<br>Shown in: [Configurator](#/badge/configurator-badge), [Counters](#/badge/counters), [Fold the body (Card)](#/card/fold-the-body) and 1 more |
16607
+ | `ref` | `Ref<HTMLSpanElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
16193
16608
 
16194
16609
  Also takes every attribute of `<span>`.
16195
16610
 
@@ -16439,6 +16854,7 @@ export default function AFilterBar() {
16439
16854
  | `children` *required* | `ReactNode` | — | The text of the label – short enough to stand on one line.<br>Shown in: [Configurator](#/tag/configurator-tag), [A tag](#/tag/a-tag), [Tones](#/tag/tones) and 5 more |
16440
16855
  | `removeLabel` | `string` | — | Label of the remove key. Needed as soon as the content is not text – no sentence can be formed out of a node.<br>Shown in: [Remove tags from a group](#/tag/removable) |
16441
16856
  | `disabled` | `boolean` | `false` | Takes the remove key away from the tag without hiding it: disabled is a statement about the key and not about the label.<br>Shown in: [Configurator](#/tag/configurator-tag), [Remove tags from a group](#/tag/removable) |
16857
+ | `ref` | `Ref<HTMLSpanElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
16442
16858
 
16443
16859
  ###### Events
16444
16860
 
@@ -16450,6 +16866,10 @@ Also takes every attribute of `<span>` – without `onRemove`.
16450
16866
 
16451
16867
  ##### `TagGroupProps`
16452
16868
 
16869
+ | Prop | Type | Default | Description |
16870
+ |---|---|---|---|
16871
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
16872
+
16453
16873
  ###### Accessibility
16454
16874
 
16455
16875
  | Prop | Type | Default | Description |
@@ -17242,6 +17662,7 @@ It announces nothing: a value that changes or a verdict that turns is read when
17242
17662
  | `history` | `readonly number[]` | — | Values in chronological order; yields the history line, across the tile beneath the figures, or beside them in a tile of 380 px and more.<br>Shown in: [Add a history](#/stat/history), [Give the history room](#/stat/give-the-history-room), [Watch a kiln zone](#/stat/a-kiln-zone) and 4 more |
17243
17663
  | `asOf` | `Date \| number \| null` | — | When the value was true – not when it was fetched.<br>Shown in: [Show how fresh a value is](#/stat/freshness), [Watch the services that page at night](#/stat/a-service-overview), [Watch a kiln line over a shift (Scenarios)](#/scenarios/watch-a-kiln-line) |
17244
17664
  | `ages` | [`FreshnessAges`](#type-FreshnessAges) | — | Without ages there is no freshness display and no cadence.<br>Shown in: [Show how fresh a value is](#/stat/freshness), [Watch the services that page at night](#/stat/a-service-overview), [Watch a kiln line over a shift (Scenarios)](#/scenarios/watch-a-kiln-line) |
17665
+ | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
17245
17666
 
17246
17667
  Also takes every attribute of `<div>` – without `children`.
17247
17668
 
@@ -17464,6 +17885,7 @@ It is no live region: a new value is read when a reader reaches the bar. Under f
17464
17885
  | `tone` | [`MeterTone`](#type-MeterTone)<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | `"accent"` | The colour of the bar. It comes from an assessment and not from taste: beside the bar there is always the number or a word, so that the colour is never the only statement.<br>Shown in: [Configurator](#/meter/configurator-meter), [Tones](#/meter/tones), [Compare a team's capacity](#/meter/team-capacity) and 2 more |
17465
17886
  | `showLabel` | `boolean` | `true` | The percentage to the right of the bar (Geist Mono).<br>Shown in: [Configurator](#/meter/configurator-meter), [A share](#/meter/a-share), [Compare a team's capacity](#/meter/team-capacity) and 2 more |
17466
17887
  | `label` | `string` | the wording's "Fill level" | What is being measured, e.g. "Utilisation". A role of `meter` needs a name from the author - the visible percentage inside it does not count for that, and neither does the column heading beside it. Whoever knows what the bar measures says it better than the general term.<br>Shown in: [A share](#/meter/a-share), [Tones](#/meter/tones), [Compare a team's capacity](#/meter/team-capacity) and 2 more |
17888
+ | `ref` | `Ref<HTMLSpanElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
17467
17889
 
17468
17890
  Also takes every attribute of `<span>`.
17469
17891
 
@@ -17733,6 +18155,7 @@ export default function InATable() {
17733
18155
  | `width` | `number \| "fill"` | `96` | Width in pixels; the default is a row width, not a chart width. `"fill"` takes the width of its container, as a tile's history does; the line keeps its stroke and the end point stays round.<br>Shown in: [Configurator](#/sparkline/configurator-sparkline), [Size and tone](#/sparkline/size-and-tone), [One above the other (Splitter)](#/splitter/one-above-the-other) and 1 more |
17734
18156
  | `height` | `number` | `28` | Height in pixels; the default is as high as a table row. With `width` `"fill"` a stylesheet may set the height instead: the drawing follows its box.<br>Shown in: [Configurator](#/sparkline/configurator-sparkline), [Size and tone](#/sparkline/size-and-tone), [One above the other (Splitter)](#/splitter/one-above-the-other) and 1 more |
17735
18157
  | `tone` | `"ink" \| "accent"` | `"ink"` | The line is ink, not meaning: `accent` only where exactly one line among several is to be emphasised.<br>Shown in: [Configurator](#/sparkline/configurator-sparkline), [Size and tone](#/sparkline/size-and-tone) |
18158
+ | `ref` | `Ref<HTMLSpanElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
17736
18159
 
17737
18160
  Also takes every attribute of `<span>`.
17738
18161
 
@@ -17778,7 +18201,7 @@ The chevron that expands and collapses a branch. Drawn pointing right;
17778
18201
  rotate it by 90 degrees for an open branch.
17779
18202
 
17780
18203
  ```ts
17781
- const AngleGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18204
+ function AngleGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
17782
18205
  ```
17783
18206
 
17784
18207
  Used on [CommandPalette](#/commandpalette).
@@ -17799,7 +18222,7 @@ Used on [Scenarios](#/) and [Breadcrumb](#/breadcrumb).
17799
18222
 
17800
18223
  [Button](#/button) – Starts one action when pressed: save, send, deploy, delete. Its variant says how much weight the action carries beside its neighbours, and while the action runs it shows that it is busy and cannot be pressed twice.
17801
18224
 
17802
- Used on [Scenarios](#/), [Installation](#/installation), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [FileInput](#/fileinput), [Combobox](#/combobox), [Spinner](#/spinner), [ProgressBar](#/progressbar), [Skeleton](#/skeleton), [Alert](#/alert), [Toast](#/toast), [EmptyState](#/emptystate), [Tooltip](#/tooltip), [Popover](#/popover), [Menu](#/menu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Accordion](#/accordion), [Stepper](#/stepper), [TreeView](#/treeview), [Badge](#/badge) and [Tag](#/tag).
18225
+ Used on [Scenarios](#/), [Installation](#/installation), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [FileInput](#/fileinput), [Combobox](#/combobox), [Spinner](#/spinner), [ProgressBar](#/progressbar), [Skeleton](#/skeleton), [Alert](#/alert), [Toast](#/toast), [EmptyState](#/emptystate), [Tooltip](#/tooltip), [Popover](#/popover), [Menu](#/menu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Accordion](#/accordion), [Stepper](#/stepper), [TreeView](#/treeview), [Benchmark](#/benchmark), [Badge](#/badge) and [Tag](#/tag).
17803
18226
 
17804
18227
  ##### `ButtonGroup`
17805
18228
 
@@ -17813,9 +18236,9 @@ A calendar leaf: a sheet with its header and two rings. With `range`, a
17813
18236
  bar across the sheet stands for the span a range picker chooses.
17814
18237
 
17815
18238
  ```ts
17816
- const CalendarGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps & {
18239
+ function CalendarGlyph({ ref, size, range, ...rest }: GlyphProps & {
17817
18240
  range?: boolean;
17818
- }, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18241
+ }): import("react").JSX.Element;
17819
18242
  ```
17820
18243
 
17821
18244
  ##### `Card`
@@ -17849,7 +18272,7 @@ Used on [Scenarios](#/), [Theming](#/theming), [Sizes](#/sizes), [ButtonGroup](#
17849
18272
  A clock face at a quarter past - the time pickers' character.
17850
18273
 
17851
18274
  ```ts
17852
- const ClockGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18275
+ function ClockGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
17853
18276
  ```
17854
18277
 
17855
18278
  ##### `Combobox`
@@ -17890,7 +18313,7 @@ The cross that clears a field, removes a tag or a chip, and closes a
17890
18313
  dialog, a toast or an alert - one drawing at the size of its place.
17891
18314
 
17892
18315
  ```ts
17893
- const CrossGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18316
+ function CrossGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
17894
18317
  ```
17895
18318
 
17896
18319
  Used on [IconButton](#/iconbutton).
@@ -17947,7 +18370,7 @@ Used on [Sizes](#/sizes) and [FileInput](#/fileinput).
17947
18370
 
17948
18371
  [FormField](#/formfield) – The frame around a field: its label, a hint below it and the error that replaces the hint. Wrap every field in one, so the question, the help and the problem are read out together.
17949
18372
 
17950
- Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Sizes](#/sizes), [Language](#/language), [Button](#/button), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Checkbox](#/checkbox), [Switch](#/switch), [RadioGroup](#/radiogroup), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Alert](#/alert), [Modal](#/modal), [Breadcrumb](#/breadcrumb), [Accordion](#/accordion) and [TreeView](#/treeview).
18373
+ Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Sizes](#/sizes), [Language](#/language), [Button](#/button), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Checkbox](#/checkbox), [Switch](#/switch), [RadioGroup](#/radiogroup), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Alert](#/alert), [Toast](#/toast), [Modal](#/modal), [Breadcrumb](#/breadcrumb), [Accordion](#/accordion) and [TreeView](#/treeview).
17951
18374
 
17952
18375
  ##### `FormFieldBoundary`
17953
18376
 
@@ -17976,7 +18399,7 @@ The grid laid over an area. Two by two lines; the frame is missing on
17976
18399
  purpose, otherwise it would be a window.
17977
18400
 
17978
18401
  ```ts
17979
- const GridGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18402
+ function GridGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
17980
18403
  ```
17981
18404
 
17982
18405
  Used on [CommandPalette](#/commandpalette).
@@ -17987,7 +18410,7 @@ The grip a drag is taken by: two grooves. Dots are fill, and point 4 of
17987
18410
  the specification draws with the stroke.
17988
18411
 
17989
18412
  ```ts
17990
- const GripGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18413
+ function GripGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
17991
18414
  ```
17992
18415
 
17993
18416
  ##### `Heading`
@@ -18007,7 +18430,7 @@ Used on [Button](#/button), [IconButton](#/iconbutton) and [Menu](#/menu).
18007
18430
 
18008
18431
  [Input](#/input) – A single line of text (text field, text box): names, references, addresses, search terms. Reach for it whenever the answer is short free text; for numbers take a [NumberInput](#/numberinput).
18009
18432
 
18010
- Used on [Sizes](#/sizes), [Button](#/button), [Input](#/input), [FormField](#/formfield), [Alert](#/alert), [Modal](#/modal), [CommandPalette](#/commandpalette) and [Accordion](#/accordion).
18433
+ Used on [Sizes](#/sizes), [Button](#/button), [Input](#/input), [FormField](#/formfield), [Alert](#/alert), [Toast](#/toast), [Modal](#/modal), [CommandPalette](#/commandpalette) and [Accordion](#/accordion).
18011
18434
 
18012
18435
  ##### `LanguageProvider`
18013
18436
 
@@ -18033,7 +18456,7 @@ Measuring: a line with two end marks. Not a ruler with a scale: the teeth
18033
18456
  would be a grey stripe at ten nominal units.
18034
18457
 
18035
18458
  ```ts
18036
- const MeasureGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18459
+ function MeasureGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
18037
18460
  ```
18038
18461
 
18039
18462
  ##### `Menu`
@@ -18054,7 +18477,7 @@ Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [IconButton](#/icon
18054
18477
  Fine dividing line between groups of menu entries.
18055
18478
 
18056
18479
  ```ts
18057
- const MenuSeparator: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
18480
+ function MenuSeparator({ ref, className, ...rest }: HTMLAttributes<HTMLDivElement> & RefProp<HTMLDivElement>): import("react").JSX.Element;
18058
18481
  ```
18059
18482
 
18060
18483
  Used on [Scenarios](#/), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Menu](#/menu) and [ContextMenu](#/contextmenu).
@@ -18070,7 +18493,7 @@ Used on [Scenarios](#/), [Drawer](#/drawer) and [Meter](#/meter).
18070
18493
  The minus of `NumberInput`'s step buttons.
18071
18494
 
18072
18495
  ```ts
18073
- const MinusGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18496
+ function MinusGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
18074
18497
  ```
18075
18498
 
18076
18499
  Used on [IconButton](#/iconbutton).
@@ -18079,7 +18502,7 @@ Used on [IconButton](#/iconbutton).
18079
18502
 
18080
18503
  [Modal](#/modal) – A window above the page that holds the focus until it is answered or closed (also called a dialog). Reach for it for a short task that interrupts the page: create an item, edit its settings, read a policy.
18081
18504
 
18082
- Used on [Scenarios](#/), [Sizes](#/sizes), [Modal](#/modal), [Drawer](#/drawer) and [CommandPalette](#/commandpalette).
18505
+ Used on [Scenarios](#/), [Sizes](#/sizes), [Toast](#/toast), [Modal](#/modal), [Drawer](#/drawer) and [CommandPalette](#/commandpalette).
18083
18506
 
18084
18507
  ##### `ModalBody`
18085
18508
 
@@ -18087,27 +18510,27 @@ The content of a `Modal` or `Drawer` - the part that scrolls while head and
18087
18510
  foot stand fast.
18088
18511
 
18089
18512
  ```ts
18090
- const ModalBody: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
18513
+ function ModalBody({ ref, className, children, ...rest }: HTMLAttributes<HTMLDivElement> & RefProp<HTMLDivElement>): import("react").JSX.Element;
18091
18514
  ```
18092
18515
 
18093
- Used on [Scenarios](#/), [Sizes](#/sizes), [Modal](#/modal) and [Drawer](#/drawer).
18516
+ Used on [Scenarios](#/), [Sizes](#/sizes), [Toast](#/toast), [Modal](#/modal) and [Drawer](#/drawer).
18094
18517
 
18095
18518
  ##### `ModalFooter`
18096
18519
 
18097
18520
  The foot of a `Modal` or `Drawer`, for its buttons; they stand at the end.
18098
18521
 
18099
18522
  ```ts
18100
- const ModalFooter: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
18523
+ function ModalFooter({ ref, className, children, ...rest }: HTMLAttributes<HTMLDivElement> & RefProp<HTMLDivElement>): import("react").JSX.Element;
18101
18524
  ```
18102
18525
 
18103
- Used on [Scenarios](#/), [Sizes](#/sizes), [Modal](#/modal) and [Drawer](#/drawer).
18526
+ Used on [Scenarios](#/), [Sizes](#/sizes), [Toast](#/toast), [Modal](#/modal) and [Drawer](#/drawer).
18104
18527
 
18105
18528
  ##### `ModalHeader`
18106
18529
 
18107
18530
  [Modal](#/modal) – The head of a `Modal` or `Drawer`: its title, which names the dialog for a
18108
18531
  screen reader, an optional sentence below it, and the close cross.
18109
18532
 
18110
- Used on [Scenarios](#/), [Sizes](#/sizes), [Modal](#/modal) and [Drawer](#/drawer).
18533
+ Used on [Scenarios](#/), [Sizes](#/sizes), [Toast](#/toast), [Modal](#/modal) and [Drawer](#/drawer).
18111
18534
 
18112
18535
  ##### `MultiSelect`
18113
18536
 
@@ -18126,7 +18549,7 @@ Used on [Scenarios](#/), [Sizes](#/sizes), [Language](#/language), [FormField](#
18126
18549
  The plus of `NumberInput`'s step buttons.
18127
18550
 
18128
18551
  ```ts
18129
- const PlusGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18552
+ function PlusGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
18130
18553
  ```
18131
18554
 
18132
18555
  Used on [IconButton](#/iconbutton).
@@ -18159,7 +18582,7 @@ Used on [Sizes](#/sizes) and [SegmentedControl](#/segmentedcontrol).
18159
18582
 
18160
18583
  [Select](#/select) – One choice from a short, known list (dropdown). Under a mouse and the keys it opens the Combobox's list; under a finger the system's picker, a wheel on the phone.
18161
18584
 
18162
- Used on [Scenarios](#/), [Sizes](#/sizes), [FormField](#/formfield), [SegmentedControl](#/segmentedcontrol), [Select](#/select), [Popover](#/popover), [Modal](#/modal), [CommandPalette](#/commandpalette), [Accordion](#/accordion) and [Tag](#/tag).
18585
+ Used on [Scenarios](#/), [Sizes](#/sizes), [FormField](#/formfield), [SegmentedControl](#/segmentedcontrol), [Select](#/select), [Toast](#/toast), [Popover](#/popover), [Modal](#/modal), [CommandPalette](#/commandpalette), [Accordion](#/accordion) and [Tag](#/tag).
18163
18586
 
18164
18587
  ##### `Skeleton`
18165
18588
 
@@ -18237,7 +18660,7 @@ The row of `Tab`s inside `Tabs`. The arrow keys, Home and End move
18237
18660
  between the tabs and choose them.
18238
18661
 
18239
18662
  ```ts
18240
- const TabList: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
18663
+ function TabList({ ref, className, children, onKeyDown, ...rest }: HTMLAttributes<HTMLDivElement> & RefProp<HTMLDivElement>): import("react").JSX.Element;
18241
18664
  ```
18242
18665
 
18243
18666
  Used on [Scenarios](#/) and [Tabs](#/tabs).
@@ -18273,7 +18696,7 @@ Used on [Scenarios](#/), [EmptyState](#/emptystate) and [Tag](#/tag).
18273
18696
  [Typography](#/typography) – Body text from the token set; `as` chooses the element, independent of the
18274
18697
  size.
18275
18698
 
18276
- Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [Typography](#/typography), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Switch](#/switch), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Spinner](#/spinner), [ProgressBar](#/progressbar), [Skeleton](#/skeleton), [Toast](#/toast), [EmptyState](#/emptystate), [Tooltip](#/tooltip), [Popover](#/popover), [Menu](#/menu), [ContextMenu](#/contextmenu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [Accordion](#/accordion), [Stepper](#/stepper), [TreeView](#/treeview), [Badge](#/badge), [Tag](#/tag), [Stat](#/stat), [Meter](#/meter) and [Sparkline](#/sparkline).
18699
+ Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [Typography](#/typography), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Switch](#/switch), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Spinner](#/spinner), [ProgressBar](#/progressbar), [Skeleton](#/skeleton), [Toast](#/toast), [EmptyState](#/emptystate), [Tooltip](#/tooltip), [Popover](#/popover), [Menu](#/menu), [ContextMenu](#/contextmenu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [Accordion](#/accordion), [Stepper](#/stepper), [TreeView](#/treeview), [Benchmark](#/benchmark), [Badge](#/badge), [Tag](#/tag), [Stat](#/stat), [Meter](#/meter) and [Sparkline](#/sparkline).
18277
18700
 
18278
18701
  ##### `Textarea`
18279
18702
 
@@ -18299,7 +18722,7 @@ Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider) and [Toast](#/toast)
18299
18722
 
18300
18723
  [Tooltip](#/tooltip) – A sentence of explanation that appears while the pointer rests on an element or the keyboard focus is on it (also called a hint). Reach for it to explain an abbreviation or a control; an icon button names itself as an [IconButton](#/iconbutton).
18301
18724
 
18302
- Used on [Scenarios](#/), [IconButton](#/iconbutton), [Tooltip](#/tooltip), [Popover](#/popover) and [CommandPalette](#/commandpalette).
18725
+ Used on [Scenarios](#/), [IconButton](#/iconbutton), [Toast](#/toast), [Tooltip](#/tooltip), [Popover](#/popover) and [CommandPalette](#/commandpalette).
18303
18726
 
18304
18727
  ##### `TreeSearch`
18305
18728
 
@@ -18312,7 +18735,7 @@ Used on [TreeView](#/treeview).
18312
18735
 
18313
18736
  [TreeView](#/treeview) – A hierarchy the user expands, walks with the keys and optionally ticks (also called a tree or outline). Reach for it for folders, teams and cost-centre structures; large trees stay quick because only the visible rows are drawn.
18314
18737
 
18315
- Used on [Scenarios](#/) and [TreeView](#/treeview).
18738
+ Used on [Scenarios](#/), [TreeView](#/treeview) and [Benchmark](#/benchmark).
18316
18739
 
18317
18740
  ##### `UmrissProvider`
18318
18741
 
@@ -18450,7 +18873,7 @@ restored from a link.
18450
18873
  function useTree<K, S extends Key = string>(roots: readonly K[], options: TreeOptions<K, S>): Tree<K, S>;
18451
18874
  ```
18452
18875
 
18453
- Used on [Scenarios](#/) and [TreeView](#/treeview).
18876
+ Used on [Scenarios](#/), [TreeView](#/treeview) and [Benchmark](#/benchmark).
18454
18877
 
18455
18878
  ##### `useUmriss`
18456
18879
 
@@ -18473,6 +18896,8 @@ adds up over many rows to a scrollbar that lies.
18473
18896
  function useVirtual(count: number, options: VirtualOptions): VirtualRows;
18474
18897
  ```
18475
18898
 
18899
+ Used on [Benchmark](#/benchmark).
18900
+
18476
18901
  ##### `useWording`
18477
18902
 
18478
18903
  Only the wording.
@@ -18955,7 +19380,7 @@ among its siblings.
18955
19380
 
18956
19381
  | Prop | Type | Default | Description |
18957
19382
  |---|---|---|---|
18958
- | `node` *required* | `K` | — | <br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 4 more |
19383
+ | `node` *required* | `K` | — | <br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 5 more |
18959
19384
  | `key` *required* | `S` | — | |
18960
19385
  | `level` *required* | `number` | — | Roots stand at 0. Drives the indentation and what is read out. |
18961
19386
  | `label` *required* | `string` | — | The node's text; here, so that typeahead can be a pure function over the flattening and needs no reader. |
@@ -19039,6 +19464,7 @@ The props of a glyph: an SVG's attributes and its edge length.
19039
19464
  | Prop | Type | Default | Description |
19040
19465
  |---|---|---|---|
19041
19466
  | `size` | `number` | `12` | Edge length in pixels. The default is the size the glyph is drawn at in the components. |
19467
+ | `ref` | `Ref<SVGSVGElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
19042
19468
 
19043
19469
  Also takes every attribute of `<svg>` – without `children`, `viewBox`.
19044
19470
 
@@ -19084,6 +19510,8 @@ A complete language: the formats for numbers and dates, and the wording.
19084
19510
  | `formats` *required* | [`Formats`](#type-Formats) | — | |
19085
19511
  | `wording` *required* | [`Wording`](#type-Wording) | — | |
19086
19512
 
19513
+ Used on [Toast](#/toast).
19514
+
19087
19515
  ##### `LanguageOptions`
19088
19516
 
19089
19517
  Its table stands on [Language](#/language/type-LanguageOptions).
@@ -19190,14 +19618,14 @@ thereby stays entirely the caller's.
19190
19618
 
19191
19619
  | Prop | Type | Default | Description |
19192
19620
  |---|---|---|---|
19193
- | `key` *required* | `(node: K) => S` | — | <br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 4 more |
19194
- | `children` *required* | `(node: K) => readonly K[] \| undefined` | — | `undefined` means leaf, an empty list means empty branch - the difference is visible and intended.<br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 4 more |
19195
- | `label` *required* | `(node: K) => string` | — | Text the search checks against.<br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 4 more |
19621
+ | `key` *required* | `(node: K) => S` | — | <br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 5 more |
19622
+ | `children` *required* | `(node: K) => readonly K[] \| undefined` | — | `undefined` means leaf, an empty list means empty branch - the difference is visible and intended.<br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 5 more |
19623
+ | `label` *required* | `(node: K) => string` | — | Text the search checks against.<br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 5 more |
19196
19624
  | `disabled` | `(node: K) => boolean` | — | May this node be checked? Without an answer: everyone may. Disabled is a statement about the checkbox, not about the node - it stays navigable ([ADR-0005](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0005-what-cannot-be-checked.md)).<br>Shown in: [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
19197
19625
  | `unloaded` | `(node: K) => boolean` | — | Can this branch have children that are not present? Without an answer: no.<br>Shown in: [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand), [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
19198
19626
  | `matches` | `(node: K) => boolean` | — | Does this node match? Given, it filters instead of the search text, which is then not read - a table matches by its columns and filters, not by one label. The path rule stays the same. |
19199
19627
 
19200
- Used on [Scenarios](#/) and [TreeView](#/treeview).
19628
+ Used on [Scenarios](#/), [TreeView](#/treeview) and [Benchmark](#/benchmark).
19201
19629
 
19202
19630
  ##### `NumberInputProps`
19203
19631
 
@@ -19244,6 +19672,14 @@ the moment of the click.
19244
19672
  | `label` *required* | `string` | — | <br>Shown in: [Presets (DateRangePicker)](#/daterangepicker/presets) |
19245
19673
  | `range` *required* | `() => `[`DateRange`](#type-DateRange) | — | <br>Shown in: [Presets (DateRangePicker)](#/daterangepicker/presets) |
19246
19674
 
19675
+ ##### `RefProp<E extends Element>`
19676
+
19677
+ The `ref` of a component: the element it renders at its root.
19678
+
19679
+ | Prop | Type | Default | Description |
19680
+ |---|---|---|---|
19681
+ | `ref` | `Ref<E>` | — | Receives the component's root element.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
19682
+
19247
19683
  ##### `RowPlacement`
19248
19684
 
19249
19685
  What `scrollForRow` needs to know about a scroll area.
@@ -19525,16 +19961,16 @@ either uncontrolled (`default…`) or controlled with its `on…` handler.
19525
19961
 
19526
19962
  | Prop | Type | Default | Description |
19527
19963
  |---|---|---|---|
19528
- | `reader` *required* | [`NodeReader`](#type-NodeReader)`<K, S>` | — | <br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 4 more |
19529
- | `defaultExpanded` | `Iterable<S>` | — | Initial values, where the tree holds its own state.<br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [With an error (TreeView)](#/treeview/with-an-error) and 2 more |
19964
+ | `reader` *required* | [`NodeReader`](#type-NodeReader)`<K, S>` | — | <br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 5 more |
19965
+ | `defaultExpanded` | `Iterable<S>` | — | Initial values, where the tree holds its own state.<br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [With an error (TreeView)](#/treeview/with-an-error) and 3 more |
19530
19966
  | `expanded` | `ReadonlySet<S>` | — | Controlled from outside; where set, it wins over the tree's own state. |
19531
19967
  | `defaultChecked` | `Iterable<S>` | — | |
19532
19968
  | `checked` | `ReadonlySet<S>` | — | <br>Shown in: [Tick a selection (TreeView)](#/treeview/tick-a-selection), [With an error (TreeView)](#/treeview/with-an-error), [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
19533
- | `defaultActive` | `S \| null` | — | <br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
19969
+ | `defaultActive` | `S \| null` | — | <br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal), [Measure a large tree (Benchmark)](#/benchmark/benchmark) |
19534
19970
  | `active` | `S \| null` | — | <br>Shown in: [Dispatch a tour (Scenarios)](#/scenarios/dispatch-a-tour) |
19535
19971
  | `anchor` | `S \| null` | — | Where a range gesture spans from. Steerable from outside like the other four values, so that a range is repeatable. |
19536
19972
  | `search` | `string` | — | <br>Shown in: [Search with the path (TreeView)](#/treeview/search-with-the-path), [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
19537
- | `virtual` | [`VirtualOptions`](#type-VirtualOptions) | — | Render only what stands in the scroll area. Optional: without it every row is rendered and no row height is needed.<br>Shown in: [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
19973
+ | `virtual` | [`VirtualOptions`](#type-VirtualOptions) | — | Render only what stands in the scroll area. Optional: without it every row is rendered and no row height is needed.<br>Shown in: [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal), [Measure a large tree (Benchmark)](#/benchmark/benchmark) |
19538
19974
 
19539
19975
  ###### Events
19540
19976
 
@@ -19605,7 +20041,7 @@ The options of `useVirtual`.
19605
20041
 
19606
20042
  | Prop | Type | Default | Description |
19607
20043
  |---|---|---|---|
19608
- | `rowHeight` *required* | `number` | — | Expected row height in pixels. It is re-measured on a real row after the first render; the value given is the starting point, so that the first window is not empty.<br>Shown in: [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
20044
+ | `rowHeight` *required* | `number` | — | Expected row height in pixels. It is re-measured on a real row after the first render; the value given is the starting point, so that the first window is not empty.<br>Shown in: [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal), [Measure a large tree (Benchmark)](#/benchmark/benchmark) |
19609
20045
  | `overscan` | `number` | `4` | Rows above and below the visible area. |
19610
20046
 
19611
20047
  ##### `VirtualRows`
@@ -19957,7 +20393,7 @@ Used on [UmrissProvider](#/umrissprovider) and [Language](#/language).
19957
20393
 
19958
20394
  | Prop | Type | Default | Description |
19959
20395
  |---|---|---|---|
19960
- | `toast` *required* | `(options: `[`ToastOptions`](#/toast/type-ToastOptions)`) => number` | — | Shows a toast and returns its id.<br>Shown in: [At the root (UmrissProvider)](#/umrissprovider/at-the-root), [Set up an application (UmrissProvider)](#/umrissprovider/everything-at-once), [Show a toast (Toast)](#/toast/show-a-toast) and 11 more |
20396
+ | `toast` *required* | `(options: `[`ToastOptions`](#/toast/type-ToastOptions)`) => number` | — | Shows a toast and returns its id.<br>Shown in: [At the root (UmrissProvider)](#/umrissprovider/at-the-root), [Set up an application (UmrissProvider)](#/umrissprovider/everything-at-once), [Show a toast (Toast)](#/toast/show-a-toast) and 12 more |
19961
20397
  | `update` *required* | `(id: number, options: Partial<`[`ToastOptions`](#/toast/type-ToastOptions)`>) => void` | — | Changes a standing toast. A new tone or a new `duration` starts its time afresh - so a `loading` toast turned into `success` begins to count then. An id that no longer stands is ignored: a toast that gave way to newer ones - a `loading` one too - has said so through `onClose`.<br>Shown in: [Save, and say how it went (Toast)](#/toast/save-with-loading) |
19962
20398
  | `dismiss` *required* | `(id: number) => void` | — | Closes a toast, with the reason `dismiss`. |
19963
20399