@umriss-ui/core 0.47.1 → 0.48.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 +15 -0
- package/README.md +5 -0
- package/dist/core.css +1 -1
- package/dist/core.js +1109 -1085
- package/dist/touch-scale.css +9 -0
- package/docs/llms-full.md +174 -132
- package/package.json +8 -1
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.48.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
|
|
|
@@ -2725,7 +2725,7 @@ From `ButtonProps` — the full table stands on [Button](#button).
|
|
|
2725
2725
|
- No font is loaded or bundled.
|
|
2726
2726
|
- Chrome 123, Firefox 120 and Safari 17.5 or newer; an older browser discards the tokens and shows the components unstyled.
|
|
2727
2727
|
|
|
2728
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2728
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2729
2729
|
|
|
2730
2730
|
### UmrissProvider
|
|
2731
2731
|
|
|
@@ -2936,7 +2936,7 @@ type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "
|
|
|
2936
2936
|
|
|
2937
2937
|
- No theme and no default variants for components: a component is configured by its own props.
|
|
2938
2938
|
|
|
2939
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2939
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2940
2940
|
|
|
2941
2941
|
## Customising
|
|
2942
2942
|
|
|
@@ -3423,7 +3423,7 @@ From `BadgeProps` — the full table stands on [Badge](#badge).
|
|
|
3423
3423
|
- A token that names another resolves where it is declared: set `--u-color-accent` on a region, and `--u-focus-ring`, which names it on `:root`, still draws the application's accent there. Set the naming token in the region too.
|
|
3424
3424
|
- A panel opened in a portal - a popover, a tooltip, a toast - takes the tokens and the `color-scheme` of the place it lands, not of the region it was opened from; inside a dialog the toasts take the tokens of the dialog's place. Give [UmrissProvider](#umrissprovider) a `portalTarget` inside the region, or override on `:root` - as for the toasts' distance from the window's edge and its sides, `--u-toast-inset-top`, `--u-toast-inset-bottom`, `--u-toast-inset-start` and `--u-toast-inset-end`.
|
|
3425
3425
|
|
|
3426
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3426
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3427
3427
|
|
|
3428
3428
|
### Sizes
|
|
3429
3429
|
|
|
@@ -3841,7 +3841,7 @@ type ControlSize = "sm" | "md";
|
|
|
3841
3841
|
- A field does not grow to fill a row: give it room with the row's own layout (`flex: 1` on its FormField, or a grid).
|
|
3842
3842
|
- A place that sizes itself by its content and has no width to stop at - an `auto` grid track, an inline block, a row that does not wrap - gives a field at least its natural width, as it gives a native input its own; on a narrow screen let such a row wrap, or size the track with `minmax(0, auto)`.
|
|
3843
3843
|
|
|
3844
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3844
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3845
3845
|
|
|
3846
3846
|
### Language
|
|
3847
3847
|
|
|
@@ -5057,10 +5057,10 @@ Everything the library puts out as text.
|
|
|
5057
5057
|
|
|
5058
5058
|
#### Known limits
|
|
5059
5059
|
|
|
5060
|
-
- Two languages ship; a third is a `Wording` object of your own. No right-to-left ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5060
|
+
- Two languages ship; a third is a `Wording` object of your own. No right-to-left ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
5061
5061
|
- It holds only what the components say themselves; your labels, titles and data are yours to translate.
|
|
5062
5062
|
|
|
5063
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5063
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5064
5064
|
|
|
5065
5065
|
## Layout
|
|
5066
5066
|
|
|
@@ -5363,11 +5363,11 @@ The keys of [Button](#button) apply here.
|
|
|
5363
5363
|
| Prop | Type | Default | Description |
|
|
5364
5364
|
|---|---|---|---|
|
|
5365
5365
|
| `direction` | `"row" \| "column"` | `"column"` | Below one another or beside one another. Below is the direction content stands in anyway, without being asked.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [Wrapping](#stack-and-grid) and 71 more |
|
|
5366
|
-
| `gap` | `SpaceStep`<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `3` | Spacing as a step of the 4 px spacing steps (1–8).<br>Shown in: [A column](#stack-and-grid), [A row](#stack-and-grid), [Gaps](#stack-and-grid) and
|
|
5367
|
-
| `align` | `CSSProperties["alignItems"]` | — | Alignment across the direction – `alignItems` unchanged.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [A tour summary](#stack-and-grid) and
|
|
5366
|
+
| `gap` | `SpaceStep`<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `3` | Spacing as a step of the 4 px spacing steps (1–8).<br>Shown in: [A column](#stack-and-grid), [A row](#stack-and-grid), [Gaps](#stack-and-grid) and 173 more |
|
|
5367
|
+
| `align` | `CSSProperties["alignItems"]` | — | Alignment across the direction – `alignItems` unchanged.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [A tour summary](#stack-and-grid) and 81 more |
|
|
5368
5368
|
| `justify` | `CSSProperties["justifyContent"]` | — | Distribution along the direction – `justifyContent` unchanged.<br>Shown in: [A row](#stack-and-grid), [A tour summary](#stack-and-grid), [Name the same action in every row (VisuallyHidden)](#visuallyhidden) and 9 more |
|
|
5369
5369
|
| `wrap` | `boolean` | `false` | Lets the children wrap when the line does not suffice.<br>Shown in: [Gaps](#stack-and-grid), [Wrapping](#stack-and-grid), [Sized to the value (Sizes)](#sizes) and 33 more |
|
|
5370
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
5370
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
5371
5371
|
|
|
5372
5372
|
Also takes every attribute of `<div>`.
|
|
5373
5373
|
|
|
@@ -5378,7 +5378,7 @@ Also takes every attribute of `<div>`.
|
|
|
5378
5378
|
| `columns` | `number \| readonly ``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), [Columns of their own widths](#stack-and-grid), [A token for one region (Theming)](#theming) and 5 more |
|
|
5379
5379
|
| `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), [A tour summary](#stack-and-grid), [A dark region (Theming)](#theming) and 52 more |
|
|
5380
5380
|
| `gap` | `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), [Columns by width](#stack-and-grid), [Columns of their own widths](#stack-and-grid) and 59 more |
|
|
5381
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
5381
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
5382
5382
|
|
|
5383
5383
|
Also takes every attribute of `<div>`.
|
|
5384
5384
|
|
|
@@ -5407,7 +5407,7 @@ type GridColumnWidth = number | "fill";
|
|
|
5407
5407
|
- No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
|
|
5408
5408
|
- Tiles are not arranged by the user: for a dashboard the reader arranges, see `@umriss-ui/dashboard` ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
|
|
5409
5409
|
|
|
5410
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5410
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5411
5411
|
|
|
5412
5412
|
### Divider
|
|
5413
5413
|
|
|
@@ -5509,7 +5509,7 @@ The keys of [Button](#button) apply here.
|
|
|
5509
5509
|
| `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | Horizontally it separates rows, vertically it separates columns.<br>Shown in: [Configurator](#divider), [Upright in a bar](#divider) |
|
|
5510
5510
|
| `strong` | `boolean` | `false` | A stronger line - for section boundaries rather than row separation.<br>Shown in: [Configurator](#divider), [Strength and label](#divider), [Upright in a bar](#divider) |
|
|
5511
5511
|
| `label` | `ReactNode` | — | A label in the middle. It makes the line a named separator.<br>Shown in: [Configurator](#divider), [Strength and label](#divider) |
|
|
5512
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
5512
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
5513
5513
|
|
|
5514
5514
|
Also takes every attribute of `<div>`.
|
|
5515
5515
|
|
|
@@ -5779,7 +5779,7 @@ The keys of [Button](#button) apply here.
|
|
|
5779
5779
|
| `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) |
|
|
5780
5780
|
| `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) |
|
|
5781
5781
|
| `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) |
|
|
5782
|
-
| `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
5782
|
+
| `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
5783
5783
|
|
|
5784
5784
|
Also takes every attribute of the rendered element.
|
|
5785
5785
|
|
|
@@ -5791,7 +5791,7 @@ Also takes every attribute of the rendered element.
|
|
|
5791
5791
|
| `eyebrow` | `ReactNode` | — | Small all-caps label above the title, e.g. a category.<br>Shown in: [Eyebrow and actions](#card), [A flush body](#card), [Fold the body](#card) and 17 more |
|
|
5792
5792
|
| `actions` | `ReactNode` | — | Right-aligned area, e.g. buttons or badges.<br>Shown in: [Eyebrow and actions](#card), [Fold the body](#card), [Cards on a dashboard](#card) and 13 more |
|
|
5793
5793
|
| `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) |
|
|
5794
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
5794
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
5795
5795
|
|
|
5796
5796
|
Also takes every attribute of `<div>` – without `title`.
|
|
5797
5797
|
|
|
@@ -5800,7 +5800,7 @@ Also takes every attribute of `<div>` – without `title`.
|
|
|
5800
5800
|
| Prop | Type | Default | Description |
|
|
5801
5801
|
|---|---|---|---|
|
|
5802
5802
|
| `flush` | `boolean` | `false` | Removes the inner padding, e.g. for flush tables.<br>Shown in: [A flush body](#card) |
|
|
5803
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
5803
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
5804
5804
|
|
|
5805
5805
|
Also takes every attribute of `<div>`.
|
|
5806
5806
|
|
|
@@ -6217,7 +6217,7 @@ export default function ThreePanes() {
|
|
|
6217
6217
|
| `step` | `number` | `5` | How far an arrow key moves the separator, in per cent.<br>Shown in: [Keep the share](#splitter) |
|
|
6218
6218
|
| `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), [Keep the share](#splitter), [Three panes](#splitter) |
|
|
6219
6219
|
| `children` *required* | `[ReactNode, ReactNode]` | — | The first pane and the second, in this order.<br>Shown in: [Two panes](#splitter), [One above the other](#splitter), [Keep the share](#splitter) and 1 more |
|
|
6220
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
6220
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
6221
6221
|
|
|
6222
6222
|
###### Events
|
|
6223
6223
|
|
|
@@ -6232,7 +6232,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
|
|
|
6232
6232
|
- Two panes per splitter, no more. Tiles are not arranged by the user: for a dashboard the reader arranges, see `@umriss-ui/dashboard` ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
|
|
6233
6233
|
- It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
|
|
6234
6234
|
|
|
6235
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6235
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6236
6236
|
|
|
6237
6237
|
## Typography
|
|
6238
6238
|
|
|
@@ -6590,13 +6590,13 @@ export default function IncidentSummary() {
|
|
|
6590
6590
|
| Prop | Type | Default | Description |
|
|
6591
6591
|
|---|---|---|---|
|
|
6592
6592
|
| `as` | `ElementType` | `"p"` | Element to render as.<br>Shown in: [Tones and weights](#typography-2), [Set an incident summary](#typography-2), [Use the language in your own components (Language)](#language) and 20 more |
|
|
6593
|
-
| `size` | `TextSize`<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#typography-2), [Sizes](#typography-2), [Tones and weights](#typography-2) and
|
|
6593
|
+
| `size` | `TextSize`<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#typography-2), [Sizes](#typography-2), [Tones and weights](#typography-2) and 137 more |
|
|
6594
6594
|
| `weight` | `TextWeight`<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#typography-2), [Tones and weights](#typography-2), [Tracking and leading](#typography-2) and 18 more |
|
|
6595
6595
|
| `tone` | `TextTone`<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#typography-2), [Tones and weights](#typography-2), [Tracking and leading](#typography-2) and 99 more |
|
|
6596
6596
|
| `mono` | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers.<br>Shown in: [Configurator](#typography-2), [Numbers and identifiers](#typography-2), [Handle long values](#typography-2) and 34 more |
|
|
6597
6597
|
| `tracking` | `TextTracking`<br>`"normal" \| "tight" \| "display" \| "caps"` | `"normal"` | Letter spacing from the token set. `caps` belongs with letterspaced capitals.<br>Shown in: [Configurator](#typography-2), [Tracking and leading](#typography-2), [Set an incident summary](#typography-2) |
|
|
6598
6598
|
| `leading` | `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-2), [Tracking and leading](#typography-2) |
|
|
6599
|
-
| `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
6599
|
+
| `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
6600
6600
|
|
|
6601
6601
|
Also takes every attribute of the rendered element.
|
|
6602
6602
|
|
|
@@ -6608,7 +6608,7 @@ Also takes every attribute of the rendered element.
|
|
|
6608
6608
|
| `size` | `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-2), [Choose the level apart from the size](#typography-2), [Set an incident summary](#typography-2) and 4 more |
|
|
6609
6609
|
| `weight` | `TextWeight`<br>`"regular" \| "medium" \| "semibold"` | `"semibold"` | Font weight from the token set.<br>Shown in: [Tones and weights](#typography-2) |
|
|
6610
6610
|
| `tone` | `TextTone`<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the heading is.<br>Shown in: [Choose the level apart from the size](#typography-2) |
|
|
6611
|
-
| `ref` | `Ref<HTMLHeadingElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
6611
|
+
| `ref` | `Ref<HTMLHeadingElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
6612
6612
|
|
|
6613
6613
|
Also takes every attribute of the heading.
|
|
6614
6614
|
|
|
@@ -6618,7 +6618,7 @@ Also takes every attribute of the heading.
|
|
|
6618
6618
|
|---|---|---|---|
|
|
6619
6619
|
| `size` | `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)](#watch-a-kiln-line-over-a-shift) |
|
|
6620
6620
|
| `external` | `boolean` | `false` | Opens in a new tab and sets the necessary protective attributes.<br>Shown in: [Link out of the application](#typography-2), [Set an incident summary](#typography-2) |
|
|
6621
|
-
| `ref` | `Ref<HTMLAnchorElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
6621
|
+
| `ref` | `Ref<HTMLAnchorElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
6622
6622
|
|
|
6623
6623
|
Also takes every attribute of `<a>`.
|
|
6624
6624
|
|
|
@@ -6668,10 +6668,10 @@ type TextLeading = "normal" | "tight";
|
|
|
6668
6668
|
#### Known limits
|
|
6669
6669
|
|
|
6670
6670
|
- No truncation and no line length: both depend on the column, which only the application knows.
|
|
6671
|
-
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6671
|
+
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
6672
6672
|
- `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
|
|
6673
6673
|
|
|
6674
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6674
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6675
6675
|
|
|
6676
6676
|
### VisuallyHidden
|
|
6677
6677
|
|
|
@@ -6787,7 +6787,7 @@ export default function ActionsInRows() {
|
|
|
6787
6787
|
|---|---|---|---|
|
|
6788
6788
|
| `as` | `E` | `"span"` | Element to render as.<br>Shown in: [Add a skip link](#visuallyhidden) |
|
|
6789
6789
|
| `focusable` | `boolean` | `false` | Becomes visible as soon as the content receives the focus (skip link).<br>Shown in: [Add a skip link](#visuallyhidden) |
|
|
6790
|
-
| `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
6790
|
+
| `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
6791
6791
|
|
|
6792
6792
|
Also takes every attribute of the chosen element – without `as`, `ref`.
|
|
6793
6793
|
|
|
@@ -6795,7 +6795,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
|
|
|
6795
6795
|
|
|
6796
6796
|
- It hides from the eye only; to hide something from everyone, do not render it.
|
|
6797
6797
|
|
|
6798
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6798
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6799
6799
|
|
|
6800
6800
|
## Actions
|
|
6801
6801
|
|
|
@@ -7084,7 +7084,7 @@ Under forced colours every variant keeps an outline where its edge would lie, an
|
|
|
7084
7084
|
| `variant` | `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), [Variants](#button), [Sizes](#button) and 55 more |
|
|
7085
7085
|
| `size` | `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), [Sizes](#button), [Add an icon](#button) and 60 more |
|
|
7086
7086
|
| `loading` | `boolean` | `false` | Shows a loading indicator and locks the button.<br>Shown in: [Configurator](#button), [Loading and disabled](#button), [Submit a form](#button) and 4 more |
|
|
7087
|
-
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
7087
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
7088
7088
|
|
|
7089
7089
|
Also takes every attribute of `<button>`.
|
|
7090
7090
|
|
|
@@ -7124,7 +7124,7 @@ type ControlSize = "sm" | "md";
|
|
|
7124
7124
|
- The label stays on one line; keep it short rather than let it wrap.
|
|
7125
7125
|
- No icon slot: an icon goes among the children, before the label, and the button sets its size.
|
|
7126
7126
|
|
|
7127
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7127
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7128
7128
|
|
|
7129
7129
|
### IconButton
|
|
7130
7130
|
|
|
@@ -7435,7 +7435,7 @@ export default function Toolbar() {
|
|
|
7435
7435
|
| `variant` | `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), [Variants](#iconbutton), [Sizes](#iconbutton) and 3 more |
|
|
7436
7436
|
| `size` | `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), [Sizes](#iconbutton), [Build a toolbar](#iconbutton) and 60 more |
|
|
7437
7437
|
| `loading` | `boolean` | `false` | Shows a loading indicator and locks the button. From `ButtonProps`.<br>Shown in: [Configurator](#iconbutton), [Loading and disabled](#iconbutton), [Configurator (Button)](#button) and 4 more |
|
|
7438
|
-
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
7438
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
7439
7439
|
|
|
7440
7440
|
###### Accessibility
|
|
7441
7441
|
|
|
@@ -7481,7 +7481,7 @@ type ControlSize = "sm" | "md";
|
|
|
7481
7481
|
- The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
|
|
7482
7482
|
- A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
|
|
7483
7483
|
|
|
7484
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7484
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7485
7485
|
|
|
7486
7486
|
### ButtonGroup
|
|
7487
7487
|
|
|
@@ -7775,7 +7775,7 @@ export default function InvoiceToolbar() {
|
|
|
7775
7775
|
| Prop | Type | Default | Description |
|
|
7776
7776
|
|---|---|---|---|
|
|
7777
7777
|
| `size` | `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) |
|
|
7778
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
7778
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
7779
7779
|
|
|
7780
7780
|
###### Accessibility
|
|
7781
7781
|
|
|
@@ -7796,7 +7796,7 @@ Also takes every attribute of `<div>`.
|
|
|
7796
7796
|
| `menuLabel` | `string` | the wording's "More actions" | Label of the trigger. |
|
|
7797
7797
|
| `align` | `"start" \| "end"` | `"end"` | Alignment of the menu relative to the trigger.<br>Shown in: [Offer variants of the main action](#buttongroup) |
|
|
7798
7798
|
| `loading` | `boolean` | `false` | Shows a loading indicator and locks the button. From `ButtonProps`.<br>Shown in: [Configurator (Button)](#button), [Loading and disabled (Button)](#button), [Submit a form (Button)](#button) and 4 more |
|
|
7799
|
-
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
7799
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
7800
7800
|
|
|
7801
7801
|
###### Events
|
|
7802
7802
|
|
|
@@ -7841,7 +7841,7 @@ type ControlSize = "sm" | "md";
|
|
|
7841
7841
|
|
|
7842
7842
|
- No toggle or segmented state; a choice that stays is a radio group.
|
|
7843
7843
|
|
|
7844
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7844
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7845
7845
|
|
|
7846
7846
|
## Forms
|
|
7847
7847
|
|
|
@@ -8146,7 +8146,7 @@ export default function RevealASecret() {
|
|
|
8146
8146
|
| `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), [With an error](#input), [With an error (TreeView)](#treeview) |
|
|
8147
8147
|
| `numeric` | `boolean` | `false` | Right-aligned tabular figures in Geist Mono, e.g. for key figures.<br>Shown in: [Configurator](#input), [Align reference numbers](#input), [Take a delivery address](#input) and 2 more |
|
|
8148
8148
|
| `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), [A row that holds still (Sizes)](#sizes) |
|
|
8149
|
-
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
8149
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
8150
8150
|
|
|
8151
8151
|
###### Events
|
|
8152
8152
|
|
|
@@ -8161,7 +8161,7 @@ Also takes every attribute of `<input>` – without `size`.
|
|
|
8161
8161
|
- No input masks or formatting while typing; check the value on leave or on submit.
|
|
8162
8162
|
- No validation of its own: the error is the application's, handed to the `FormField`.
|
|
8163
8163
|
|
|
8164
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8164
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8165
8165
|
|
|
8166
8166
|
### FormField
|
|
8167
8167
|
|
|
@@ -8412,13 +8412,13 @@ The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox),
|
|
|
8412
8412
|
|
|
8413
8413
|
| Prop | Type | Default | Description |
|
|
8414
8414
|
|---|---|---|---|
|
|
8415
|
-
| `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and
|
|
8415
|
+
| `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 88 more |
|
|
8416
8416
|
| `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 37 more |
|
|
8417
8417
|
| `error` | `ReactNode` | — | Error message; it marks the field as invalid at the same time.<br>Shown in: [Configurator](#formfield), [Show an error](#formfield), [Check an invoice on submit](#formfield) and 23 more |
|
|
8418
8418
|
| `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), [Mark a field as required](#formfield), [Check an invoice on submit](#formfield) and 10 more |
|
|
8419
8419
|
| `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) |
|
|
8420
8420
|
| `labelPlacement` | `"top" \| "start"` | `"top"` | Where the label stands: `"top"` above the field (the default) or `"start"` beside it, in a column as wide as `--u-label-width`, level on the first baseline. `"start"` is for a column of fields and fills its place; where the row cannot hold the label and 12rem of field, the field wraps under the label. A `Grid` of fields keeps `"top"`.<br>Shown in: [Put the labels in a column](#formfield) |
|
|
8421
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [Check an invoice on submit](#formfield), [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover) and
|
|
8421
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [Check an invoice on submit](#formfield), [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover) and 5 more |
|
|
8422
8422
|
|
|
8423
8423
|
Also takes every attribute of `<div>`.
|
|
8424
8424
|
|
|
@@ -8427,7 +8427,7 @@ Also takes every attribute of `<div>`.
|
|
|
8427
8427
|
- No validation: the caller's form library decides; pass `error` ([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)). No form state and no submit handling either.
|
|
8428
8428
|
- One field per `FormField`; a group of fields that share one label is a fieldset of your own.
|
|
8429
8429
|
|
|
8430
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8430
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8431
8431
|
|
|
8432
8432
|
### Textarea
|
|
8433
8433
|
|
|
@@ -8607,7 +8607,7 @@ With `showCount` the characters left stand in a polite live region: a screen rea
|
|
|
8607
8607
|
| `maxRows` | `number` | — | Upper bound for `autoGrow` in rows; beyond it the field scrolls.<br>Shown in: [Grow with the text](#textarea), [Resolve an incident (Scenarios)](#resolve-an-incident), [Approve spending against a budget (Scenarios)](#approve-spending-against-a-budget) |
|
|
8608
8608
|
| `showCount` | `boolean` | `false` | Shows at the bottom right how many characters still fit. Needs `maxLength`.<br>Shown in: [Count the characters](#textarea) |
|
|
8609
8609
|
| `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) |
|
|
8610
|
-
| `ref` | `Ref<HTMLTextAreaElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
8610
|
+
| `ref` | `Ref<HTMLTextAreaElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
8611
8611
|
|
|
8612
8612
|
Also takes every attribute of `<textarea>` – without `cols`.
|
|
8613
8613
|
|
|
@@ -8615,7 +8615,7 @@ Also takes every attribute of `<textarea>` – without `cols`.
|
|
|
8615
8615
|
|
|
8616
8616
|
- Plain text only: no formatting, mentions or rich text.
|
|
8617
8617
|
|
|
8618
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8618
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8619
8619
|
|
|
8620
8620
|
### NumberInput
|
|
8621
8621
|
|
|
@@ -8862,7 +8862,7 @@ export default function YearWithoutGrouping() {
|
|
|
8862
8862
|
| `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), [States](#numberinput), [Set up a team (Scenarios)](#set-up-a-team) |
|
|
8863
8863
|
| `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), [Sized to the value (Sizes)](#sizes) |
|
|
8864
8864
|
| `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), [With an error](#numberinput) |
|
|
8865
|
-
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
8865
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
8866
8866
|
|
|
8867
8867
|
###### Events
|
|
8868
8868
|
|
|
@@ -8877,7 +8877,7 @@ Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`
|
|
|
8877
8877
|
- No expressions: “12*4” is not calculated.
|
|
8878
8878
|
- No currency conversion; the unit is a label.
|
|
8879
8879
|
|
|
8880
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8880
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8881
8881
|
|
|
8882
8882
|
### Slider
|
|
8883
8883
|
|
|
@@ -9045,7 +9045,7 @@ export default function SplitABudget() {
|
|
|
9045
9045
|
| `marks` | `readonly ``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), [Set roughly, then exactly](#slider), [Split a budget](#slider) and 1 more |
|
|
9046
9046
|
| `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), [Set roughly, then exactly](#slider), [Split a budget](#slider) and 3 more |
|
|
9047
9047
|
| `showValue` | `boolean` | `true` | The value in mono beside the track.<br>Shown in: [Configurator](#slider), [Units and marks](#slider), [Set roughly, then exactly](#slider) and 1 more |
|
|
9048
|
-
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
9048
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9049
9049
|
|
|
9050
9050
|
###### Events
|
|
9051
9051
|
|
|
@@ -9070,7 +9070,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
|
|
|
9070
9070
|
- One thumb: no range with two ends.
|
|
9071
9071
|
- Marks show values; they do not catch the thumb.
|
|
9072
9072
|
|
|
9073
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9073
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9074
9074
|
|
|
9075
9075
|
### Checkbox
|
|
9076
9076
|
|
|
@@ -9186,7 +9186,7 @@ export default function SelectAllWithAMixedState() {
|
|
|
9186
9186
|
|---|---|---|---|
|
|
9187
9187
|
| `label` | `ReactNode` | — | Label to the right of the checkbox.<br>Shown in: [Configurator](#checkbox), [Checkbox](#checkbox), [States](#checkbox) and 11 more |
|
|
9188
9188
|
| `indeterminate` | `boolean` | `false` | Partially checked (e.g. "select all" with a mixed selection).<br>Shown in: [Configurator](#checkbox), [States](#checkbox), [Select all with a mixed state](#checkbox) |
|
|
9189
|
-
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
9189
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9190
9190
|
|
|
9191
9191
|
Also takes every attribute of `<input>` – without `size`, `type`.
|
|
9192
9192
|
|
|
@@ -9390,7 +9390,7 @@ export default function SettingsOfAService() {
|
|
|
9390
9390
|
| `label` | `ReactNode` | — | Label to the right of the switch.<br>Shown in: [Configurator](#switch), [On and off](#switch), [States and sizes](#switch) and 15 more |
|
|
9391
9391
|
| `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), [States and sizes](#switch) |
|
|
9392
9392
|
| `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), [With an error](#switch) |
|
|
9393
|
-
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
9393
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9394
9394
|
|
|
9395
9395
|
Also takes every attribute of `<input>` – without `role`, `size`, `type`.
|
|
9396
9396
|
|
|
@@ -9398,7 +9398,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
|
|
|
9398
9398
|
|
|
9399
9399
|
- No pending or loading state; while your application applies the change, disable the switch or say so beside it.
|
|
9400
9400
|
|
|
9401
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9401
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9402
9402
|
|
|
9403
9403
|
### RadioGroup
|
|
9404
9404
|
|
|
@@ -9553,7 +9553,7 @@ export default function States() {
|
|
|
9553
9553
|
| `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), [States](#radiogroup) |
|
|
9554
9554
|
| `disabled` | `boolean` | `false` | Disables the whole group. `RadioOption` disables single possibilities.<br>Shown in: [Configurator](#radiogroup), [States](#radiogroup) |
|
|
9555
9555
|
| `name` | `string` | a generated one | Name of the radio group within the form. |
|
|
9556
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
9556
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9557
9557
|
|
|
9558
9558
|
###### Events
|
|
9559
9559
|
|
|
@@ -9830,21 +9830,21 @@ export default function DrawnAsAField() {
|
|
|
9830
9830
|
|
|
9831
9831
|
| Prop | Type | Default | Description |
|
|
9832
9832
|
|---|---|---|---|
|
|
9833
|
-
| `options` *required* | `readonly ``SegmentedOption``<T>[]` | — | The possibilities, two to four, in the order in which they stand.<br>Shown in: [Configurator](#segmentedcontrol), [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol) and
|
|
9833
|
+
| `options` *required* | `readonly ``SegmentedOption``<T>[]` | — | The possibilities, two to four, in the order in which they stand.<br>Shown in: [Configurator](#segmentedcontrol), [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol) and 7 more |
|
|
9834
9834
|
| `defaultValue` | `T \| null` | — | Initial value of an uncontrolled control. Not together with `value`.<br>Shown in: [Configurator](#segmentedcontrol), [States and sizes](#segmentedcontrol), [Long words in a narrow place](#segmentedcontrol) and 3 more |
|
|
9835
|
-
| `value` | `T \| null` | — | The chosen possibility; `null` means: none yet. Together with `onChange` the control is controlled.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [
|
|
9835
|
+
| `value` | `T \| null` | — | The chosen possibility; `null` means: none yet. Together with `onChange` the control is controlled.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [A setting in a panel (Popover)](#popover) and 1 more |
|
|
9836
9836
|
| `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](#segmentedcontrol), [States and sizes](#segmentedcontrol) |
|
|
9837
9837
|
| `variant` | `"field" \| "inset"` | `"inset"` | How it is drawn. `inset`: a sunken track without an edge, the choice a surface lifted out of it. `field`: a field's edge, the choice filled with ink - for a row whose fields it should match box for box.<br>Shown in: [Configurator](#segmentedcontrol), [Drawn as a field](#segmentedcontrol) |
|
|
9838
|
-
| `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), [A theme switch](#segmentedcontrol) |
|
|
9838
|
+
| `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), [A theme switch](#segmentedcontrol), [A setting in a panel (Popover)](#popover) |
|
|
9839
9839
|
| `disabled` | `boolean` | `false` | Disables the whole control. `SegmentedOption` disables single possibilities.<br>Shown in: [Configurator](#segmentedcontrol), [States and sizes](#segmentedcontrol) |
|
|
9840
9840
|
| `name` | `string` | a generated one | Name of the radio group within the form. |
|
|
9841
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
9841
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9842
9842
|
|
|
9843
9843
|
###### Events
|
|
9844
9844
|
|
|
9845
9845
|
| Prop | Type | Default | Description |
|
|
9846
9846
|
|---|---|---|---|
|
|
9847
|
-
| `onChange` | `(value: T) => void` | — | Runs on every choice – on the one made with the arrow keys as well.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [
|
|
9847
|
+
| `onChange` | `(value: T) => void` | — | Runs on every choice – on the one made with the arrow keys as well.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [A setting in a panel (Popover)](#popover) and 1 more |
|
|
9848
9848
|
|
|
9849
9849
|
Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
9850
9850
|
|
|
@@ -9852,8 +9852,8 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
9852
9852
|
|
|
9853
9853
|
| Prop | Type | Default | Description |
|
|
9854
9854
|
|---|---|---|---|
|
|
9855
|
-
| `value` *required* | `T` | — | What comes back when this possibility is chosen.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [States and sizes](#segmentedcontrol) and
|
|
9856
|
-
| `label` *required* | `ReactNode` | — | The segment's word - a short one; a long label ends in an ellipsis.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [States and sizes](#segmentedcontrol) and
|
|
9855
|
+
| `value` *required* | `T` | — | What comes back when this possibility is chosen.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [States and sizes](#segmentedcontrol) and 6 more |
|
|
9856
|
+
| `label` *required* | `ReactNode` | — | The segment's word - a short one; a long label ends in an ellipsis.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [States and sizes](#segmentedcontrol) and 6 more |
|
|
9857
9857
|
| `icon` | `ReactNode` | — | An icon before the word: an SVG, a glyph of the set or an icon font's element. The control sets its size - `--u-icon-size`, `--u-icon-size-sm` at `sm` - and hides it from assistive technology: the word names the possibility.<br>Shown in: [A theme switch](#segmentedcontrol) |
|
|
9858
9858
|
| `disabled` | `boolean` | — | Takes the possibility out of the choice but leaves it visible.<br>Shown in: [States and sizes](#segmentedcontrol) |
|
|
9859
9859
|
|
|
@@ -9862,7 +9862,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
9862
9862
|
- Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
|
|
9863
9863
|
- No icons and no line of explanation in a segment; several chosen at once is not this control.
|
|
9864
9864
|
|
|
9865
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9865
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9866
9866
|
|
|
9867
9867
|
### FileInput
|
|
9868
9868
|
|
|
@@ -10193,7 +10193,7 @@ export default function ProgressAndThumbnails() {
|
|
|
10193
10193
|
|---|---|---|---|
|
|
10194
10194
|
| `value` | `readonly File[]` | — | Controlled: the chosen files. Uncontrolled, the input keeps its own and starts empty.<br>Shown in: [Several files](#fileinput), [With an error](#fileinput), [Require a file before sending](#fileinput) and 2 more |
|
|
10195
10195
|
| `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) |
|
|
10196
|
-
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
10196
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
10197
10197
|
|
|
10198
10198
|
###### Events
|
|
10199
10199
|
|
|
@@ -10207,7 +10207,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
|
|
|
10207
10207
|
|
|
10208
10208
|
- No upload, no progress and no size limit of its own; those belong to the application sending the files.
|
|
10209
10209
|
|
|
10210
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10210
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10211
10211
|
|
|
10212
10212
|
## Choosing
|
|
10213
10213
|
|
|
@@ -10389,7 +10389,7 @@ export default function ClearTheChoice() {
|
|
|
10389
10389
|
| `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), [A row of fields (Sizes)](#sizes) |
|
|
10390
10390
|
| `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), [With an error](#select) |
|
|
10391
10391
|
| `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) |
|
|
10392
|
-
| `ref` | `Ref<HTMLSelectElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
10392
|
+
| `ref` | `Ref<HTMLSelectElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
10393
10393
|
|
|
10394
10394
|
###### Events
|
|
10395
10395
|
|
|
@@ -10403,7 +10403,7 @@ Also takes every attribute of `<select>` – without `size`.
|
|
|
10403
10403
|
|
|
10404
10404
|
- The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
|
|
10405
10405
|
|
|
10406
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10406
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10407
10407
|
|
|
10408
10408
|
### Combobox
|
|
10409
10409
|
|
|
@@ -10763,7 +10763,7 @@ export default function SearchWithTheServer() {
|
|
|
10763
10763
|
| `clearable` | `boolean` | `false` | Shows a cross on selection or input that clears field and selection.<br>Shown in: [Configurator](#combobox), [Combobox](#combobox), [Assign an incident](#combobox) and 4 more |
|
|
10764
10764
|
| `filter` | `boolean` | `true` | With `false` the field filters nothing: `options` are shown as given, in their order - the server's ranking. The active option returns to the first when they change while the panel is open.<br>Shown in: [Search with the server](#combobox) |
|
|
10765
10765
|
| `loading` | `boolean` | `false` | Results are on their way: the list shows the wording's "Loading" line where it would show the empty text, below any `options` given, and is `aria-busy`.<br>Shown in: [Search with the server](#combobox) |
|
|
10766
|
-
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
10766
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
10767
10767
|
|
|
10768
10768
|
###### Events
|
|
10769
10769
|
|
|
@@ -10787,7 +10787,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
|
|
|
10787
10787
|
- No free text as a value: only an option can be chosen.
|
|
10788
10788
|
- No request of its own: `onSearch` reports the typed text and you fetch, debounce and cancel; `filter={false}` shows what you return.
|
|
10789
10789
|
|
|
10790
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10790
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10791
10791
|
|
|
10792
10792
|
### MultiSelect
|
|
10793
10793
|
|
|
@@ -11073,7 +11073,7 @@ export default function ThousandsOfAssets() {
|
|
|
11073
11073
|
| `disabled` | `boolean` | `false` | Locks field and panel.<br>Shown in: [Configurator](#multiselect), [States](#multiselect), [Dispatch a tour (Scenarios)](#dispatch-a-tour) |
|
|
11074
11074
|
| `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), [With an error](#multiselect) |
|
|
11075
11075
|
| `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), [Filter incidents by service](#multiselect), [Thousands of assets](#multiselect) and 1 more |
|
|
11076
|
-
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
11076
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
11077
11077
|
|
|
11078
11078
|
###### Events
|
|
11079
11079
|
|
|
@@ -11280,7 +11280,7 @@ export default function FromTheFirstReadingToToday() {
|
|
|
11280
11280
|
| `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. Without it no way to empty the value is offered.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and 6 more |
|
|
11281
11281
|
| `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given.<br>Shown in: [From the first reading to today](#datepicker) |
|
|
11282
11282
|
| `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is.<br>Shown in: [From the first reading to today](#datepicker) |
|
|
11283
|
-
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
11283
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
11284
11284
|
|
|
11285
11285
|
###### Events
|
|
11286
11286
|
|
|
@@ -11295,7 +11295,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
11295
11295
|
- No typing of a date into the field.
|
|
11296
11296
|
- umriss shows the reader's time ([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)).
|
|
11297
11297
|
|
|
11298
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11298
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11299
11299
|
|
|
11300
11300
|
### DateTimePicker
|
|
11301
11301
|
|
|
@@ -11452,7 +11452,7 @@ export default function WithAnError() {
|
|
|
11452
11452
|
| `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. Without it no way to empty the value is offered.<br>Shown in: [Configurator](#datetimepicker), [Set an instant](#datetimepicker), [States](#datetimepicker) |
|
|
11453
11453
|
| `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given. |
|
|
11454
11454
|
| `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is. |
|
|
11455
|
-
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
11455
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
11456
11456
|
|
|
11457
11457
|
###### Events
|
|
11458
11458
|
|
|
@@ -11466,7 +11466,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
11466
11466
|
|
|
11467
11467
|
- umriss shows the reader's time ([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)).
|
|
11468
11468
|
|
|
11469
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11469
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11470
11470
|
|
|
11471
11471
|
### DateRangePicker
|
|
11472
11472
|
|
|
@@ -11672,7 +11672,7 @@ export default function PresetsCutToABound() {
|
|
|
11672
11672
|
| `presets` | `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) |
|
|
11673
11673
|
| `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given.<br>Shown in: [Presets cut to a bound](#daterangepicker) |
|
|
11674
11674
|
| `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is.<br>Shown in: [Presets cut to a bound](#daterangepicker) |
|
|
11675
|
-
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
11675
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
11676
11676
|
|
|
11677
11677
|
###### Events
|
|
11678
11678
|
|
|
@@ -11709,7 +11709,7 @@ the moment of the click.
|
|
|
11709
11709
|
|
|
11710
11710
|
- One span; no list of separate days.
|
|
11711
11711
|
|
|
11712
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11712
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11713
11713
|
|
|
11714
11714
|
### DateTimeRangePicker
|
|
11715
11715
|
|
|
@@ -11887,7 +11887,7 @@ export default function WithAnError() {
|
|
|
11887
11887
|
| `presets` | `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) |
|
|
11888
11888
|
| `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given. |
|
|
11889
11889
|
| `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is. |
|
|
11890
|
-
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
11890
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
11891
11891
|
|
|
11892
11892
|
###### Events
|
|
11893
11893
|
|
|
@@ -11925,7 +11925,7 @@ the moment of the click.
|
|
|
11925
11925
|
- umriss shows the reader's time ([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)).
|
|
11926
11926
|
- No recurring windows.
|
|
11927
11927
|
|
|
11928
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11928
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11929
11929
|
|
|
11930
11930
|
## Feedback
|
|
11931
11931
|
|
|
@@ -12067,7 +12067,7 @@ With reduced motion it turns at less than half its speed instead of stopping, so
|
|
|
12067
12067
|
| Prop | Type | Default | Description |
|
|
12068
12068
|
|---|---|---|---|
|
|
12069
12069
|
| `size` | `number` | `14` | Edge length in pixels.<br>Shown in: [Sizes](#spinner), [Colour](#spinner) |
|
|
12070
|
-
| `ref` | `Ref<SVGSVGElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
12070
|
+
| `ref` | `Ref<SVGSVGElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
12071
12071
|
|
|
12072
12072
|
Also takes every attribute of `<svg>`.
|
|
12073
12073
|
|
|
@@ -12075,7 +12075,7 @@ Also takes every attribute of `<svg>`.
|
|
|
12075
12075
|
|
|
12076
12076
|
- One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
|
|
12077
12077
|
|
|
12078
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12078
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12079
12079
|
|
|
12080
12080
|
### ProgressBar
|
|
12081
12081
|
|
|
@@ -12250,7 +12250,7 @@ Under forced colours the track takes an edge and the fill the system's selection
|
|
|
12250
12250
|
| `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), [Count instead of a share](#progressbar), [Run without a known end](#progressbar) and 4 more |
|
|
12251
12251
|
| `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), [Follow a job through its steps](#progressbar), [Progress and thumbnails (FileInput)](#fileinput) and 1 more |
|
|
12252
12252
|
| `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), [How far a job has come](#progressbar), [Follow a job through its steps](#progressbar) and 1 more |
|
|
12253
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
12253
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
12254
12254
|
|
|
12255
12255
|
Also takes every attribute of `<div>`.
|
|
12256
12256
|
|
|
@@ -12258,7 +12258,7 @@ Also takes every attribute of `<div>`.
|
|
|
12258
12258
|
|
|
12259
12259
|
- No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
|
|
12260
12260
|
|
|
12261
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12261
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12262
12262
|
|
|
12263
12263
|
### Skeleton
|
|
12264
12264
|
|
|
@@ -12407,7 +12407,7 @@ With reduced motion the shimmer stops, and the shape stands in a still, faint gr
|
|
|
12407
12407
|
| `width` | `string \| number` | `"100%"` | Width, e.g. "120px" or "60%".<br>Shown in: [Configurator](#skeleton), [Lines of text to come](#skeleton), [Shapes](#skeleton) and 2 more |
|
|
12408
12408
|
| `height` | `string \| number` | `"12px"` | Height, e.g. "12px" or 16.<br>Shown in: [Configurator](#skeleton), [Shapes](#skeleton), [Hold a list's place while it loads](#skeleton) |
|
|
12409
12409
|
| `circle` | `boolean` | `false` | Circular shape, e.g. for an avatar placeholder.<br>Shown in: [Configurator](#skeleton), [Shapes](#skeleton), [Hold a list's place while it loads](#skeleton) |
|
|
12410
|
-
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
12410
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
12411
12411
|
|
|
12412
12412
|
Also takes every attribute of `<span>`.
|
|
12413
12413
|
|
|
@@ -12415,7 +12415,7 @@ Also takes every attribute of `<span>`.
|
|
|
12415
12415
|
|
|
12416
12416
|
- It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
|
|
12417
12417
|
|
|
12418
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12418
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12419
12419
|
|
|
12420
12420
|
### Alert
|
|
12421
12421
|
|
|
@@ -12607,7 +12607,7 @@ The title is a paragraph, not a heading, so an alert does not enter the page's o
|
|
|
12607
12607
|
| `title` | `ReactNode` | — | Heading; without it the body text carries the message on its own.<br>Shown in: [A message](#alert), [Tones](#alert), [Offer the way forward](#alert) and 6 more |
|
|
12608
12608
|
| `actions` | `ReactNode` | — | Actions below the text, e.g. "Try again".<br>Shown in: [Offer the way forward](#alert), [Sum up a form's errors](#alert), [A deployment (Stepper)](#stepper) |
|
|
12609
12609
|
| `dismissLabel` | `string` | the wording's "Close message" | Label of the dismiss cross. |
|
|
12610
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
12610
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
12611
12611
|
|
|
12612
12612
|
###### Events
|
|
12613
12613
|
|
|
@@ -12633,7 +12633,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
12633
12633
|
- No timer: an alert stays until you remove it. A message that goes by itself is a toast.
|
|
12634
12634
|
- No stack or queue of messages; place each alert where its matter is.
|
|
12635
12635
|
|
|
12636
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12636
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12637
12637
|
|
|
12638
12638
|
### Toast
|
|
12639
12639
|
|
|
@@ -13191,7 +13191,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
|
|
|
13191
13191
|
- No queue: a toast over the limit pushes the oldest timed one out rather than waiting. Lasting and `loading` toasts are not capped: the deck holds every one of them beside the timed ones.
|
|
13192
13192
|
- Without the Popover API the deck moves with a dialog that transforms itself: inside a dialog the toasts stand in the top layer only where the browser has it, and elsewhere they are a fixed box in the dialog.
|
|
13193
13193
|
|
|
13194
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13194
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13195
13195
|
|
|
13196
13196
|
### EmptyState
|
|
13197
13197
|
|
|
@@ -13326,7 +13326,7 @@ The keys of [Button](#button) and [Tag](#tag) apply here.
|
|
|
13326
13326
|
| `description` | `ReactNode` | — | One sentence on why nothing is here and what would put something here.<br>Shown in: [Nothing yet](#emptystate), [Say why a filter found nothing](#emptystate), [Mark good news in a panel](#emptystate) and 3 more |
|
|
13327
13327
|
| `action` | `ReactNode` | — | The way into the next action, e.g. a button.<br>Shown in: [Nothing yet](#emptystate), [Say why a filter found nothing](#emptystate), [Cards on a dashboard (Card)](#card) and 1 more |
|
|
13328
13328
|
| `icon` | `ReactNode` | — | Optional symbol above the title.<br>Shown in: [Mark good news in a panel](#emptystate) |
|
|
13329
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
13329
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
13330
13330
|
|
|
13331
13331
|
Also takes every attribute of `<div>` – without `title`.
|
|
13332
13332
|
|
|
@@ -13499,7 +13499,7 @@ export default function ACalculation() {
|
|
|
13499
13499
|
- No interactive content and no rich layout inside: it is read, never used.
|
|
13500
13500
|
- No placement option: it stands above its element and flips below where there is no room.
|
|
13501
13501
|
|
|
13502
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13502
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13503
13503
|
|
|
13504
13504
|
### Popover
|
|
13505
13505
|
|
|
@@ -13694,6 +13694,46 @@ export default function ACardAtTheEdge() {
|
|
|
13694
13694
|
}
|
|
13695
13695
|
```
|
|
13696
13696
|
|
|
13697
|
+
##### A setting in a panel
|
|
13698
|
+
|
|
13699
|
+
A panel whose first control is a choice opens with the focus on the chosen option, the one Tab would reach, so Space confirms what is shown and changes nothing.
|
|
13700
|
+
|
|
13701
|
+
```tsx
|
|
13702
|
+
import { useRef, useState } from "react";
|
|
13703
|
+
import { Button, FormField, Popover, SegmentedControl, Stack, Text } from "@umriss-ui/core";
|
|
13704
|
+
|
|
13705
|
+
export default function ASettingInAPanel() {
|
|
13706
|
+
const anchor = useRef<HTMLButtonElement>(null);
|
|
13707
|
+
const [open, setOpen] = useState(false);
|
|
13708
|
+
const [density, setDensity] = useState("spacious");
|
|
13709
|
+
|
|
13710
|
+
return (
|
|
13711
|
+
<Stack gap={3} align="flex-start">
|
|
13712
|
+
<Button ref={anchor} aria-expanded={open} onClick={() => setOpen((o) => !o)}>
|
|
13713
|
+
Density
|
|
13714
|
+
</Button>
|
|
13715
|
+
<Popover open={open} onOpenChange={setOpen} anchorRef={anchor} role="dialog" aria-label="Density" restoreFocus width={320}>
|
|
13716
|
+
<Stack gap={3} style={{ padding: "var(--u-space-4)" }}>
|
|
13717
|
+
<FormField label="Row density">
|
|
13718
|
+
<SegmentedControl
|
|
13719
|
+
fill
|
|
13720
|
+
value={density}
|
|
13721
|
+
onChange={setDensity}
|
|
13722
|
+
options={[
|
|
13723
|
+
{ value: "compact", label: "Compact" },
|
|
13724
|
+
{ value: "regular", label: "Regular" },
|
|
13725
|
+
{ value: "spacious", label: "Spacious" },
|
|
13726
|
+
]}
|
|
13727
|
+
/>
|
|
13728
|
+
</FormField>
|
|
13729
|
+
</Stack>
|
|
13730
|
+
</Popover>
|
|
13731
|
+
<Text size="sm">Density: {density}</Text>
|
|
13732
|
+
</Stack>
|
|
13733
|
+
);
|
|
13734
|
+
}
|
|
13735
|
+
```
|
|
13736
|
+
|
|
13697
13737
|
#### When to use something else
|
|
13698
13738
|
|
|
13699
13739
|
- A list of actions → Menu
|
|
@@ -13712,26 +13752,26 @@ export default function ACardAtTheEdge() {
|
|
|
13712
13752
|
|
|
13713
13753
|
| Prop | Type | Default | Description |
|
|
13714
13754
|
|---|---|---|---|
|
|
13715
|
-
| `open` *required* | `boolean` | — | Whether the surface stands. Controlled: the popover never opens itself.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and
|
|
13716
|
-
| `onOpenChange` *required* | `(open: boolean) => void` | — | Reports every wish to change the state – outside click, Escape, scrolling. Whether it closes as a result is the caller's decision.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and
|
|
13717
|
-
| `anchorRef` *required* | `RefObject<HTMLElement \| null>` | — | Trigger the panel hangs from (the reference for the position).<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and
|
|
13755
|
+
| `open` *required* | `boolean` | — | Whether the surface stands. Controlled: the popover never opens itself.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 2 more |
|
|
13756
|
+
| `onOpenChange` *required* | `(open: boolean) => void` | — | Reports every wish to change the state – outside click, Escape, scrolling. Whether it closes as a result is the caller's decision.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 2 more |
|
|
13757
|
+
| `anchorRef` *required* | `RefObject<HTMLElement \| null>` | — | Trigger the panel hangs from (the reference for the position).<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 2 more |
|
|
13718
13758
|
| `focusRef` | `RefObject<HTMLElement \| null>` | `anchorRef` | Element that receives the focus on closing. Needed where the anchor is a non-focusable shell and the actual trigger sits inside it. |
|
|
13719
13759
|
| `insideRefs` | `ReadonlyArray<RefObject<HTMLElement \| null>>` | — | Further elements whose click does not count as an outside click (e.g. the clear ×). |
|
|
13720
13760
|
| `align` | `Align`<br>`"start" \| "end" \| "center"` | `"start"` | Where the surface points as long as there is room. Where there is none, it flips to the other side and clamps to the edge of the window.<br>Shown in: [A card at the right edge](#popover) |
|
|
13721
13761
|
| `offset` | `number` | — | Distance between trigger and surface, in pixels.<br>Shown in: [A card at the right edge](#popover) |
|
|
13722
|
-
| `width` | `"anchor" \| "auto" \| number` | `"auto"` | "anchor" takes over the width of the trigger, a number fixes it.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and
|
|
13762
|
+
| `width` | `"anchor" \| "auto" \| number` | `"auto"` | "anchor" takes over the width of the trigger, a number fixes it.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 2 more |
|
|
13723
13763
|
| `minWidth` | `number` | — | Minimum width when the width comes from the anchor.<br>Shown in: [Take the width of the trigger](#popover) |
|
|
13724
|
-
| `restoreFocus` | `boolean` | `true` | Give the focus back to the trigger on closing.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) |
|
|
13764
|
+
| `restoreFocus` | `boolean` | `true` | Give the focus back to the trigger on closing.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 1 more |
|
|
13725
13765
|
| `hideOnScroll` | `boolean` | `false` | Close on scrolling instead of travelling along – for tooltips.<br>Shown in: [A card at the right edge](#popover) |
|
|
13726
13766
|
| `id` | `string` | — | Fixed id of the surface – for `aria-controls` on the trigger. |
|
|
13727
|
-
| `children` *required* | `ReactNode` | — | What stands in the surface.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and
|
|
13767
|
+
| `children` *required* | `ReactNode` | — | What stands in the surface.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 2 more |
|
|
13728
13768
|
|
|
13729
13769
|
###### Accessibility
|
|
13730
13770
|
|
|
13731
13771
|
| Prop | Type | Default | Description |
|
|
13732
13772
|
|---|---|---|---|
|
|
13733
|
-
| `role` | `"dialog" \| "listbox" \| "menu" \| "tooltip"` | — | Role of the surface. Omit where an inner element carries it.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and
|
|
13734
|
-
| `aria-label` | `string` | — | Accessible name of the surface. Needed as soon as it carries a `role`: a named role without a name is a riddle for a screen reader.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and
|
|
13773
|
+
| `role` | `"dialog" \| "listbox" \| "menu" \| "tooltip"` | — | Role of the surface. Omit where an inner element carries it.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 2 more |
|
|
13774
|
+
| `aria-label` | `string` | — | Accessible name of the surface. Needed as soon as it carries a `role`: a named role without a name is a riddle for a screen reader.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 2 more |
|
|
13735
13775
|
|
|
13736
13776
|
###### Styling
|
|
13737
13777
|
|
|
@@ -13754,7 +13794,7 @@ type Align = "start" | "end" | "center";
|
|
|
13754
13794
|
- No padding and no inner layout: it brings the overlay's surface - ground, corners, shadow - and the rest is yours. A `className` restates the surface where one needs another.
|
|
13755
13795
|
- It does not trap focus; a surface the user must answer is a [Modal](#modal).
|
|
13756
13796
|
|
|
13757
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13797
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13758
13798
|
|
|
13759
13799
|
### Menu
|
|
13760
13800
|
|
|
@@ -13941,7 +13981,7 @@ export default function PerRow() {
|
|
|
13941
13981
|
| Prop | Type | Default | Description |
|
|
13942
13982
|
|---|---|---|---|
|
|
13943
13983
|
| `tone` | `"default" \| "danger"` | `"default"` | "danger" for destructive actions.<br>Shown in: [Run actions from a trigger](#menu), [Disable an entry, mark a destructive one](#menu), [Act on a row](#menu) and 5 more |
|
|
13944
|
-
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
13984
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
13945
13985
|
|
|
13946
13986
|
###### Events
|
|
13947
13987
|
|
|
@@ -13955,7 +13995,7 @@ Also takes every attribute of `<button>` – without `onSelect`.
|
|
|
13955
13995
|
|
|
13956
13996
|
- No submenus, no checkable entries and no type-ahead.
|
|
13957
13997
|
|
|
13958
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13998
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13959
13999
|
|
|
13960
14000
|
### ContextMenu
|
|
13961
14001
|
|
|
@@ -14172,7 +14212,7 @@ export default function OnARow() {
|
|
|
14172
14212
|
- It listens to no right-click itself: the element and the point are yours, through the hook.
|
|
14173
14213
|
- No submenus, no checkable entries and no type-ahead, as in the menu.
|
|
14174
14214
|
|
|
14175
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14215
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14176
14216
|
|
|
14177
14217
|
### Modal
|
|
14178
14218
|
|
|
@@ -14500,7 +14540,7 @@ export default function ADateInAWindow() {
|
|
|
14500
14540
|
| `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), [Sizes](#modal), [Scroll long content](#modal) and 12 more |
|
|
14501
14541
|
| `size` | `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), [Scroll long content](#modal), [Guard unsaved changes](#modal) and 3 more |
|
|
14502
14542
|
| `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop.<br>Shown in: [A window that must be answered](#modal) |
|
|
14503
|
-
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
14543
|
+
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
14504
14544
|
|
|
14505
14545
|
###### Events
|
|
14506
14546
|
|
|
@@ -14517,7 +14557,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
14517
14557
|
| `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), [Sizes](#modal), [Scroll long content](#modal) and 12 more |
|
|
14518
14558
|
| `description` | `ReactNode` | — | One sentence below the heading: what is to be decided here.<br>Shown in: [A window that holds focus](#modal), [Scroll long content](#modal), [Guard unsaved changes](#modal) and 8 more |
|
|
14519
14559
|
| `hideClose` | `boolean` | `false` | Hides the close button.<br>Shown in: [A window that must be answered](#modal) |
|
|
14520
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
14560
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
14521
14561
|
|
|
14522
14562
|
Also takes every attribute of `<div>` – without `title`.
|
|
14523
14563
|
|
|
@@ -14535,7 +14575,7 @@ type ModalSize = "sm" | "md" | "lg";
|
|
|
14535
14575
|
|
|
14536
14576
|
- No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
|
|
14537
14577
|
|
|
14538
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14578
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14539
14579
|
|
|
14540
14580
|
### Drawer
|
|
14541
14581
|
|
|
@@ -14918,7 +14958,7 @@ export default function AnAppShell() {
|
|
|
14918
14958
|
| `side` | `"right" \| "left"` | `"right"` | The edge the drawer stands at and enters from.<br>Shown in: [From the left, and wider](#drawer), [An app shell](#drawer) |
|
|
14919
14959
|
| `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), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and 12 more |
|
|
14920
14960
|
| `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop. From `ModalProps`.<br>Shown in: [A window that must be answered (Modal)](#modal) |
|
|
14921
|
-
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
14961
|
+
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
14922
14962
|
|
|
14923
14963
|
###### Events
|
|
14924
14964
|
|
|
@@ -14933,7 +14973,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
14933
14973
|
- Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
|
|
14934
14974
|
- Only the left and right edges; nothing slides in from the top or bottom.
|
|
14935
14975
|
|
|
14936
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14976
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14937
14977
|
|
|
14938
14978
|
### ConfirmDialog
|
|
14939
14979
|
|
|
@@ -15095,7 +15135,7 @@ export default function WhileItRuns() {
|
|
|
15095
15135
|
| `cancelLabel` | `string` | the wording's "Cancel" | Label of the cancelling button.<br>Shown in: [Guard unsaved changes (Modal)](#modal) |
|
|
15096
15136
|
| `tone` | `"primary" \| "danger"` | `"primary"` | "danger" for destructive actions.<br>Shown in: [The one question](#confirmdialog), [Ask before a commitment](#confirmdialog), [Stay open while it runs](#confirmdialog) and 2 more |
|
|
15097
15137
|
| `loading` | `boolean` | `false` | Locks the actions while the confirmation is running.<br>Shown in: [Stay open while it runs](#confirmdialog) |
|
|
15098
|
-
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
15138
|
+
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
15099
15139
|
|
|
15100
15140
|
###### Events
|
|
15101
15141
|
|
|
@@ -15110,7 +15150,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
15110
15150
|
|
|
15111
15151
|
- A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
|
|
15112
15152
|
|
|
15113
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15153
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15114
15154
|
|
|
15115
15155
|
### CommandPalette
|
|
15116
15156
|
|
|
@@ -15384,7 +15424,7 @@ export default function SearchHundredsOfPages() {
|
|
|
15384
15424
|
| `items` *required* | `readonly ``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), [Show recent choices first](#commandpalette), [Open it with a shortcut](#commandpalette) and 2 more |
|
|
15385
15425
|
| `restingItems` | `readonly ``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), [Show recent choices first](#commandpalette) |
|
|
15386
15426
|
| `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) |
|
|
15387
|
-
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
15427
|
+
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
15388
15428
|
|
|
15389
15429
|
###### Events
|
|
15390
15430
|
|
|
@@ -15412,7 +15452,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
15412
15452
|
- No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
|
|
15413
15453
|
- No nested steps or arguments: a command that needs input opens your own form after it is chosen.
|
|
15414
15454
|
|
|
15415
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15455
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15416
15456
|
|
|
15417
15457
|
## Navigation
|
|
15418
15458
|
|
|
@@ -15711,7 +15751,7 @@ export default function BrowseDownAndBackUp() {
|
|
|
15711
15751
|
| Prop | Type | Default | Description |
|
|
15712
15752
|
|---|---|---|---|
|
|
15713
15753
|
| `items` *required* | `readonly ``BreadcrumbEntry``[]` | — | The trail from the root to the current page; the last is the page.<br>Shown in: [A trail](#breadcrumb), [Route it yourself](#breadcrumb), [Fold when narrow](#breadcrumb) and 3 more |
|
|
15714
|
-
| `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
15754
|
+
| `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
15715
15755
|
|
|
15716
15756
|
Also takes every attribute of the rendered element.
|
|
15717
15757
|
|
|
@@ -15732,7 +15772,7 @@ Also takes every attribute of the rendered element.
|
|
|
15732
15772
|
|
|
15733
15773
|
- It neither routes nor reads the address: the trail is what you pass.
|
|
15734
15774
|
|
|
15735
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15775
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15736
15776
|
|
|
15737
15777
|
### Tabs
|
|
15738
15778
|
|
|
@@ -16070,7 +16110,7 @@ export default function MoreTabsThanRoom() {
|
|
|
16070
16110
|
|---|---|---|---|
|
|
16071
16111
|
| `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), [Loading and empty panels](#tabs), [An invoice in tabs](#tabs) and 2 more |
|
|
16072
16112
|
| `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) |
|
|
16073
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
16113
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
16074
16114
|
|
|
16075
16115
|
###### Events
|
|
16076
16116
|
|
|
@@ -16085,7 +16125,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
16085
16125
|
| Prop | Type | Default | Description |
|
|
16086
16126
|
|---|---|---|---|
|
|
16087
16127
|
| `value` *required* | `string` | — | The value this tab reports – and under which its panel stands.<br>Shown in: [One view at a time](#tabs), [Keep the tab in the address](#tabs), [Loading and empty panels](#tabs) and 3 more |
|
|
16088
|
-
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
16128
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
16089
16129
|
|
|
16090
16130
|
Also takes every attribute of `<button>`.
|
|
16091
16131
|
|
|
@@ -16094,7 +16134,7 @@ Also takes every attribute of `<button>`.
|
|
|
16094
16134
|
| Prop | Type | Default | Description |
|
|
16095
16135
|
|---|---|---|---|
|
|
16096
16136
|
| `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), [Keep the tab in the address](#tabs), [Loading and empty panels](#tabs) and 3 more |
|
|
16097
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
16137
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
16098
16138
|
|
|
16099
16139
|
Also takes every attribute of `<div>`.
|
|
16100
16140
|
|
|
@@ -16102,7 +16142,7 @@ Also takes every attribute of `<div>`.
|
|
|
16102
16142
|
|
|
16103
16143
|
- More tabs than fit scroll sideways within the list; there is no overflow menu, and no closing or reordering of tabs.
|
|
16104
16144
|
|
|
16105
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16145
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16106
16146
|
|
|
16107
16147
|
### Accordion
|
|
16108
16148
|
|
|
@@ -16326,7 +16366,7 @@ export default function LongSettingsInSections() {
|
|
|
16326
16366
|
| `defaultValue` | `readonly string[]` | `[]` | Uncontrolled: the sections open at the start.<br>Shown in: [One section at a time](#accordion), [Several open, one locked](#accordion), [Long settings in sections](#accordion) |
|
|
16327
16367
|
| `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) |
|
|
16328
16368
|
| `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), [Long settings in sections](#accordion) |
|
|
16329
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
16369
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
16330
16370
|
|
|
16331
16371
|
###### Events
|
|
16332
16372
|
|
|
@@ -16343,7 +16383,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
16343
16383
|
| `value` *required* | `string` | — | What names the section in the accordion's `value`.<br>Shown in: [One section at a time](#accordion), [Several open, one locked](#accordion), [Open and fold all](#accordion) and 1 more |
|
|
16344
16384
|
| `title` *required* | `ReactNode` | — | The header's text. It names the section's region too.<br>Shown in: [One section at a time](#accordion), [Several open, one locked](#accordion), [Open and fold all](#accordion) and 1 more |
|
|
16345
16385
|
| `disabled` | `boolean` | `false` | A section that cannot be opened now; its header stays in the list.<br>Shown in: [Several open, one locked](#accordion) |
|
|
16346
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
16386
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
16347
16387
|
|
|
16348
16388
|
Also takes every attribute of `<div>` – without `title`.
|
|
16349
16389
|
|
|
@@ -16351,7 +16391,7 @@ Also takes every attribute of `<div>` – without `title`.
|
|
|
16351
16391
|
|
|
16352
16392
|
- A folded section's content stays rendered; for heavy content, render it only while its section is open.
|
|
16353
16393
|
|
|
16354
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16394
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16355
16395
|
|
|
16356
16396
|
### Stepper
|
|
16357
16397
|
|
|
@@ -16567,7 +16607,7 @@ Under forced colours the lines between the steps take the system's text colour,
|
|
|
16567
16607
|
| `steps` *required* | `readonly ``StepperStep``[]` | — | The steps in the order they are walked.<br>Shown in: [Where a procedure stands](#stepper), [Steps in a column](#stepper), [A failed step](#stepper) and 6 more |
|
|
16568
16608
|
| `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), [Steps in a column](#stepper), [A failed step](#stepper) and 6 more |
|
|
16569
16609
|
| `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), [A failed step](#stepper), [An invoice in tabs (Tabs)](#tabs) |
|
|
16570
|
-
| `ref` | `Ref<HTMLOListElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [Move on yourself](#stepper), [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield) and
|
|
16610
|
+
| `ref` | `Ref<HTMLOListElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [Move on yourself](#stepper), [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield) and 5 more |
|
|
16571
16611
|
|
|
16572
16612
|
Also takes every attribute of the rendered element.
|
|
16573
16613
|
|
|
@@ -16584,7 +16624,7 @@ Also takes every attribute of the rendered element.
|
|
|
16584
16624
|
- The steps are read, not navigated: no keys, no clicks, and no next or back of its own. Moving on is your application's decision, by a done step's label as a button or by buttons of its own.
|
|
16585
16625
|
- No branching or optional steps; pass the steps that apply.
|
|
16586
16626
|
|
|
16587
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16627
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16588
16628
|
|
|
16589
16629
|
### TreeView
|
|
16590
16630
|
|
|
@@ -17144,7 +17184,7 @@ export default function SearchCheckAndReveal() {
|
|
|
17144
17184
|
| `tree` *required* | `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), [Tick a selection](#treeview), [Load branches on demand](#treeview) and 5 more |
|
|
17145
17185
|
| `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), [With an error](#treeview), [Search, check and reveal in a large tree](#treeview) |
|
|
17146
17186
|
| `children` *required* | `(entry: ``FlatteningEntry``<K, S>) => ReactNode` | — | What the node says.<br>Shown in: [A tree](#treeview), [Tick a selection](#treeview), [Load branches on demand](#treeview) and 5 more |
|
|
17147
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
17187
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
17148
17188
|
|
|
17149
17189
|
###### Accessibility
|
|
17150
17190
|
|
|
@@ -17164,7 +17204,7 @@ Also takes every attribute of `<div>` – without `children`.
|
|
|
17164
17204
|
| `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), [Configurator (Input)](#input), [With an error (Input)](#input) |
|
|
17165
17205
|
| `numeric` | `boolean` | `false` | Right-aligned tabular figures in Geist Mono, e.g. for key figures. From `InputProps`.<br>Shown in: [Configurator (Input)](#input), [Align reference numbers (Input)](#input), [Take a delivery address (Input)](#input) and 2 more |
|
|
17166
17206
|
| `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), [Clear the field (Input)](#input) |
|
|
17167
|
-
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
17207
|
+
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
17168
17208
|
|
|
17169
17209
|
###### Events
|
|
17170
17210
|
|
|
@@ -17262,7 +17302,7 @@ to render and the heights of the filler rows around it.
|
|
|
17262
17302
|
- No dragging nodes to rearrange them.
|
|
17263
17303
|
- It fetches nothing and handles no loading errors: retries and messages stay in your application ([ADR-0005](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0005-what-cannot-be-checked.md)).
|
|
17264
17304
|
|
|
17265
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17305
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17266
17306
|
|
|
17267
17307
|
### Benchmark
|
|
17268
17308
|
|
|
@@ -17719,7 +17759,7 @@ The keys of [Button](#button) apply here.
|
|
|
17719
17759
|
|---|---|---|---|
|
|
17720
17760
|
| `tone` | `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), [Tones](#badge), [Counters](#badge) and 20 more |
|
|
17721
17761
|
| `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), [Counters](#badge), [Fold the body (Card)](#card) and 1 more |
|
|
17722
|
-
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
17762
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
17723
17763
|
|
|
17724
17764
|
Also takes every attribute of `<span>`.
|
|
17725
17765
|
|
|
@@ -17739,7 +17779,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
17739
17779
|
- It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
|
|
17740
17780
|
- It counts nothing itself: capping at “99+” is yours.
|
|
17741
17781
|
|
|
17742
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17782
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17743
17783
|
|
|
17744
17784
|
### Tag
|
|
17745
17785
|
|
|
@@ -17967,7 +18007,7 @@ export default function AFilterBar() {
|
|
|
17967
18007
|
| `children` *required* | `ReactNode` | — | The text of the label – short enough to stand on one line.<br>Shown in: [Configurator](#tag), [A tag](#tag), [Tones](#tag) and 5 more |
|
|
17968
18008
|
| `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) |
|
|
17969
18009
|
| `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), [Remove tags from a group](#tag) |
|
|
17970
|
-
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
18010
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
17971
18011
|
|
|
17972
18012
|
###### Events
|
|
17973
18013
|
|
|
@@ -17981,7 +18021,7 @@ Also takes every attribute of `<span>` – without `onRemove`.
|
|
|
17981
18021
|
|
|
17982
18022
|
| Prop | Type | Default | Description |
|
|
17983
18023
|
|---|---|---|---|
|
|
17984
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
18024
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
17985
18025
|
|
|
17986
18026
|
###### Accessibility
|
|
17987
18027
|
|
|
@@ -18006,7 +18046,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
18006
18046
|
- No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
|
|
18007
18047
|
- Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
|
|
18008
18048
|
|
|
18009
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
18049
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
18010
18050
|
|
|
18011
18051
|
### Stat
|
|
18012
18052
|
|
|
@@ -18817,7 +18857,7 @@ It announces nothing: a value that changes or a verdict that turns is read when
|
|
|
18817
18857
|
| `asOf` | `Date \| number \| null` | — | When the value was true – not when it was fetched.<br>Shown in: [Show how fresh a value is](#stat), [Watch the services that page at night](#stat), [Say how far the source vouches for a value](#stat) and 1 more |
|
|
18818
18858
|
| `ages` | `FreshnessAges` | — | Without ages there is no freshness display and no cadence.<br>Shown in: [Show how fresh a value is](#stat), [Watch the services that page at night](#stat), [Say how far the source vouches for a value](#stat) and 1 more |
|
|
18819
18859
|
| `quality` | `Quality`<br>`"good" \| "uncertain" \| "bad"` | — | How far the value's source vouches for it. Absent and `good` show nothing; `uncertain` and `bad` say so in a word, in the tile's name and in a line under the figure. The verdict and the freshness stay.<br>Shown in: [Say how far the source vouches for a value](#stat) |
|
|
18820
|
-
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
18860
|
+
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
18821
18861
|
|
|
18822
18862
|
Also takes every attribute of `<div>` – without `children`.
|
|
18823
18863
|
|
|
@@ -18895,7 +18935,7 @@ type Severity = "warning" | "alarm";
|
|
|
18895
18935
|
- No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
|
|
18896
18936
|
- It fetches and polls nothing: freshness is judged from the `asOf` you give it.
|
|
18897
18937
|
|
|
18898
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
18938
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
18899
18939
|
|
|
18900
18940
|
### Meter
|
|
18901
18941
|
|
|
@@ -19047,7 +19087,7 @@ It is no live region: a new value is read when a reader reaches the bar. Under f
|
|
|
19047
19087
|
| `tone` | `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), [Tones](#meter), [Compare a team's capacity](#meter) and 2 more |
|
|
19048
19088
|
| `showLabel` | `boolean` | `true` | The percentage to the right of the bar (Geist Mono).<br>Shown in: [Configurator](#meter), [A share](#meter), [Compare a team's capacity](#meter) and 2 more |
|
|
19049
19089
|
| `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), [Tones](#meter), [Compare a team's capacity](#meter) and 2 more |
|
|
19050
|
-
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
19090
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
19051
19091
|
|
|
19052
19092
|
Also takes every attribute of `<span>`.
|
|
19053
19093
|
|
|
@@ -19065,7 +19105,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
19065
19105
|
|
|
19066
19106
|
- No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
|
|
19067
19107
|
|
|
19068
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19108
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
19069
19109
|
|
|
19070
19110
|
### Sparkline
|
|
19071
19111
|
|
|
@@ -19315,7 +19355,7 @@ export default function InATable() {
|
|
|
19315
19355
|
| `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), [Size and tone](#sparkline), [One above the other (Splitter)](#splitter) and 1 more |
|
|
19316
19356
|
| `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), [Size and tone](#sparkline), [One above the other (Splitter)](#splitter) and 1 more |
|
|
19317
19357
|
| `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), [Size and tone](#sparkline) |
|
|
19318
|
-
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
19358
|
+
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
19319
19359
|
|
|
19320
19360
|
Also takes every attribute of `<span>`.
|
|
19321
19361
|
|
|
@@ -19323,7 +19363,7 @@ Also takes every attribute of `<span>`.
|
|
|
19323
19363
|
|
|
19324
19364
|
- No axes, labels, tooltip or points to hover: the value stands beside it.
|
|
19325
19365
|
|
|
19326
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19366
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.48.0/docs/adr/0032-what-umriss-is-not.md).
|
|
19327
19367
|
|
|
19328
19368
|
## API index
|
|
19329
19369
|
|
|
@@ -19528,7 +19568,7 @@ Used on [Sizes](#sizes) and [FileInput](#fileinput).
|
|
|
19528
19568
|
|
|
19529
19569
|
[FormField](#formfield) – The frame around a field: its label, a hint below it and the error that replaces the hint. Wrap every field in one, so the question, the help and the problem are read out together.
|
|
19530
19570
|
|
|
19531
|
-
Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [Sizes](#sizes), [Language](#language), [Button](#button), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [Checkbox](#checkbox), [Switch](#switch), [RadioGroup](#radiogroup), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Alert](#alert), [Toast](#toast-1), [Modal](#modal), [Breadcrumb](#breadcrumb), [Accordion](#accordion) and [TreeView](#treeview).
|
|
19571
|
+
Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [Sizes](#sizes), [Language](#language), [Button](#button), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [Checkbox](#checkbox), [Switch](#switch), [RadioGroup](#radiogroup), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Alert](#alert), [Toast](#toast-1), [Popover](#popover), [Modal](#modal), [Breadcrumb](#breadcrumb), [Accordion](#accordion) and [TreeView](#treeview).
|
|
19532
19572
|
|
|
19533
19573
|
##### `FormFieldBoundary`
|
|
19534
19574
|
|
|
@@ -19745,7 +19785,7 @@ Used on [Scenarios](#scenarios), [Sizes](#sizes) and [RadioGroup](#radiogroup).
|
|
|
19745
19785
|
|
|
19746
19786
|
[SegmentedControl](#segmentedcontrol) – One choice out of a few short possibilities, drawn as one control with a segment for each (segmented button, button toggle): a sunken track, the choice lifted out of it. As tall as a select, so it stands in a row of fields too.
|
|
19747
19787
|
|
|
19748
|
-
Used on [Scenarios](#scenarios), [Sizes](#sizes)
|
|
19788
|
+
Used on [Scenarios](#scenarios), [Sizes](#sizes), [SegmentedControl](#segmentedcontrol) and [Popover](#popover).
|
|
19749
19789
|
|
|
19750
19790
|
##### `Select`
|
|
19751
19791
|
|
|
@@ -20616,6 +20656,8 @@ takes it through `useDensityFor` as the default for its `density` - in
|
|
|
20616
20656
|
type Density = "comfortable" | "compact";
|
|
20617
20657
|
```
|
|
20618
20658
|
|
|
20659
|
+
Used on [Popover](#popover).
|
|
20660
|
+
|
|
20619
20661
|
##### `Direction`
|
|
20620
20662
|
|
|
20621
20663
|
Where the active node moves: up and down the visible rows, in and out of a
|
|
@@ -20758,7 +20800,7 @@ The props of a glyph: an SVG's attributes and its edge length.
|
|
|
20758
20800
|
| Prop | Type | Default | Description |
|
|
20759
20801
|
|---|---|---|---|
|
|
20760
20802
|
| `size` | `number` | `12` | Edge length in pixels. The default is the size the glyph is drawn at in the components. |
|
|
20761
|
-
| `ref` | `Ref<SVGSVGElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
20803
|
+
| `ref` | `Ref<SVGSVGElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
20762
20804
|
|
|
20763
20805
|
Also takes every attribute of `<svg>` – without `children`, `viewBox`.
|
|
20764
20806
|
|
|
@@ -21047,7 +21089,7 @@ The `ref` of a component: the element it renders at its root.
|
|
|
21047
21089
|
|
|
21048
21090
|
| Prop | Type | Default | Description |
|
|
21049
21091
|
|---|---|---|---|
|
|
21050
|
-
| `ref` | `Ref<E> \| undefined` | — | Receives the component's root element.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and
|
|
21092
|
+
| `ref` | `Ref<E> \| undefined` | — | Receives the component's root element.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
21051
21093
|
|
|
21052
21094
|
##### `RowPlacement`
|
|
21053
21095
|
|