@umriss-ui/core 0.40.4 → 0.41.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/CHANGELOG.md +21 -0
- package/README.md +14 -3
- package/dist/core.css +1 -1
- package/dist/core.js +2920 -2886
- package/dist/de.d.ts +3 -2
- package/dist/formats-BdlPZDzb.js +63 -0
- package/dist/index.d.ts +14 -11
- package/dist/styles.d.ts +1 -0
- package/dist/wording/de.js +1 -1
- package/docs/llms-full.md +97 -95
- package/package.json +15 -2
- package/dist/formats-D0YRBdnl.js +0 -62
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.41.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
|
|
|
@@ -4210,7 +4210,7 @@ Every entry of `Formats`: `DEFAULT_FORMATS` beside `GERMAN_FORMATS`. Each set as
|
|
|
4210
4210
|
| `time(d, withSeconds)` | 09:05 | 09:05 | Time of day, optionally with seconds: 09:05 or 09:05:03 |
|
|
4211
4211
|
| `dateTime(d, withSeconds)` | 17/03/2026, 09:05 | 17.03.2026, 09:05 | Date and time together: 17/03/2026, 09:05 |
|
|
4212
4212
|
| `offset(d)` | GMT+1 | GMT+1 | Short form of the UTC offset: GMT+2 |
|
|
4213
|
-
| `number(n, decimals)` | 1,204.5 | 1.204,5 | A number in the set's notation. Without a digit count the value stands to the tenth decimal place; with one it is padded and rounded to exactly that many places. |
|
|
4213
|
+
| `number(n, decimals)` | 1,204.5 | 1.204,5 | A number in the set's notation. Without a digit count the value stands to the tenth decimal place, and a non-zero value that would read 0 there is written in scientific notation; with one it is padded and rounded to exactly that many places. |
|
|
4214
4214
|
| `count(n)` | 1,204 | 1.204 | A count. Kept apart from `number` because it makes a different promise: a count is whole, and Intl's own rounding (at most three decimal places) is right for it and wrong for a measurement. |
|
|
4215
4215
|
| `percent(share)` | 74% | 74 % | A share from 0 to 1 as whole per cent: 74 % |
|
|
4216
4216
|
| `compareText(a, b)` | Apple, Émile, Zebra | Apple, Émile, Zebra | The ordering of two texts by the set's collation. |
|
|
@@ -4248,7 +4248,7 @@ Everything the library knows about formatting.
|
|
|
4248
4248
|
| `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03 |
|
|
4249
4249
|
| `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05<br>Shown in: [Use the language in your own components](#/language/own-components), [Pick a day (DatePicker)](#/datepicker/pick-a-day), [Set an instant (DateTimePicker)](#/datetimepicker/set-an-instant) and 1 more |
|
|
4250
4250
|
| `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#/datetimepicker/set-an-instant) |
|
|
4251
|
-
| `number` *required* | `(n: number, decimals?: number) => string` | — | A number in the set's notation. Without a digit count the value stands to the tenth decimal place; with one it is padded and rounded to exactly that many places.<br>Shown in: [Write numbers in your own notation](#/language/own-notation), [Price an invoice line (NumberInput)](#/numberinput/price-an-invoice-line), [Split a budget (Slider)](#/slider/split-a-budget) |
|
|
4251
|
+
| `number` *required* | `(n: number, decimals?: number) => string` | — | A number in the set's notation. Without a digit count the value stands to the tenth decimal place, and a non-zero value that would read 0 there is written in scientific notation; with one it is padded and rounded to exactly that many places.<br>Shown in: [Write numbers in your own notation](#/language/own-notation), [Price an invoice line (NumberInput)](#/numberinput/price-an-invoice-line), [Split a budget (Slider)](#/slider/split-a-budget) |
|
|
4252
4252
|
| `count` *required* | `(n: number) => string` | — | A count. Kept apart from `number` because it makes a different promise: a count is whole, and Intl's own rounding (at most three decimal places) is right for it and wrong for a measurement.<br>Shown in: [Write numbers in your own notation](#/language/own-notation), [Use the language in your own components](#/language/own-components) |
|
|
4253
4253
|
| `percent` *required* | `(share: number) => string` | — | A share from 0 to 1 as whole per cent: 74 % |
|
|
4254
4254
|
| `compareText` *required* | `(a: string, b: string) => number` | — | The ordering of two texts by the set's collation. |
|
|
@@ -4877,7 +4877,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
|
|
|
4877
4877
|
| `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 78 more |
|
|
4878
4878
|
| `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 |
|
|
4879
4879
|
| `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 |
|
|
4880
|
-
| `ref` | `Ref<HTMLDivElement
|
|
4880
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
4881
4881
|
|
|
4882
4882
|
Also takes every attribute of `<div>`.
|
|
4883
4883
|
|
|
@@ -4888,7 +4888,7 @@ Also takes every attribute of `<div>`.
|
|
|
4888
4888
|
| `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 |
|
|
4889
4889
|
| `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 |
|
|
4890
4890
|
| `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 |
|
|
4891
|
-
| `ref` | `Ref<HTMLDivElement
|
|
4891
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
4892
4892
|
|
|
4893
4893
|
Also takes every attribute of `<div>`.
|
|
4894
4894
|
|
|
@@ -5021,7 +5021,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
|
|
|
5021
5021
|
| `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) |
|
|
5022
5022
|
| `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) |
|
|
5023
5023
|
| `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) |
|
|
5024
|
-
| `ref` | `Ref<HTMLDivElement
|
|
5024
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
5025
5025
|
|
|
5026
5026
|
Also takes every attribute of `<div>`.
|
|
5027
5027
|
|
|
@@ -5293,7 +5293,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
|
|
|
5293
5293
|
| `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) |
|
|
5294
5294
|
| `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) |
|
|
5295
5295
|
| `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) |
|
|
5296
|
-
| `ref` | `Ref<HTMLElement
|
|
5296
|
+
| `ref` | `Ref<HTMLElement> \| undefined` | — | 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 |
|
|
5297
5297
|
|
|
5298
5298
|
Also takes every attribute of the rendered element.
|
|
5299
5299
|
|
|
@@ -5305,7 +5305,7 @@ Also takes every attribute of the rendered element.
|
|
|
5305
5305
|
| `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 |
|
|
5306
5306
|
| `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 |
|
|
5307
5307
|
| `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) |
|
|
5308
|
-
| `ref` | `Ref<HTMLDivElement
|
|
5308
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
5309
5309
|
|
|
5310
5310
|
Also takes every attribute of `<div>` – without `title`.
|
|
5311
5311
|
|
|
@@ -5314,7 +5314,7 @@ Also takes every attribute of `<div>` – without `title`.
|
|
|
5314
5314
|
| Prop | Type | Default | Description |
|
|
5315
5315
|
|---|---|---|---|
|
|
5316
5316
|
| `flush` | `boolean` | `false` | Removes the inner padding, e.g. for flush tables.<br>Shown in: [A flush body](#/card/a-flush-body) |
|
|
5317
|
-
| `ref` | `Ref<HTMLDivElement
|
|
5317
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
5318
5318
|
|
|
5319
5319
|
Also takes every attribute of `<div>`.
|
|
5320
5320
|
|
|
@@ -5733,7 +5733,7 @@ export default function ThreePanes() {
|
|
|
5733
5733
|
| `step` | `number` | `5` | How far an arrow key moves the separator, in per cent.<br>Shown in: [Keep the share](#/splitter/keep-the-share) |
|
|
5734
5734
|
| `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) |
|
|
5735
5735
|
| `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 |
|
|
5736
|
-
| `ref` | `Ref<HTMLDivElement
|
|
5736
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
5737
5737
|
|
|
5738
5738
|
###### Events
|
|
5739
5739
|
|
|
@@ -6114,7 +6114,7 @@ export default function IncidentSummary() {
|
|
|
6114
6114
|
| `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 |
|
|
6115
6115
|
| `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) |
|
|
6116
6116
|
| `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) |
|
|
6117
|
-
| `ref` | `Ref<HTMLElement
|
|
6117
|
+
| `ref` | `Ref<HTMLElement> \| undefined` | — | 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 |
|
|
6118
6118
|
|
|
6119
6119
|
Also takes every attribute of the rendered element.
|
|
6120
6120
|
|
|
@@ -6126,7 +6126,7 @@ Also takes every attribute of the rendered element.
|
|
|
6126
6126
|
| `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 |
|
|
6127
6127
|
| `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) |
|
|
6128
6128
|
| `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) |
|
|
6129
|
-
| `ref` | `Ref<HTMLHeadingElement
|
|
6129
|
+
| `ref` | `Ref<HTMLHeadingElement> \| undefined` | — | 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 |
|
|
6130
6130
|
|
|
6131
6131
|
Also takes every attribute of the heading.
|
|
6132
6132
|
|
|
@@ -6136,7 +6136,7 @@ Also takes every attribute of the heading.
|
|
|
6136
6136
|
|---|---|---|---|
|
|
6137
6137
|
| `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) |
|
|
6138
6138
|
| `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) |
|
|
6139
|
-
| `ref` | `Ref<HTMLAnchorElement
|
|
6139
|
+
| `ref` | `Ref<HTMLAnchorElement> \| undefined` | — | 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 |
|
|
6140
6140
|
|
|
6141
6141
|
Also takes every attribute of `<a>`.
|
|
6142
6142
|
|
|
@@ -6307,7 +6307,7 @@ export default function ActionsInRows() {
|
|
|
6307
6307
|
|---|---|---|---|
|
|
6308
6308
|
| `as` | `E` | `"span"` | Element to render as.<br>Shown in: [Add a skip link](#/visuallyhidden/skip-link) |
|
|
6309
6309
|
| `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) |
|
|
6310
|
-
| `ref` | `Ref<HTMLElement
|
|
6310
|
+
| `ref` | `Ref<HTMLElement> \| undefined` | — | 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 |
|
|
6311
6311
|
|
|
6312
6312
|
Also takes every attribute of the chosen element – without `as`, `ref`.
|
|
6313
6313
|
|
|
@@ -6606,7 +6606,7 @@ Under forced colours every variant keeps an outline where its edge would lie, an
|
|
|
6606
6606
|
| `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 |
|
|
6607
6607
|
| `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 |
|
|
6608
6608
|
| `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 |
|
|
6609
|
-
| `ref` | `Ref<HTMLButtonElement
|
|
6609
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | 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 |
|
|
6610
6610
|
|
|
6611
6611
|
Also takes every attribute of `<button>`.
|
|
6612
6612
|
|
|
@@ -6959,7 +6959,7 @@ export default function Toolbar() {
|
|
|
6959
6959
|
| `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 |
|
|
6960
6960
|
| `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 |
|
|
6961
6961
|
| `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 |
|
|
6962
|
-
| `ref` | `Ref<HTMLButtonElement
|
|
6962
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | 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 |
|
|
6963
6963
|
|
|
6964
6964
|
###### Accessibility
|
|
6965
6965
|
|
|
@@ -7301,7 +7301,7 @@ export default function InvoiceToolbar() {
|
|
|
7301
7301
|
| Prop | Type | Default | Description |
|
|
7302
7302
|
|---|---|---|---|
|
|
7303
7303
|
| `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) |
|
|
7304
|
-
| `ref` | `Ref<HTMLDivElement
|
|
7304
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
7305
7305
|
|
|
7306
7306
|
###### Accessibility
|
|
7307
7307
|
|
|
@@ -7322,7 +7322,7 @@ Also takes every attribute of `<div>`.
|
|
|
7322
7322
|
| `menuLabel` | `string` | the wording's "More actions" | Label of the trigger. |
|
|
7323
7323
|
| `align` | `"start" \| "end"` | `"end"` | Alignment of the menu relative to the trigger.<br>Shown in: [Offer variants of the main action](#/buttongroup/split-button) |
|
|
7324
7324
|
| `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 |
|
|
7325
|
-
| `ref` | `Ref<HTMLButtonElement
|
|
7325
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | 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 |
|
|
7326
7326
|
|
|
7327
7327
|
###### Events
|
|
7328
7328
|
|
|
@@ -7638,7 +7638,7 @@ export default function TakeADeliveryAddress() {
|
|
|
7638
7638
|
| `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) |
|
|
7639
7639
|
| `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 |
|
|
7640
7640
|
| `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) |
|
|
7641
|
-
| `ref` | `Ref<HTMLInputElement
|
|
7641
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | 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 |
|
|
7642
7642
|
|
|
7643
7643
|
###### Events
|
|
7644
7644
|
|
|
@@ -7837,7 +7837,7 @@ The keys of [Input](#/input/keyboard-input), [NumberInput](#/numberinput/keyboar
|
|
|
7837
7837
|
| `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 |
|
|
7838
7838
|
| `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 |
|
|
7839
7839
|
| `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) |
|
|
7840
|
-
| `ref` | `Ref<HTMLDivElement
|
|
7840
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
7841
7841
|
|
|
7842
7842
|
Also takes every attribute of `<div>`.
|
|
7843
7843
|
|
|
@@ -8028,7 +8028,7 @@ With `showCount` the characters left stand in a polite live region: a screen rea
|
|
|
8028
8028
|
| `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) |
|
|
8029
8029
|
| `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) |
|
|
8030
8030
|
| `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) |
|
|
8031
|
-
| `ref` | `Ref<HTMLTextAreaElement
|
|
8031
|
+
| `ref` | `Ref<HTMLTextAreaElement> \| undefined` | — | 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 |
|
|
8032
8032
|
|
|
8033
8033
|
Also takes every attribute of `<textarea>` – without `cols`.
|
|
8034
8034
|
|
|
@@ -8265,7 +8265,7 @@ export default function PriceAnInvoiceLine() {
|
|
|
8265
8265
|
| `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) |
|
|
8266
8266
|
| `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) |
|
|
8267
8267
|
| `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) |
|
|
8268
|
-
| `ref` | `Ref<HTMLInputElement
|
|
8268
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | 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 |
|
|
8269
8269
|
|
|
8270
8270
|
###### Events
|
|
8271
8271
|
|
|
@@ -8450,7 +8450,7 @@ export default function SplitABudget() {
|
|
|
8450
8450
|
| `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 |
|
|
8451
8451
|
| `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 |
|
|
8452
8452
|
| `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 |
|
|
8453
|
-
| `ref` | `Ref<HTMLInputElement
|
|
8453
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | 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 |
|
|
8454
8454
|
|
|
8455
8455
|
###### Events
|
|
8456
8456
|
|
|
@@ -8593,7 +8593,7 @@ export default function SelectAllWithAMixedState() {
|
|
|
8593
8593
|
|---|---|---|---|
|
|
8594
8594
|
| `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 |
|
|
8595
8595
|
| `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) |
|
|
8596
|
-
| `ref` | `Ref<HTMLInputElement
|
|
8596
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | 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 |
|
|
8597
8597
|
|
|
8598
8598
|
Also takes every attribute of `<input>` – without `size`, `type`.
|
|
8599
8599
|
|
|
@@ -8799,7 +8799,7 @@ export default function SettingsOfAService() {
|
|
|
8799
8799
|
| `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 13 more |
|
|
8800
8800
|
| `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) |
|
|
8801
8801
|
| `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) |
|
|
8802
|
-
| `ref` | `Ref<HTMLInputElement
|
|
8802
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | 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 |
|
|
8803
8803
|
|
|
8804
8804
|
Also takes every attribute of `<input>` – without `role`, `size`, `type`.
|
|
8805
8805
|
|
|
@@ -8964,7 +8964,7 @@ export default function States() {
|
|
|
8964
8964
|
| `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) |
|
|
8965
8965
|
| `disabled` | `boolean` | `false` | Disables the whole group. `RadioOption` disables single possibilities.<br>Shown in: [Configurator](#/radiogroup/configurator-radiogroup), [States](#/radiogroup/states) |
|
|
8966
8966
|
| `name` | `string` | a generated one | Name of the radio group within the form. |
|
|
8967
|
-
| `ref` | `Ref<HTMLDivElement
|
|
8967
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
8968
8968
|
|
|
8969
8969
|
###### Events
|
|
8970
8970
|
|
|
@@ -9251,7 +9251,7 @@ export default function DrawnAsAField() {
|
|
|
9251
9251
|
| `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) |
|
|
9252
9252
|
| `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) |
|
|
9253
9253
|
| `name` | `string` | a generated one | Name of the radio group within the form. |
|
|
9254
|
-
| `ref` | `Ref<HTMLDivElement
|
|
9254
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
9255
9255
|
|
|
9256
9256
|
###### Events
|
|
9257
9257
|
|
|
@@ -9512,7 +9512,7 @@ export default function ImportBudgets() {
|
|
|
9512
9512
|
|---|---|---|---|
|
|
9513
9513
|
| `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 |
|
|
9514
9514
|
| `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) |
|
|
9515
|
-
| `ref` | `Ref<HTMLInputElement
|
|
9515
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | 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 |
|
|
9516
9516
|
|
|
9517
9517
|
###### Events
|
|
9518
9518
|
|
|
@@ -9710,7 +9710,7 @@ export default function ClearTheChoice() {
|
|
|
9710
9710
|
| `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) |
|
|
9711
9711
|
| `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) |
|
|
9712
9712
|
| `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) |
|
|
9713
|
-
| `ref` | `Ref<HTMLSelectElement
|
|
9713
|
+
| `ref` | `Ref<HTMLSelectElement> \| undefined` | — | 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 |
|
|
9714
9714
|
|
|
9715
9715
|
###### Events
|
|
9716
9716
|
|
|
@@ -9969,7 +9969,7 @@ export default function AssignAnIncident() {
|
|
|
9969
9969
|
| `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) |
|
|
9970
9970
|
| `emptyText` | `string` | — | Text shown for an empty search result.<br>Shown in: [States](#/combobox/states) |
|
|
9971
9971
|
| `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 |
|
|
9972
|
-
| `ref` | `Ref<HTMLDivElement
|
|
9972
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
9973
9973
|
|
|
9974
9974
|
###### Events
|
|
9975
9975
|
|
|
@@ -10250,7 +10250,7 @@ export default function FilterIncidentsByService() {
|
|
|
10250
10250
|
| `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) |
|
|
10251
10251
|
| `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) |
|
|
10252
10252
|
| `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) |
|
|
10253
|
-
| `ref` | `Ref<HTMLDivElement
|
|
10253
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
10254
10254
|
|
|
10255
10255
|
###### Events
|
|
10256
10256
|
|
|
@@ -10436,7 +10436,7 @@ export default function CheckADueDate() {
|
|
|
10436
10436
|
| `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) |
|
|
10437
10437
|
| `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) |
|
|
10438
10438
|
| `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 |
|
|
10439
|
-
| `ref` | `Ref<HTMLSpanElement
|
|
10439
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | 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 |
|
|
10440
10440
|
|
|
10441
10441
|
###### Events
|
|
10442
10442
|
|
|
@@ -10608,7 +10608,7 @@ export default function WithAnError() {
|
|
|
10608
10608
|
| `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) |
|
|
10609
10609
|
| `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) |
|
|
10610
10610
|
| `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) |
|
|
10611
|
-
| `ref` | `Ref<HTMLSpanElement
|
|
10611
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | 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 |
|
|
10612
10612
|
|
|
10613
10613
|
###### Events
|
|
10614
10614
|
|
|
@@ -10805,7 +10805,7 @@ export default function WithAnError() {
|
|
|
10805
10805
|
| `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) |
|
|
10806
10806
|
| `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 |
|
|
10807
10807
|
| `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) |
|
|
10808
|
-
| `ref` | `Ref<HTMLSpanElement
|
|
10808
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | 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 |
|
|
10809
10809
|
|
|
10810
10810
|
###### Events
|
|
10811
10811
|
|
|
@@ -11020,7 +11020,7 @@ export default function WithAnError() {
|
|
|
11020
11020
|
| `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) |
|
|
11021
11021
|
| `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) |
|
|
11022
11022
|
| `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) |
|
|
11023
|
-
| `ref` | `Ref<HTMLSpanElement
|
|
11023
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | 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 |
|
|
11024
11024
|
|
|
11025
11025
|
###### Events
|
|
11026
11026
|
|
|
@@ -11202,7 +11202,7 @@ With reduced motion it turns at less than half its speed instead of stopping, so
|
|
|
11202
11202
|
| Prop | Type | Default | Description |
|
|
11203
11203
|
|---|---|---|---|
|
|
11204
11204
|
| `size` | `number` | `14` | Edge length in pixels.<br>Shown in: [Sizes](#/spinner/sizes), [Colour](#/spinner/colour) |
|
|
11205
|
-
| `ref` | `Ref<SVGSVGElement
|
|
11205
|
+
| `ref` | `Ref<SVGSVGElement> \| undefined` | — | 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 |
|
|
11206
11206
|
|
|
11207
11207
|
Also takes every attribute of `<svg>`.
|
|
11208
11208
|
|
|
@@ -11387,7 +11387,7 @@ Under forced colours the track takes an edge and the fill the system's selection
|
|
|
11387
11387
|
| `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 |
|
|
11388
11388
|
| `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) |
|
|
11389
11389
|
| `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 |
|
|
11390
|
-
| `ref` | `Ref<HTMLDivElement
|
|
11390
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
11391
11391
|
|
|
11392
11392
|
Also takes every attribute of `<div>`.
|
|
11393
11393
|
|
|
@@ -11546,7 +11546,7 @@ With reduced motion the shimmer stops, and the shape stands in a still, faint gr
|
|
|
11546
11546
|
| `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 |
|
|
11547
11547
|
| `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) |
|
|
11548
11548
|
| `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) |
|
|
11549
|
-
| `ref` | `Ref<HTMLSpanElement
|
|
11549
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | 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 |
|
|
11550
11550
|
|
|
11551
11551
|
Also takes every attribute of `<span>`.
|
|
11552
11552
|
|
|
@@ -11748,7 +11748,7 @@ The title is a paragraph, not a heading, so an alert does not enter the page's o
|
|
|
11748
11748
|
| `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 |
|
|
11749
11749
|
| `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) |
|
|
11750
11750
|
| `dismissLabel` | `string` | the wording's "Close message" | Label of the dismiss cross. |
|
|
11751
|
-
| `ref` | `Ref<HTMLDivElement
|
|
11751
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
11752
11752
|
|
|
11753
11753
|
###### Events
|
|
11754
11754
|
|
|
@@ -12471,7 +12471,7 @@ The keys of [Button](#/button/keyboard-button) and [Tag](#/tag/keyboard-tag) app
|
|
|
12471
12471
|
| `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 |
|
|
12472
12472
|
| `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 |
|
|
12473
12473
|
| `icon` | `ReactNode` | — | Optional symbol above the title.<br>Shown in: [Mark good news in a panel](#/emptystate/in-a-panel) |
|
|
12474
|
-
| `ref` | `Ref<HTMLDivElement
|
|
12474
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
12475
12475
|
|
|
12476
12476
|
Also takes every attribute of `<div>` – without `title`.
|
|
12477
12477
|
|
|
@@ -13092,7 +13092,7 @@ export default function PerRow() {
|
|
|
13092
13092
|
| Prop | Type | Default | Description |
|
|
13093
13093
|
|---|---|---|---|
|
|
13094
13094
|
| `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 |
|
|
13095
|
-
| `ref` | `Ref<HTMLButtonElement
|
|
13095
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | 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 |
|
|
13096
13096
|
|
|
13097
13097
|
###### Events
|
|
13098
13098
|
|
|
@@ -13612,7 +13612,7 @@ export default function MustBeAnswered() {
|
|
|
13612
13612
|
| `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 |
|
|
13613
13613
|
| `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 |
|
|
13614
13614
|
| `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop.<br>Shown in: [A window that must be answered](#/modal/must-be-answered) |
|
|
13615
|
-
| `ref` | `Ref<HTMLDialogElement
|
|
13615
|
+
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | 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 |
|
|
13616
13616
|
|
|
13617
13617
|
###### Events
|
|
13618
13618
|
|
|
@@ -13629,7 +13629,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
13629
13629
|
| `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 |
|
|
13630
13630
|
| `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 |
|
|
13631
13631
|
| `hideClose` | `boolean` | `false` | Hides the close button.<br>Shown in: [A window that must be answered](#/modal/must-be-answered) |
|
|
13632
|
-
| `ref` | `Ref<HTMLDivElement
|
|
13632
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
13633
13633
|
|
|
13634
13634
|
Also takes every attribute of `<div>` – without `title`.
|
|
13635
13635
|
|
|
@@ -13949,7 +13949,7 @@ export default function BesideAServiceList() {
|
|
|
13949
13949
|
| `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) |
|
|
13950
13950
|
| `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 |
|
|
13951
13951
|
| `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) |
|
|
13952
|
-
| `ref` | `Ref<HTMLDialogElement
|
|
13952
|
+
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | 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 |
|
|
13953
13953
|
|
|
13954
13954
|
###### Events
|
|
13955
13955
|
|
|
@@ -14128,7 +14128,7 @@ export default function WhileItRuns() {
|
|
|
14128
14128
|
| `cancelLabel` | `string` | the wording's "Cancel" | Label of the cancelling button.<br>Shown in: [Guard unsaved changes (Modal)](#/modal/unsaved-changes) |
|
|
14129
14129
|
| `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 |
|
|
14130
14130
|
| `loading` | `boolean` | `false` | Locks the actions while the confirmation is running.<br>Shown in: [Stay open while it runs](#/confirmdialog/while-it-runs) |
|
|
14131
|
-
| `ref` | `Ref<HTMLDialogElement
|
|
14131
|
+
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | 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 |
|
|
14132
14132
|
|
|
14133
14133
|
###### Events
|
|
14134
14134
|
|
|
@@ -14417,7 +14417,7 @@ export default function SearchHundredsOfPages() {
|
|
|
14417
14417
|
| `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 |
|
|
14418
14418
|
| `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) |
|
|
14419
14419
|
| `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) |
|
|
14420
|
-
| `ref` | `Ref<HTMLDialogElement
|
|
14420
|
+
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | 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 |
|
|
14421
14421
|
|
|
14422
14422
|
###### Events
|
|
14423
14423
|
|
|
@@ -14746,7 +14746,7 @@ export default function BrowseDownAndBackUp() {
|
|
|
14746
14746
|
| Prop | Type | Default | Description |
|
|
14747
14747
|
|---|---|---|---|
|
|
14748
14748
|
| `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 |
|
|
14749
|
-
| `ref` | `Ref<HTMLElement
|
|
14749
|
+
| `ref` | `Ref<HTMLElement> \| undefined` | — | 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 |
|
|
14750
14750
|
|
|
14751
14751
|
Also takes every attribute of the rendered element.
|
|
14752
14752
|
|
|
@@ -14761,7 +14761,7 @@ Also takes every attribute of the rendered element.
|
|
|
14761
14761
|
|
|
14762
14762
|
| Prop | Type | Default | Description |
|
|
14763
14763
|
|---|---|---|---|
|
|
14764
|
-
| `onSelect` | `() => void` | — | Routing is the caller's: given, it runs instead of the browser's navigation - on the link and in the menu of folded levels. A level with `onSelect` and no `href` is a button. In the menu a level is a menu entry, not a link: an `href` alone is followed there by `location.assign`, without a new tab or a middle click - whoever needs those routes through `onSelect`.<br>Shown in: [Route it yourself](#/breadcrumb/route-it-yourself), [Browse down and back up](#/breadcrumb/browse-down-and-back-up) |
|
|
14764
|
+
| `onSelect` | `() => void` | — | Routing is the caller's: given, it runs instead of the browser's navigation - on the link and in the menu of folded levels. A level with `onSelect` and no `href` is a button. In the menu a level is a menu entry, not a link: an `href` alone (http, https, mailto or tel) is followed there by `location.assign`, without a new tab or a middle click - whoever needs those routes through `onSelect`.<br>Shown in: [Route it yourself](#/breadcrumb/route-it-yourself), [Browse down and back up](#/breadcrumb/browse-down-and-back-up) |
|
|
14765
14765
|
|
|
14766
14766
|
#### Known limits
|
|
14767
14767
|
|
|
@@ -15076,7 +15076,7 @@ export default function AnInvoiceInTabs() {
|
|
|
15076
15076
|
|---|---|---|---|
|
|
15077
15077
|
| `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 |
|
|
15078
15078
|
| `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) |
|
|
15079
|
-
| `ref` | `Ref<HTMLDivElement
|
|
15079
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
15080
15080
|
|
|
15081
15081
|
###### Events
|
|
15082
15082
|
|
|
@@ -15091,7 +15091,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
15091
15091
|
| Prop | Type | Default | Description |
|
|
15092
15092
|
|---|---|---|---|
|
|
15093
15093
|
| `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 |
|
|
15094
|
-
| `ref` | `Ref<HTMLButtonElement
|
|
15094
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | 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 |
|
|
15095
15095
|
|
|
15096
15096
|
Also takes every attribute of `<button>`.
|
|
15097
15097
|
|
|
@@ -15100,7 +15100,7 @@ Also takes every attribute of `<button>`.
|
|
|
15100
15100
|
| Prop | Type | Default | Description |
|
|
15101
15101
|
|---|---|---|---|
|
|
15102
15102
|
| `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 |
|
|
15103
|
-
| `ref` | `Ref<HTMLDivElement
|
|
15103
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
15104
15104
|
|
|
15105
15105
|
Also takes every attribute of `<div>`.
|
|
15106
15106
|
|
|
@@ -15334,7 +15334,7 @@ export default function LongSettingsInSections() {
|
|
|
15334
15334
|
| `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) |
|
|
15335
15335
|
| `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) |
|
|
15336
15336
|
| `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) |
|
|
15337
|
-
| `ref` | `Ref<HTMLDivElement
|
|
15337
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
15338
15338
|
|
|
15339
15339
|
###### Events
|
|
15340
15340
|
|
|
@@ -15351,7 +15351,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
15351
15351
|
| `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 |
|
|
15352
15352
|
| `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 |
|
|
15353
15353
|
| `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) |
|
|
15354
|
-
| `ref` | `Ref<HTMLDivElement
|
|
15354
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
15355
15355
|
|
|
15356
15356
|
Also takes every attribute of `<div>` – without `title`.
|
|
15357
15357
|
|
|
@@ -15554,7 +15554,7 @@ Under forced colours the lines between the steps take the system's text colour,
|
|
|
15554
15554
|
| `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 |
|
|
15555
15555
|
| `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 |
|
|
15556
15556
|
| `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) |
|
|
15557
|
-
| `ref` | `Ref<HTMLOListElement
|
|
15557
|
+
| `ref` | `Ref<HTMLOListElement> \| undefined` | — | 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 |
|
|
15558
15558
|
|
|
15559
15559
|
Also takes every attribute of the rendered element.
|
|
15560
15560
|
|
|
@@ -16133,7 +16133,7 @@ export default function SearchCheckAndReveal() {
|
|
|
16133
16133
|
| `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 |
|
|
16134
16134
|
| `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) |
|
|
16135
16135
|
| `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 |
|
|
16136
|
-
| `ref` | `Ref<HTMLDivElement
|
|
16136
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
16137
16137
|
|
|
16138
16138
|
###### Accessibility
|
|
16139
16139
|
|
|
@@ -16153,7 +16153,7 @@ Also takes every attribute of `<div>` – without `children`.
|
|
|
16153
16153
|
| `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) |
|
|
16154
16154
|
| `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 |
|
|
16155
16155
|
| `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) |
|
|
16156
|
-
| `ref` | `Ref<HTMLInputElement
|
|
16156
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | 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 |
|
|
16157
16157
|
|
|
16158
16158
|
###### Events
|
|
16159
16159
|
|
|
@@ -16712,7 +16712,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
|
|
|
16712
16712
|
|---|---|---|---|
|
|
16713
16713
|
| `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 |
|
|
16714
16714
|
| `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 |
|
|
16715
|
-
| `ref` | `Ref<HTMLSpanElement
|
|
16715
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | 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 |
|
|
16716
16716
|
|
|
16717
16717
|
Also takes every attribute of `<span>`.
|
|
16718
16718
|
|
|
@@ -16962,7 +16962,7 @@ export default function AFilterBar() {
|
|
|
16962
16962
|
| `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 |
|
|
16963
16963
|
| `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) |
|
|
16964
16964
|
| `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) |
|
|
16965
|
-
| `ref` | `Ref<HTMLSpanElement
|
|
16965
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | 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 |
|
|
16966
16966
|
|
|
16967
16967
|
###### Events
|
|
16968
16968
|
|
|
@@ -16976,7 +16976,7 @@ Also takes every attribute of `<span>` – without `onRemove`.
|
|
|
16976
16976
|
|
|
16977
16977
|
| Prop | Type | Default | Description |
|
|
16978
16978
|
|---|---|---|---|
|
|
16979
|
-
| `ref` | `Ref<HTMLDivElement
|
|
16979
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
16980
16980
|
|
|
16981
16981
|
###### Accessibility
|
|
16982
16982
|
|
|
@@ -17770,7 +17770,7 @@ It announces nothing: a value that changes or a verdict that turns is read when
|
|
|
17770
17770
|
| `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 |
|
|
17771
17771
|
| `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) |
|
|
17772
17772
|
| `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) |
|
|
17773
|
-
| `ref` | `Ref<HTMLDivElement
|
|
17773
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | 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 |
|
|
17774
17774
|
|
|
17775
17775
|
Also takes every attribute of `<div>` – without `children`.
|
|
17776
17776
|
|
|
@@ -17993,7 +17993,7 @@ It is no live region: a new value is read when a reader reaches the bar. Under f
|
|
|
17993
17993
|
| `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 |
|
|
17994
17994
|
| `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 |
|
|
17995
17995
|
| `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 |
|
|
17996
|
-
| `ref` | `Ref<HTMLSpanElement
|
|
17996
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | 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 |
|
|
17997
17997
|
|
|
17998
17998
|
Also takes every attribute of `<span>`.
|
|
17999
17999
|
|
|
@@ -18263,7 +18263,7 @@ export default function InATable() {
|
|
|
18263
18263
|
| `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 |
|
|
18264
18264
|
| `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 |
|
|
18265
18265
|
| `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) |
|
|
18266
|
-
| `ref` | `Ref<HTMLSpanElement
|
|
18266
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | 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 |
|
|
18267
18267
|
|
|
18268
18268
|
Also takes every attribute of `<span>`.
|
|
18269
18269
|
|
|
@@ -19029,7 +19029,7 @@ true, but that it is true right now. It counts as zero old.
|
|
|
19029
19029
|
none.
|
|
19030
19030
|
|
|
19031
19031
|
```ts
|
|
19032
|
-
function age(asOf:
|
|
19032
|
+
function age(asOf: FreshnessInstant, now: FreshnessInstant): number | null;
|
|
19033
19033
|
```
|
|
19034
19034
|
|
|
19035
19035
|
Used on [Scenarios](#/).
|
|
@@ -19126,7 +19126,7 @@ What the value means - good, critical, whatever - is not at issue here and
|
|
|
19126
19126
|
is not touched by this function.
|
|
19127
19127
|
|
|
19128
19128
|
```ts
|
|
19129
|
-
function freshness(asOf:
|
|
19129
|
+
function freshness(asOf: FreshnessInstant, now: FreshnessInstant, ages: FreshnessAges): Freshness;
|
|
19130
19130
|
```
|
|
19131
19131
|
|
|
19132
19132
|
Used on [Scenarios](#/) and [Stat](#/stat).
|
|
@@ -19517,12 +19517,24 @@ Everything the library knows about formatting.
|
|
|
19517
19517
|
| `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03 |
|
|
19518
19518
|
| `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05<br>Shown in: [Use the language in your own components (Language)](#/language/own-components), [Pick a day (DatePicker)](#/datepicker/pick-a-day), [Set an instant (DateTimePicker)](#/datetimepicker/set-an-instant) and 1 more |
|
|
19519
19519
|
| `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#/datetimepicker/set-an-instant) |
|
|
19520
|
-
| `number` *required* | `(n: number, decimals?: number) => string` | — | A number in the set's notation. Without a digit count the value stands to the tenth decimal place; with one it is padded and rounded to exactly that many places.<br>Shown in: [Write numbers in your own notation (Language)](#/language/own-notation), [Price an invoice line (NumberInput)](#/numberinput/price-an-invoice-line), [Split a budget (Slider)](#/slider/split-a-budget) |
|
|
19520
|
+
| `number` *required* | `(n: number, decimals?: number) => string` | — | A number in the set's notation. Without a digit count the value stands to the tenth decimal place, and a non-zero value that would read 0 there is written in scientific notation; with one it is padded and rounded to exactly that many places.<br>Shown in: [Write numbers in your own notation (Language)](#/language/own-notation), [Price an invoice line (NumberInput)](#/numberinput/price-an-invoice-line), [Split a budget (Slider)](#/slider/split-a-budget) |
|
|
19521
19521
|
| `count` *required* | `(n: number) => string` | — | A count. Kept apart from `number` because it makes a different promise: a count is whole, and Intl's own rounding (at most three decimal places) is right for it and wrong for a measurement.<br>Shown in: [Write numbers in your own notation (Language)](#/language/own-notation), [Use the language in your own components (Language)](#/language/own-components) |
|
|
19522
19522
|
| `percent` *required* | `(share: number) => string` | — | A share from 0 to 1 as whole per cent: 74 % |
|
|
19523
19523
|
| `compareText` *required* | `(a: string, b: string) => number` | — | The ordering of two texts by the set's collation. |
|
|
19524
19524
|
| `relative` *required* | `(ms: number) => string` | — | An elapsed duration as a phrase: "3 minutes ago". The amount comes in milliseconds, counted back from now. |
|
|
19525
19525
|
|
|
19526
|
+
##### `FormFieldContextValue`
|
|
19527
|
+
|
|
19528
|
+
What `useFormField` returns: the wiring a field inside a FormField reads.
|
|
19529
|
+
|
|
19530
|
+
| Prop | Type | Default | Description |
|
|
19531
|
+
|---|---|---|---|
|
|
19532
|
+
| `id` *required* | `string` | — | |
|
|
19533
|
+
| `labelId` *required* | `string` | — | The label's own id. `label htmlFor` names only what HTML can label - an input, a select, a button; a group (`role="radiogroup"`) is named through `aria-labelledby` with this. |
|
|
19534
|
+
| `describedBy` | `string` | — | |
|
|
19535
|
+
| `invalid` *required* | `boolean` | — | |
|
|
19536
|
+
| `required` *required* | `boolean` | — | A required field. Every field whose role carries it turns this into `aria-required` - just as it does with `aria-describedby` and `aria-invalid`. |
|
|
19537
|
+
|
|
19526
19538
|
##### `FormFieldProps`
|
|
19527
19539
|
|
|
19528
19540
|
Its table stands on [FormField](#/formfield/type-FormFieldProps).
|
|
@@ -19553,6 +19565,14 @@ harder statement still wins - the middle state simply falls away.
|
|
|
19553
19565
|
|
|
19554
19566
|
Used on [Scenarios](#/) and [Stat](#/stat).
|
|
19555
19567
|
|
|
19568
|
+
##### `FreshnessInstant`
|
|
19569
|
+
|
|
19570
|
+
What may come in as an as-of time or a reference time.
|
|
19571
|
+
|
|
19572
|
+
```ts
|
|
19573
|
+
type FreshnessInstant = Date | number | null | undefined;
|
|
19574
|
+
```
|
|
19575
|
+
|
|
19556
19576
|
##### `FreshnessReading`
|
|
19557
19577
|
|
|
19558
19578
|
What `useFreshness` returns: how fresh the value is, how old, and the time
|
|
@@ -19571,7 +19591,7 @@ The props of a glyph: an SVG's attributes and its edge length.
|
|
|
19571
19591
|
| Prop | Type | Default | Description |
|
|
19572
19592
|
|---|---|---|---|
|
|
19573
19593
|
| `size` | `number` | `12` | Edge length in pixels. The default is the size the glyph is drawn at in the components. |
|
|
19574
|
-
| `ref` | `Ref<SVGSVGElement
|
|
19594
|
+
| `ref` | `Ref<SVGSVGElement> \| undefined` | — | 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 |
|
|
19575
19595
|
|
|
19576
19596
|
Also takes every attribute of `<svg>` – without `children`, `viewBox`.
|
|
19577
19597
|
|
|
@@ -19785,7 +19805,7 @@ The `ref` of a component: the element it renders at its root.
|
|
|
19785
19805
|
|
|
19786
19806
|
| Prop | Type | Default | Description |
|
|
19787
19807
|
|---|---|---|---|
|
|
19788
|
-
| `ref` | `Ref<E
|
|
19808
|
+
| `ref` | `Ref<E> \| undefined` | — | 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 |
|
|
19789
19809
|
|
|
19790
19810
|
##### `RowPlacement`
|
|
19791
19811
|
|
|
@@ -20008,6 +20028,16 @@ Its table stands on [UmrissProvider](#/umrissprovider/type-ToastConfig).
|
|
|
20008
20028
|
|
|
20009
20029
|
Used on [UmrissProvider](#/umrissprovider) and [Toast](#/toast).
|
|
20010
20030
|
|
|
20031
|
+
##### `ToastContextValue`
|
|
20032
|
+
|
|
20033
|
+
What `useToast` returns: the functions that show, change and close toasts.
|
|
20034
|
+
|
|
20035
|
+
| Prop | Type | Default | Description |
|
|
20036
|
+
|---|---|---|---|
|
|
20037
|
+
| `toast` *required* | `(options: `[`ToastOptions`](#/toast/type-ToastOptions)`) => number` | — | Shows a toast and returns its id.<br>Shown in: [Show a toast (Toast)](#/toast/show-a-toast), [Tones (Toast)](#/toast/tones), [Undo (Toast)](#/toast/undo) and 10 more |
|
|
20038
|
+
| `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 timed toast that gave way to newer ones has said so through `onClose`. A `loading` toast turned into its outcome counts toward the limit from the next arrival on; `update` itself pushes nothing out.<br>Shown in: [Save, and say how it went (Toast)](#/toast/save-with-loading) |
|
|
20039
|
+
| `dismiss` *required* | `(id: number) => void` | — | Closes a toast, with the reason `dismiss`. |
|
|
20040
|
+
|
|
20011
20041
|
##### `ToastOptions`
|
|
20012
20042
|
|
|
20013
20043
|
Its table stands on [Toast](#/toast/type-ToastOptions).
|
|
@@ -20535,31 +20565,3 @@ const GERMAN_WORDING: Wording;
|
|
|
20535
20565
|
```
|
|
20536
20566
|
|
|
20537
20567
|
Used on [UmrissProvider](#/umrissprovider) and [Language](#/language).
|
|
20538
|
-
|
|
20539
|
-
#### Types on this page
|
|
20540
|
-
|
|
20541
|
-
##### `FormFieldContextValue`
|
|
20542
|
-
|
|
20543
|
-
| Prop | Type | Default | Description |
|
|
20544
|
-
|---|---|---|---|
|
|
20545
|
-
| `id` *required* | `string` | — | |
|
|
20546
|
-
| `labelId` *required* | `string` | — | The label's own id. `label htmlFor` names only what HTML can label - an input, a select, a button; a group (`role="radiogroup"`) is named through `aria-labelledby` with this. |
|
|
20547
|
-
| `describedBy` | `string` | — | |
|
|
20548
|
-
| `invalid` *required* | `boolean` | — | |
|
|
20549
|
-
| `required` *required* | `boolean` | — | A required field. Every field whose role carries it turns this into `aria-required` - just as it does with `aria-describedby` and `aria-invalid`. |
|
|
20550
|
-
|
|
20551
|
-
##### `ToastContextValue`
|
|
20552
|
-
|
|
20553
|
-
| Prop | Type | Default | Description |
|
|
20554
|
-
|---|---|---|---|
|
|
20555
|
-
| `toast` *required* | `(options: `[`ToastOptions`](#/toast/type-ToastOptions)`) => number` | — | Shows a toast and returns its id.<br>Shown in: [Show a toast (Toast)](#/toast/show-a-toast), [Tones (Toast)](#/toast/tones), [Undo (Toast)](#/toast/undo) and 10 more |
|
|
20556
|
-
| `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 timed toast that gave way to newer ones has said so through `onClose`. A `loading` toast turned into its outcome counts toward the limit from the next arrival on; `update` itself pushes nothing out.<br>Shown in: [Save, and say how it went (Toast)](#/toast/save-with-loading) |
|
|
20557
|
-
| `dismiss` *required* | `(id: number) => void` | — | Closes a toast, with the reason `dismiss`. |
|
|
20558
|
-
|
|
20559
|
-
##### `Instant`
|
|
20560
|
-
|
|
20561
|
-
What may come in as an as-of time or a reference time.
|
|
20562
|
-
|
|
20563
|
-
```ts
|
|
20564
|
-
type Instant = Date | number | null | undefined;
|
|
20565
|
-
```
|