@umriss-ui/core 0.47.1 → 0.49.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 +43 -0
- package/README.md +15 -6
- package/dist/core.css +1 -1
- package/dist/core.js +3900 -3815
- package/dist/de.d.ts +24 -0
- package/dist/formats-dd9LbvXt.js +102 -0
- package/dist/index.d.ts +40 -7
- package/dist/touch-scale.css +14 -0
- package/dist/wording/de.js +25 -11
- package/docs/llms-full.md +315 -142
- package/package.json +9 -2
- package/dist/formats-Bo0qM01D.js +0 -97
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.49.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
|
|
|
@@ -2694,6 +2694,8 @@ The command installs the package alone: React 19 or newer is its only peer and s
|
|
|
2694
2694
|
|
|
2695
2695
|
Colours, sizes, fonts and light and dark are tokens, `--u-…` custom properties you override with ordinary CSS: [Theming](#theming) lists them. The fonts are the application's: the tokens name Geist first and fall back to the system fonts, and nothing is loaded. For Geist, install `@fontsource/geist-sans` (400, 500, 600) and `@fontsource/geist-mono` (400).
|
|
2696
2696
|
|
|
2697
|
+
**Touch.** Under a finger (a coarse primary pointer) hit areas are at least 24 × 24 px, a field's text is 16 px and behaviours follow the gesture; a `md` control stays 32 px and a `sm` one 26 px. To grow them to 44 px, the height WCAG 2.5.5 names, import `@umriss-ui/core/touch-scale.css` once, anywhere in the entry file: before or after core's own styles makes no difference. Every `md` and `sm` control grows with it - buttons, fields, selects, Tabs, and the table's toolbar, pagination and row actions and the alarms' Acknowledge and Shelve buttons. What does not grow: `xs`, menu rows, calendar days, checkboxes, switches and radios; they keep their size and their 24 × 24 px hit areas ([ADR-0079](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0079-the-size-is-the-applications-the-hit-area-the-librarys.md)).
|
|
2698
|
+
|
|
2697
2699
|
#### Examples
|
|
2698
2700
|
|
|
2699
2701
|
##### First component
|
|
@@ -2725,7 +2727,7 @@ From `ButtonProps` — the full table stands on [Button](#button).
|
|
|
2725
2727
|
- No font is loaded or bundled.
|
|
2726
2728
|
- Chrome 123, Firefox 120 and Safari 17.5 or newer; an older browser discards the tokens and shows the components unstyled.
|
|
2727
2729
|
|
|
2728
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2730
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2729
2731
|
|
|
2730
2732
|
### UmrissProvider
|
|
2731
2733
|
|
|
@@ -2936,7 +2938,7 @@ type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "
|
|
|
2936
2938
|
|
|
2937
2939
|
- No theme and no default variants for components: a component is configured by its own props.
|
|
2938
2940
|
|
|
2939
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2941
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2940
2942
|
|
|
2941
2943
|
## Customising
|
|
2942
2944
|
|
|
@@ -2950,6 +2952,8 @@ The library writes its CSS in three cascade layers, `umriss.tokens`, `umriss.bas
|
|
|
2950
2952
|
|
|
2951
2953
|
Every token with two values is written `light-dark(<light>, <dark>)` and resolves against the `color-scheme` the element inherits. The library sets `color-scheme` nowhere: your `html.dark { color-scheme: dark }`, or your theme library's, switches the components, nothing set means light, and an element with its own `color-scheme` is a region in the other mode. An override written `light-dark(…)` follows the mode; a single colour holds in both.
|
|
2952
2954
|
|
|
2955
|
+
**A lowered build keeps a JavaScript dark mode light.** A mode set in CSS works in every build. Where a build lowers `light-dark()` (Vite 8 and Next 16 by default), a mode set only from JavaScript or through a variable - next-themes, MUI, Mantine, an inline `style` - stays light. Then write one rule such as `[data-theme="dark"] { color-scheme: dark; }`, or raise the CSS target to the browser floor: Vite `build: { cssTarget: ["chrome123", "firefox120", "safari17.5"] }`, Next a `browserslist` in `package.json` (`"chrome >= 123", "firefox >= 120", "safari >= 17.5"`). In development core warns once when it sees this.
|
|
2956
|
+
|
|
2953
2957
|
Style through tokens only. The tokens in the table are the styling API and change only with an entry in the changelog; the `data-*` attributes and class names in the components' markup are internal and may change in any version ([ADR-0045](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0045-tokens-are-the-styling-api-data-attributes-are-not.md)). Where no token reaches what you want to change, ask for one: a selector on the markup breaks without warning.
|
|
2954
2958
|
|
|
2955
2959
|
#### Examples
|
|
@@ -3215,9 +3219,9 @@ One look for every component. A soft glow would read as a second, shadowy border
|
|
|
3215
3219
|
| `--u-radius-lg` | `12px` | same | — |
|
|
3216
3220
|
| `--u-radius-xl` | `18px` | same | One step above the card, for the command palette. It is meant to be a system window and not a form panel, and the radius plays its part in that. Both themes share it - shape is not a question of theme. The sequence 4-6-8-12-18 continues the factor of 1.5 of the steps above. |
|
|
3217
3221
|
| `--u-radius-full` | `999px` | same | — |
|
|
3218
|
-
| `--u-control-height` | `
|
|
3219
|
-
| `--u-control-height-sm` | `
|
|
3220
|
-
| `--u-control-height-xs` | `
|
|
3222
|
+
| `--u-control-height` | `2rem` | same | — |
|
|
3223
|
+
| `--u-control-height-sm` | `1.625rem` | same | — |
|
|
3224
|
+
| `--u-control-height-xs` | `1.125rem` | same | The small control on a dense surface - a compact table's row draft and actions (`dense` in the shared own styles). |
|
|
3221
3225
|
| `--u-icon-size` | `14px` | same | The icon in a button, beside a label or alone (CONTEXT.md, "Icon"): the button decides its size, one step per control height. |
|
|
3222
3226
|
| `--u-icon-size-sm` | `12px` | same | — |
|
|
3223
3227
|
| `--u-button-padding` | `10px` | same | The room left and right of a button's label, one step per control height. What stands beside a quiet button and has to align with its word hangs out by exactly this much (the date pickers' foot, the MultiSelect's quick keys) - so they read it here instead of repeating the number. |
|
|
@@ -3423,7 +3427,7 @@ From `BadgeProps` — the full table stands on [Badge](#badge).
|
|
|
3423
3427
|
- 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
3428
|
- 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
3429
|
|
|
3426
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3430
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3427
3431
|
|
|
3428
3432
|
### Sizes
|
|
3429
3433
|
|
|
@@ -3841,7 +3845,7 @@ type ControlSize = "sm" | "md";
|
|
|
3841
3845
|
- 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
3846
|
- 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
3847
|
|
|
3844
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3848
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3845
3849
|
|
|
3846
3850
|
### Language
|
|
3847
3851
|
|
|
@@ -4234,6 +4238,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4234
4238
|
|---|---|---|---|
|
|
4235
4239
|
| `columns` | Columns | Spalten | The column menu's button. |
|
|
4236
4240
|
| `arrangeColumns` | Show, hide and arrange columns | Spalten ein- und ausblenden, anordnen | Accessible name of the list in the column menu. |
|
|
4241
|
+
| `fitAllColumns` | Fit all columns | Alle Spalten anpassen | The column menu's button that sets every column to the width of its content. |
|
|
4237
4242
|
| `columnForward(column)` | `` `Move ${column} forward` `` | `` `${column} nach vorn` `` | The two buttons that move a column in the column menu. |
|
|
4238
4243
|
| `columnBackward(column)` | `` `Move ${column} backward` `` | `` `${column} nach hinten` `` | — |
|
|
4239
4244
|
| `pinColumnToStart(column)` | `` `Pin ${column} to start` `` | `` `${column} am Anfang fixieren` `` | The column menu's pin keys: to a side, and back when it is pinned there. |
|
|
@@ -4323,6 +4328,18 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4323
4328
|
| `rangeFrom(from)` | `` `from ${from}` `` | `` `ab ${from}` `` | — |
|
|
4324
4329
|
| `rangeTo(to)` | `` `to ${to}` `` | `` `bis ${to}` `` | — |
|
|
4325
4330
|
| `rangeInvalid` | “From” lies after “To”. | „Von“ liegt hinter „Bis“. | When "From" lies behind "To". The condition stays the last valid one. |
|
|
4331
|
+
| `textContains` | contains | enthält | The text filter: its operators, as the choice and in the condition. |
|
|
4332
|
+
| `textNotContains` | does not contain | enthält nicht | — |
|
|
4333
|
+
| `textStartsWith` | starts with | beginnt mit | — |
|
|
4334
|
+
| `textEndsWith` | ends with | endet mit | — |
|
|
4335
|
+
| `textEquals` | equals | ist gleich | — |
|
|
4336
|
+
| `textIsEmpty` | is empty | ist leer | — |
|
|
4337
|
+
| `textAnd` | and | und | What joins the two terms of a text condition: the choice and the word between them. |
|
|
4338
|
+
| `textOr` | or | oder | — |
|
|
4339
|
+
| `filterOperator` | Operator | Operator | The labels of the operator and the value fields of a term. |
|
|
4340
|
+
| `filterValue` | Value | Wert | — |
|
|
4341
|
+
| `filterJoin` | Join | Verknüpfung | The name of the choice between AND and OR. |
|
|
4342
|
+
| `textTerm(operator, value)` | `` `${operator} “${value}”` `` | `` `${operator} „${value}“` `` | A term with a value in the toolbar: `starts with “foo”`. |
|
|
4326
4343
|
| `resetAll` | Reset | Zurücksetzen | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
4327
4344
|
| `tryAgain` | Try again | Erneut versuchen | The button under a server-mode table's error that sends the request once more. |
|
|
4328
4345
|
| `filteredOfTotal(matches, total)` | `` `${matches} of ${total}` `` | `` `${matches} von ${total}` `` | "43 of 1.204" - the numbers come from the formats. |
|
|
@@ -4400,6 +4417,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4400
4417
|
| `scheduleUnfoldGroup` | Unfold group | Gruppe ausklappen | — |
|
|
4401
4418
|
| `scheduleLaneCount(count)` | `` (count === 1 ? "1 lane" : `${count} lanes`) `` | `` (count === 1 ? "1 Bahn" : `${count} Bahnen`) `` | How many lanes a group holds, beside its name in the header. |
|
|
4402
4419
|
| `scheduleRoleDescription` | schedule | Belegungsplan | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
|
|
4420
|
+
| `schedulePlotName(label)` | `` `${label}, plot` `` | `` `${label}, Diagramm` `` | The plot's own name, beside the figure that carries the caller's `aria-label`, so the caller's name is not heard twice. |
|
|
4403
4421
|
| `scheduleSummary(summary)` | `` `${lanes === 1 ? "1 lane" : `${lanes} lanes`}, ${subtasks === 1 ? "1 subtask" : `${subtasks} subtasks`} in view from ${from} to ${to}. ` + `${overlaps === 1 ? "1 overlap" : `${overlaps} overlaps`}, ${violated === 1 ? "1 violated dependency" : `${violated} violated dependencies`}` + (blocked === 0 ? "." : `, ${blocked === 1 ? "1 subtask" : `${blocked} subtasks`} in blocked time.`) + (milestones === 0 ? "" : ` ${milestones === 1 ? "1 milestone" : `${milestones} milestones`}.`) `` | `` `${lanes === 1 ? "1 Bahn" : `${lanes} Bahnen`}, ${subtasks === 1 ? "1 Teilaufgabe" : `${subtasks} Teilaufgaben`} im Blick von ${from} bis ${to}. ` + `${overlaps === 1 ? "1 Überschneidung" : `${overlaps} Überschneidungen`}, ${violated === 1 ? "1 verletzte Abhängigkeit" : `${violated} verletzte Abhängigkeiten`}` + (blocked === 0 ? "." : `, ${blocked === 1 ? "1 Teilaufgabe in einer Sperrzeit" : `${blocked} Teilaufgaben in Sperrzeiten`}.`) + (milestones === 0 ? "" : ` ${milestones === 1 ? "1 Meilenstein" : `${milestones} Meilensteine`}.`) `` | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
|
|
4404
4422
|
| `scheduleVisibleRange(from, to)` | `` `From ${from} to ${to}.` `` | `` `Von ${from} bis ${to}.` `` | The span in view, said after a zoom key. |
|
|
4405
4423
|
| `scheduleKeyHelp` | Left and right arrows move along the lane, up and down change the lane, Home and End go to its first and last, Page Up and Page Down jump a tenth of the view. Plus zooms in, minus zooms out, zero fits all the work. Right bracket or T follows a dependency out, left bracket or Shift and T goes back. Space or Enter selects. Alt with left or right proposes a move, Alt and Shift a new end. Escape clears. | Pfeil links und rechts gehen die Bahn entlang, Pfeil hoch und runter wechseln die Bahn, Pos1 und Ende springen zur ersten und letzten Teilaufgabe, Bild auf und Bild ab springen ein Zehntel der Ansicht. Plus zoomt hinein, Minus zoomt heraus, Null zeigt die gesamte Arbeit. Schließende eckige Klammer oder T folgt einer Abhängigkeit hinaus, öffnende eckige Klammer oder Umschalt und T geht zurück. Leertaste oder Eingabe wählt aus. Alt mit Pfeil links oder rechts schlägt eine Verschiebung vor, Alt und Umschalt ein neues Ende. Escape lässt die aktive Teilaufgabe los. | The keys that walk the plot, select and edit - read after the summary. |
|
|
@@ -4556,7 +4574,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4556
4574
|
|
|
4557
4575
|
#### Charts wording
|
|
4558
4576
|
|
|
4559
|
-
Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes through its `wording` prop: the English of `DEFAULT_CHARTS_WORDING` beside the German of `GERMAN_CHARTS_WORDING`, imported from `@umriss-ui/charts/wording/de`.
|
|
4577
|
+
Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes through its `wording` prop: the English of `DEFAULT_CHARTS_WORDING` beside the German of `GERMAN_CHARTS_WORDING`, imported from `@umriss-ui/charts/wording/de`. One `ChartsWordingProvider` from `@umriss-ui/charts` at the root sets it for every chart below, also one inside a dashboard widget; a chart's own `wording` wins. An app with both packages sets both providers, `LanguageProvider` for core and `ChartsWordingProvider` for the charts.
|
|
4560
4578
|
|
|
4561
4579
|
| Key | English | German | Description |
|
|
4562
4580
|
|---|---|---|---|
|
|
@@ -4611,6 +4629,7 @@ Every entry of `Formats`: `DEFAULT_FORMATS` beside `GERMAN_FORMATS`. Each set as
|
|
|
4611
4629
|
| `month(d)` | March 2026 | März 2026 | The calendar's month header: March 2026 |
|
|
4612
4630
|
| `monthName(d)` | March | März | The month alone, in the calendar head's month list: March |
|
|
4613
4631
|
| `dateLong(d)` | Tuesday, 17 March 2026 | Dienstag, 17. März 2026 | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
|
|
4632
|
+
| `weekStart` | Monday | Monday | The first day of the calendars' week, ISO-numbered: 1 = Monday ... 7 = Sunday. |
|
|
4614
4633
|
| `time(d, withSeconds)` | 09:05 | 09:05 | Time of day, optionally with seconds: 09:05 or 09:05:03 |
|
|
4615
4634
|
| `dateTime(d, withSeconds)` | 17/03/2026, 09:05 | 17.03.2026, 09:05 | Date and time together: 17/03/2026, 09:05 |
|
|
4616
4635
|
| `offset(d)` | GMT+1 | GMT+1 | Short form of the UTC offset: GMT+2 |
|
|
@@ -4654,6 +4673,7 @@ Everything the library knows about formatting.
|
|
|
4654
4673
|
| `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
|
|
4655
4674
|
| `monthName` *required* | `(d: Date) => string` | — | The month alone, in the calendar head's month list: March |
|
|
4656
4675
|
| `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
|
|
4676
|
+
| `weekStart` *required* | `number` | — | The first day of the calendars' week, ISO-numbered: 1 = Monday ... 7 = Sunday. |
|
|
4657
4677
|
| `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
|
|
4658
4678
|
| `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05<br>Shown in: [Use the language in your own components](#language), [Pick a day (DatePicker)](#datepicker), [Set an instant (DateTimePicker)](#datetimepicker) and 1 more |
|
|
4659
4679
|
| `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
|
|
@@ -4770,6 +4790,7 @@ Everything the library puts out as text.
|
|
|
4770
4790
|
| `filterDone` *required* | `string` | — | |
|
|
4771
4791
|
| `columns` *required* | `string` | — | The column menu's button. |
|
|
4772
4792
|
| `arrangeColumns` *required* | `string` | — | Accessible name of the list in the column menu. |
|
|
4793
|
+
| `fitAllColumns` *required* | `string` | — | The column menu's button that sets every column to the width of its content. |
|
|
4773
4794
|
| `columnForward` *required* | `(column: string) => string` | — | The two buttons that move a column in the column menu. |
|
|
4774
4795
|
| `columnBackward` *required* | `(column: string) => string` | — | |
|
|
4775
4796
|
| `pinColumnToStart` *required* | `(column: string) => string` | — | The column menu's pin keys: to a side, and back when it is pinned there. |
|
|
@@ -4859,6 +4880,18 @@ Everything the library puts out as text.
|
|
|
4859
4880
|
| `rangeFrom` *required* | `(from: string) => string` | — | |
|
|
4860
4881
|
| `rangeTo` *required* | `(to: string) => string` | — | |
|
|
4861
4882
|
| `rangeInvalid` *required* | `string` | — | When "From" lies behind "To". The condition stays the last valid one. |
|
|
4883
|
+
| `textContains` *required* | `string` | — | The text filter: its operators, as the choice and in the condition. |
|
|
4884
|
+
| `textNotContains` *required* | `string` | — | |
|
|
4885
|
+
| `textStartsWith` *required* | `string` | — | |
|
|
4886
|
+
| `textEndsWith` *required* | `string` | — | |
|
|
4887
|
+
| `textEquals` *required* | `string` | — | |
|
|
4888
|
+
| `textIsEmpty` *required* | `string` | — | |
|
|
4889
|
+
| `textAnd` *required* | `string` | — | What joins the two terms of a text condition: the choice and the word between them. |
|
|
4890
|
+
| `textOr` *required* | `string` | — | |
|
|
4891
|
+
| `filterOperator` *required* | `string` | — | The labels of the operator and the value fields of a term. |
|
|
4892
|
+
| `filterValue` *required* | `string` | — | |
|
|
4893
|
+
| `filterJoin` *required* | `string` | — | The name of the choice between AND and OR. |
|
|
4894
|
+
| `textTerm` *required* | `(operator: string, value: string) => string` | — | A term with a value in the toolbar: `starts with “foo”`. |
|
|
4862
4895
|
| `resetAll` *required* | `string` | — | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
4863
4896
|
| `tryAgain` *required* | `string` | — | The button under a server-mode table's error that sends the request once more. |
|
|
4864
4897
|
| `filteredOfTotal` *required* | `(matches: string, total: string) => string` | — | "43 of 1.204" - the numbers come from the formats. |
|
|
@@ -4921,6 +4954,7 @@ Everything the library puts out as text.
|
|
|
4921
4954
|
| `scheduleUnfoldGroup` *required* | `string` | — | |
|
|
4922
4955
|
| `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
|
|
4923
4956
|
| `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
|
|
4957
|
+
| `schedulePlotName` *required* | `(label: string) => string` | — | The plot's own name, beside the figure that carries the caller's `aria-label`, so the caller's name is not heard twice. |
|
|
4924
4958
|
| `scheduleSummary` *required* | `(summary: { lanes: number; subtasks: number; from: string; to: string; overlaps: number; violated: number; /** Subtasks in blocked time; said only where there are any. */ blocked: number; /** Milestones of the plan; said only where there are any. */ milestones: number; }) => string` | — | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
|
|
4925
4959
|
| `scheduleVisibleRange` *required* | `(from: string, to: string) => string` | — | The span in view, said after a zoom key. |
|
|
4926
4960
|
| `scheduleKeyHelp` *required* | `string` | — | The keys that walk the plot, select and edit - read after the summary. |
|
|
@@ -5057,10 +5091,10 @@ Everything the library puts out as text.
|
|
|
5057
5091
|
|
|
5058
5092
|
#### Known limits
|
|
5059
5093
|
|
|
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.
|
|
5094
|
+
- 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.49.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
5061
5095
|
- It holds only what the components say themselves; your labels, titles and data are yours to translate.
|
|
5062
5096
|
|
|
5063
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5097
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5064
5098
|
|
|
5065
5099
|
## Layout
|
|
5066
5100
|
|
|
@@ -5363,11 +5397,11 @@ The keys of [Button](#button) apply here.
|
|
|
5363
5397
|
| Prop | Type | Default | Description |
|
|
5364
5398
|
|---|---|---|---|
|
|
5365
5399
|
| `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
|
|
5400
|
+
| `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 |
|
|
5401
|
+
| `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
5402
|
| `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
5403
|
| `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
|
|
5404
|
+
| `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
5405
|
|
|
5372
5406
|
Also takes every attribute of `<div>`.
|
|
5373
5407
|
|
|
@@ -5378,7 +5412,7 @@ Also takes every attribute of `<div>`.
|
|
|
5378
5412
|
| `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
5413
|
| `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
5414
|
| `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
|
|
5415
|
+
| `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
5416
|
|
|
5383
5417
|
Also takes every attribute of `<div>`.
|
|
5384
5418
|
|
|
@@ -5407,7 +5441,7 @@ type GridColumnWidth = number | "fill";
|
|
|
5407
5441
|
- No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
|
|
5408
5442
|
- 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
5443
|
|
|
5410
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5444
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5411
5445
|
|
|
5412
5446
|
### Divider
|
|
5413
5447
|
|
|
@@ -5509,7 +5543,7 @@ The keys of [Button](#button) apply here.
|
|
|
5509
5543
|
| `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | Horizontally it separates rows, vertically it separates columns.<br>Shown in: [Configurator](#divider), [Upright in a bar](#divider) |
|
|
5510
5544
|
| `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
5545
|
| `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
|
|
5546
|
+
| `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
5547
|
|
|
5514
5548
|
Also takes every attribute of `<div>`.
|
|
5515
5549
|
|
|
@@ -5779,7 +5813,7 @@ The keys of [Button](#button) apply here.
|
|
|
5779
5813
|
| `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
5814
|
| `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
5815
|
| `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
|
|
5816
|
+
| `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
5817
|
|
|
5784
5818
|
Also takes every attribute of the rendered element.
|
|
5785
5819
|
|
|
@@ -5791,7 +5825,7 @@ Also takes every attribute of the rendered element.
|
|
|
5791
5825
|
| `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
5826
|
| `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
5827
|
| `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
|
|
5828
|
+
| `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
5829
|
|
|
5796
5830
|
Also takes every attribute of `<div>` – without `title`.
|
|
5797
5831
|
|
|
@@ -5800,7 +5834,7 @@ Also takes every attribute of `<div>` – without `title`.
|
|
|
5800
5834
|
| Prop | Type | Default | Description |
|
|
5801
5835
|
|---|---|---|---|
|
|
5802
5836
|
| `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
|
|
5837
|
+
| `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
5838
|
|
|
5805
5839
|
Also takes every attribute of `<div>`.
|
|
5806
5840
|
|
|
@@ -6217,7 +6251,7 @@ export default function ThreePanes() {
|
|
|
6217
6251
|
| `step` | `number` | `5` | How far an arrow key moves the separator, in per cent.<br>Shown in: [Keep the share](#splitter) |
|
|
6218
6252
|
| `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
6253
|
| `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
|
|
6254
|
+
| `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
6255
|
|
|
6222
6256
|
###### Events
|
|
6223
6257
|
|
|
@@ -6232,7 +6266,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
|
|
|
6232
6266
|
- 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
6267
|
- It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
|
|
6234
6268
|
|
|
6235
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6269
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6236
6270
|
|
|
6237
6271
|
## Typography
|
|
6238
6272
|
|
|
@@ -6590,13 +6624,13 @@ export default function IncidentSummary() {
|
|
|
6590
6624
|
| Prop | Type | Default | Description |
|
|
6591
6625
|
|---|---|---|---|
|
|
6592
6626
|
| `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
|
|
6627
|
+
| `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
6628
|
| `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
6629
|
| `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
6630
|
| `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
6631
|
| `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
6632
|
| `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
|
|
6633
|
+
| `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
6634
|
|
|
6601
6635
|
Also takes every attribute of the rendered element.
|
|
6602
6636
|
|
|
@@ -6608,7 +6642,7 @@ Also takes every attribute of the rendered element.
|
|
|
6608
6642
|
| `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
6643
|
| `weight` | `TextWeight`<br>`"regular" \| "medium" \| "semibold"` | `"semibold"` | Font weight from the token set.<br>Shown in: [Tones and weights](#typography-2) |
|
|
6610
6644
|
| `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
|
|
6645
|
+
| `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
6646
|
|
|
6613
6647
|
Also takes every attribute of the heading.
|
|
6614
6648
|
|
|
@@ -6618,7 +6652,7 @@ Also takes every attribute of the heading.
|
|
|
6618
6652
|
|---|---|---|---|
|
|
6619
6653
|
| `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
6654
|
| `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
|
|
6655
|
+
| `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
6656
|
|
|
6623
6657
|
Also takes every attribute of `<a>`.
|
|
6624
6658
|
|
|
@@ -6668,10 +6702,10 @@ type TextLeading = "normal" | "tight";
|
|
|
6668
6702
|
#### Known limits
|
|
6669
6703
|
|
|
6670
6704
|
- 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.
|
|
6705
|
+
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
6672
6706
|
- `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
|
|
6673
6707
|
|
|
6674
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6708
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6675
6709
|
|
|
6676
6710
|
### VisuallyHidden
|
|
6677
6711
|
|
|
@@ -6787,7 +6821,7 @@ export default function ActionsInRows() {
|
|
|
6787
6821
|
|---|---|---|---|
|
|
6788
6822
|
| `as` | `E` | `"span"` | Element to render as.<br>Shown in: [Add a skip link](#visuallyhidden) |
|
|
6789
6823
|
| `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
|
|
6824
|
+
| `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
6825
|
|
|
6792
6826
|
Also takes every attribute of the chosen element – without `as`, `ref`.
|
|
6793
6827
|
|
|
@@ -6795,7 +6829,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
|
|
|
6795
6829
|
|
|
6796
6830
|
- It hides from the eye only; to hide something from everyone, do not render it.
|
|
6797
6831
|
|
|
6798
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6832
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6799
6833
|
|
|
6800
6834
|
## Actions
|
|
6801
6835
|
|
|
@@ -7084,7 +7118,7 @@ Under forced colours every variant keeps an outline where its edge would lie, an
|
|
|
7084
7118
|
| `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
7119
|
| `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
7120
|
| `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
|
|
7121
|
+
| `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
7122
|
|
|
7089
7123
|
Also takes every attribute of `<button>`.
|
|
7090
7124
|
|
|
@@ -7124,7 +7158,7 @@ type ControlSize = "sm" | "md";
|
|
|
7124
7158
|
- The label stays on one line; keep it short rather than let it wrap.
|
|
7125
7159
|
- No icon slot: an icon goes among the children, before the label, and the button sets its size.
|
|
7126
7160
|
|
|
7127
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7161
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7128
7162
|
|
|
7129
7163
|
### IconButton
|
|
7130
7164
|
|
|
@@ -7435,7 +7469,7 @@ export default function Toolbar() {
|
|
|
7435
7469
|
| `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
7470
|
| `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
7471
|
| `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
|
|
7472
|
+
| `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
7473
|
|
|
7440
7474
|
###### Accessibility
|
|
7441
7475
|
|
|
@@ -7481,7 +7515,7 @@ type ControlSize = "sm" | "md";
|
|
|
7481
7515
|
- The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
|
|
7482
7516
|
- A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
|
|
7483
7517
|
|
|
7484
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7518
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7485
7519
|
|
|
7486
7520
|
### ButtonGroup
|
|
7487
7521
|
|
|
@@ -7775,7 +7809,7 @@ export default function InvoiceToolbar() {
|
|
|
7775
7809
|
| Prop | Type | Default | Description |
|
|
7776
7810
|
|---|---|---|---|
|
|
7777
7811
|
| `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
|
|
7812
|
+
| `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
7813
|
|
|
7780
7814
|
###### Accessibility
|
|
7781
7815
|
|
|
@@ -7796,7 +7830,7 @@ Also takes every attribute of `<div>`.
|
|
|
7796
7830
|
| `menuLabel` | `string` | the wording's "More actions" | Label of the trigger. |
|
|
7797
7831
|
| `align` | `"start" \| "end"` | `"end"` | Alignment of the menu relative to the trigger.<br>Shown in: [Offer variants of the main action](#buttongroup) |
|
|
7798
7832
|
| `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
|
|
7833
|
+
| `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
7834
|
|
|
7801
7835
|
###### Events
|
|
7802
7836
|
|
|
@@ -7841,7 +7875,7 @@ type ControlSize = "sm" | "md";
|
|
|
7841
7875
|
|
|
7842
7876
|
- No toggle or segmented state; a choice that stays is a radio group.
|
|
7843
7877
|
|
|
7844
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7878
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7845
7879
|
|
|
7846
7880
|
## Forms
|
|
7847
7881
|
|
|
@@ -8146,7 +8180,7 @@ export default function RevealASecret() {
|
|
|
8146
8180
|
| `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
8181
|
| `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
8182
|
| `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
|
|
8183
|
+
| `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
8184
|
|
|
8151
8185
|
###### Events
|
|
8152
8186
|
|
|
@@ -8161,7 +8195,7 @@ Also takes every attribute of `<input>` – without `size`.
|
|
|
8161
8195
|
- No input masks or formatting while typing; check the value on leave or on submit.
|
|
8162
8196
|
- No validation of its own: the error is the application's, handed to the `FormField`.
|
|
8163
8197
|
|
|
8164
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8198
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8165
8199
|
|
|
8166
8200
|
### FormField
|
|
8167
8201
|
|
|
@@ -8412,13 +8446,13 @@ The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox),
|
|
|
8412
8446
|
|
|
8413
8447
|
| Prop | Type | Default | Description |
|
|
8414
8448
|
|---|---|---|---|
|
|
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
|
|
8449
|
+
| `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 90 more |
|
|
8416
8450
|
| `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
8451
|
| `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
8452
|
| `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
8453
|
| `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
8454
|
| `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
|
|
8455
|
+
| `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
8456
|
|
|
8423
8457
|
Also takes every attribute of `<div>`.
|
|
8424
8458
|
|
|
@@ -8427,7 +8461,7 @@ Also takes every attribute of `<div>`.
|
|
|
8427
8461
|
- 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
8462
|
- One field per `FormField`; a group of fields that share one label is a fieldset of your own.
|
|
8429
8463
|
|
|
8430
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8464
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8431
8465
|
|
|
8432
8466
|
### Textarea
|
|
8433
8467
|
|
|
@@ -8607,7 +8641,7 @@ With `showCount` the characters left stand in a polite live region: a screen rea
|
|
|
8607
8641
|
| `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
8642
|
| `showCount` | `boolean` | `false` | Shows at the bottom right how many characters still fit. Needs `maxLength`.<br>Shown in: [Count the characters](#textarea) |
|
|
8609
8643
|
| `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
|
|
8644
|
+
| `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
8645
|
|
|
8612
8646
|
Also takes every attribute of `<textarea>` – without `cols`.
|
|
8613
8647
|
|
|
@@ -8615,7 +8649,7 @@ Also takes every attribute of `<textarea>` – without `cols`.
|
|
|
8615
8649
|
|
|
8616
8650
|
- Plain text only: no formatting, mentions or rich text.
|
|
8617
8651
|
|
|
8618
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8652
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8619
8653
|
|
|
8620
8654
|
### NumberInput
|
|
8621
8655
|
|
|
@@ -8862,7 +8896,7 @@ export default function YearWithoutGrouping() {
|
|
|
8862
8896
|
| `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
8897
|
| `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
8898
|
| `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
|
|
8899
|
+
| `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
8900
|
|
|
8867
8901
|
###### Events
|
|
8868
8902
|
|
|
@@ -8877,7 +8911,7 @@ Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`
|
|
|
8877
8911
|
- No expressions: “12*4” is not calculated.
|
|
8878
8912
|
- No currency conversion; the unit is a label.
|
|
8879
8913
|
|
|
8880
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8914
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8881
8915
|
|
|
8882
8916
|
### Slider
|
|
8883
8917
|
|
|
@@ -9045,7 +9079,7 @@ export default function SplitABudget() {
|
|
|
9045
9079
|
| `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
9080
|
| `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
9081
|
| `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
|
|
9082
|
+
| `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
9083
|
|
|
9050
9084
|
###### Events
|
|
9051
9085
|
|
|
@@ -9070,7 +9104,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
|
|
|
9070
9104
|
- One thumb: no range with two ends.
|
|
9071
9105
|
- Marks show values; they do not catch the thumb.
|
|
9072
9106
|
|
|
9073
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9107
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9074
9108
|
|
|
9075
9109
|
### Checkbox
|
|
9076
9110
|
|
|
@@ -9186,7 +9220,7 @@ export default function SelectAllWithAMixedState() {
|
|
|
9186
9220
|
|---|---|---|---|
|
|
9187
9221
|
| `label` | `ReactNode` | — | Label to the right of the checkbox.<br>Shown in: [Configurator](#checkbox), [Checkbox](#checkbox), [States](#checkbox) and 11 more |
|
|
9188
9222
|
| `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
|
|
9223
|
+
| `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
9224
|
|
|
9191
9225
|
Also takes every attribute of `<input>` – without `size`, `type`.
|
|
9192
9226
|
|
|
@@ -9390,7 +9424,7 @@ export default function SettingsOfAService() {
|
|
|
9390
9424
|
| `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
9425
|
| `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
9426
|
| `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
|
|
9427
|
+
| `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
9428
|
|
|
9395
9429
|
Also takes every attribute of `<input>` – without `role`, `size`, `type`.
|
|
9396
9430
|
|
|
@@ -9398,7 +9432,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
|
|
|
9398
9432
|
|
|
9399
9433
|
- No pending or loading state; while your application applies the change, disable the switch or say so beside it.
|
|
9400
9434
|
|
|
9401
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9435
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9402
9436
|
|
|
9403
9437
|
### RadioGroup
|
|
9404
9438
|
|
|
@@ -9553,7 +9587,7 @@ export default function States() {
|
|
|
9553
9587
|
| `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
9588
|
| `disabled` | `boolean` | `false` | Disables the whole group. `RadioOption` disables single possibilities.<br>Shown in: [Configurator](#radiogroup), [States](#radiogroup) |
|
|
9555
9589
|
| `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
|
|
9590
|
+
| `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
9591
|
|
|
9558
9592
|
###### Events
|
|
9559
9593
|
|
|
@@ -9830,21 +9864,21 @@ export default function DrawnAsAField() {
|
|
|
9830
9864
|
|
|
9831
9865
|
| Prop | Type | Default | Description |
|
|
9832
9866
|
|---|---|---|---|
|
|
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
|
|
9867
|
+
| `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
9868
|
| `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), [
|
|
9869
|
+
| `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
9870
|
| `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
9871
|
| `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) |
|
|
9872
|
+
| `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
9873
|
| `disabled` | `boolean` | `false` | Disables the whole control. `SegmentedOption` disables single possibilities.<br>Shown in: [Configurator](#segmentedcontrol), [States and sizes](#segmentedcontrol) |
|
|
9840
9874
|
| `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
|
|
9875
|
+
| `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
9876
|
|
|
9843
9877
|
###### Events
|
|
9844
9878
|
|
|
9845
9879
|
| Prop | Type | Default | Description |
|
|
9846
9880
|
|---|---|---|---|
|
|
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), [
|
|
9881
|
+
| `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
9882
|
|
|
9849
9883
|
Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
9850
9884
|
|
|
@@ -9852,8 +9886,8 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
9852
9886
|
|
|
9853
9887
|
| Prop | Type | Default | Description |
|
|
9854
9888
|
|---|---|---|---|
|
|
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
|
|
9889
|
+
| `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 |
|
|
9890
|
+
| `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
9891
|
| `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
9892
|
| `disabled` | `boolean` | — | Takes the possibility out of the choice but leaves it visible.<br>Shown in: [States and sizes](#segmentedcontrol) |
|
|
9859
9893
|
|
|
@@ -9862,7 +9896,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
9862
9896
|
- Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
|
|
9863
9897
|
- No icons and no line of explanation in a segment; several chosen at once is not this control.
|
|
9864
9898
|
|
|
9865
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9899
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9866
9900
|
|
|
9867
9901
|
### FileInput
|
|
9868
9902
|
|
|
@@ -10193,7 +10227,7 @@ export default function ProgressAndThumbnails() {
|
|
|
10193
10227
|
|---|---|---|---|
|
|
10194
10228
|
| `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
10229
|
| `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
|
|
10230
|
+
| `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
10231
|
|
|
10198
10232
|
###### Events
|
|
10199
10233
|
|
|
@@ -10207,7 +10241,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
|
|
|
10207
10241
|
|
|
10208
10242
|
- No upload, no progress and no size limit of its own; those belong to the application sending the files.
|
|
10209
10243
|
|
|
10210
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10244
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10211
10245
|
|
|
10212
10246
|
## Choosing
|
|
10213
10247
|
|
|
@@ -10389,7 +10423,7 @@ export default function ClearTheChoice() {
|
|
|
10389
10423
|
| `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
10424
|
| `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
10425
|
| `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
|
|
10426
|
+
| `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
10427
|
|
|
10394
10428
|
###### Events
|
|
10395
10429
|
|
|
@@ -10403,7 +10437,7 @@ Also takes every attribute of `<select>` – without `size`.
|
|
|
10403
10437
|
|
|
10404
10438
|
- The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
|
|
10405
10439
|
|
|
10406
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10440
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10407
10441
|
|
|
10408
10442
|
### Combobox
|
|
10409
10443
|
|
|
@@ -10763,7 +10797,7 @@ export default function SearchWithTheServer() {
|
|
|
10763
10797
|
| `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
10798
|
| `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
10799
|
| `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
|
|
10800
|
+
| `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
10801
|
|
|
10768
10802
|
###### Events
|
|
10769
10803
|
|
|
@@ -10787,7 +10821,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
|
|
|
10787
10821
|
- No free text as a value: only an option can be chosen.
|
|
10788
10822
|
- No request of its own: `onSearch` reports the typed text and you fetch, debounce and cancel; `filter={false}` shows what you return.
|
|
10789
10823
|
|
|
10790
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10824
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10791
10825
|
|
|
10792
10826
|
### MultiSelect
|
|
10793
10827
|
|
|
@@ -11073,7 +11107,7 @@ export default function ThousandsOfAssets() {
|
|
|
11073
11107
|
| `disabled` | `boolean` | `false` | Locks field and panel.<br>Shown in: [Configurator](#multiselect), [States](#multiselect), [Dispatch a tour (Scenarios)](#dispatch-a-tour) |
|
|
11074
11108
|
| `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
11109
|
| `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
|
|
11110
|
+
| `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
11111
|
|
|
11078
11112
|
###### Events
|
|
11079
11113
|
|
|
@@ -11280,7 +11314,7 @@ export default function FromTheFirstReadingToToday() {
|
|
|
11280
11314
|
| `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
11315
|
| `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
11316
|
| `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
|
|
11317
|
+
| `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
11318
|
|
|
11285
11319
|
###### Events
|
|
11286
11320
|
|
|
@@ -11295,7 +11329,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
11295
11329
|
- No typing of a date into the field.
|
|
11296
11330
|
- 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
11331
|
|
|
11298
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11332
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11299
11333
|
|
|
11300
11334
|
### DateTimePicker
|
|
11301
11335
|
|
|
@@ -11452,7 +11486,7 @@ export default function WithAnError() {
|
|
|
11452
11486
|
| `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
11487
|
| `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
11488
|
| `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
|
|
11489
|
+
| `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
11490
|
|
|
11457
11491
|
###### Events
|
|
11458
11492
|
|
|
@@ -11466,7 +11500,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
11466
11500
|
|
|
11467
11501
|
- 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
11502
|
|
|
11469
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11503
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11470
11504
|
|
|
11471
11505
|
### DateRangePicker
|
|
11472
11506
|
|
|
@@ -11672,7 +11706,7 @@ export default function PresetsCutToABound() {
|
|
|
11672
11706
|
| `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
11707
|
| `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
11708
|
| `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
|
|
11709
|
+
| `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
11710
|
|
|
11677
11711
|
###### Events
|
|
11678
11712
|
|
|
@@ -11709,7 +11743,7 @@ the moment of the click.
|
|
|
11709
11743
|
|
|
11710
11744
|
- One span; no list of separate days.
|
|
11711
11745
|
|
|
11712
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11746
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11713
11747
|
|
|
11714
11748
|
### DateTimeRangePicker
|
|
11715
11749
|
|
|
@@ -11887,7 +11921,7 @@ export default function WithAnError() {
|
|
|
11887
11921
|
| `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
11922
|
| `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
11923
|
| `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
|
|
11924
|
+
| `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
11925
|
|
|
11892
11926
|
###### Events
|
|
11893
11927
|
|
|
@@ -11925,7 +11959,7 @@ the moment of the click.
|
|
|
11925
11959
|
- 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
11960
|
- No recurring windows.
|
|
11927
11961
|
|
|
11928
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11962
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11929
11963
|
|
|
11930
11964
|
## Feedback
|
|
11931
11965
|
|
|
@@ -12067,7 +12101,7 @@ With reduced motion it turns at less than half its speed instead of stopping, so
|
|
|
12067
12101
|
| Prop | Type | Default | Description |
|
|
12068
12102
|
|---|---|---|---|
|
|
12069
12103
|
| `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
|
|
12104
|
+
| `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
12105
|
|
|
12072
12106
|
Also takes every attribute of `<svg>`.
|
|
12073
12107
|
|
|
@@ -12075,7 +12109,7 @@ Also takes every attribute of `<svg>`.
|
|
|
12075
12109
|
|
|
12076
12110
|
- One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
|
|
12077
12111
|
|
|
12078
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12112
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12079
12113
|
|
|
12080
12114
|
### ProgressBar
|
|
12081
12115
|
|
|
@@ -12250,7 +12284,7 @@ Under forced colours the track takes an edge and the fill the system's selection
|
|
|
12250
12284
|
| `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
12285
|
| `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
12286
|
| `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
|
|
12287
|
+
| `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
12288
|
|
|
12255
12289
|
Also takes every attribute of `<div>`.
|
|
12256
12290
|
|
|
@@ -12258,7 +12292,7 @@ Also takes every attribute of `<div>`.
|
|
|
12258
12292
|
|
|
12259
12293
|
- No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
|
|
12260
12294
|
|
|
12261
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12295
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12262
12296
|
|
|
12263
12297
|
### Skeleton
|
|
12264
12298
|
|
|
@@ -12407,7 +12441,7 @@ With reduced motion the shimmer stops, and the shape stands in a still, faint gr
|
|
|
12407
12441
|
| `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
12442
|
| `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
12443
|
| `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
|
|
12444
|
+
| `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
12445
|
|
|
12412
12446
|
Also takes every attribute of `<span>`.
|
|
12413
12447
|
|
|
@@ -12415,7 +12449,7 @@ Also takes every attribute of `<span>`.
|
|
|
12415
12449
|
|
|
12416
12450
|
- It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
|
|
12417
12451
|
|
|
12418
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12452
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12419
12453
|
|
|
12420
12454
|
### Alert
|
|
12421
12455
|
|
|
@@ -12607,7 +12641,7 @@ The title is a paragraph, not a heading, so an alert does not enter the page's o
|
|
|
12607
12641
|
| `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
12642
|
| `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
12643
|
| `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
|
|
12644
|
+
| `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
12645
|
|
|
12612
12646
|
###### Events
|
|
12613
12647
|
|
|
@@ -12633,7 +12667,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
12633
12667
|
- No timer: an alert stays until you remove it. A message that goes by itself is a toast.
|
|
12634
12668
|
- No stack or queue of messages; place each alert where its matter is.
|
|
12635
12669
|
|
|
12636
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12670
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12637
12671
|
|
|
12638
12672
|
### Toast
|
|
12639
12673
|
|
|
@@ -13191,7 +13225,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
|
|
|
13191
13225
|
- 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
13226
|
- 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
13227
|
|
|
13194
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13228
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13195
13229
|
|
|
13196
13230
|
### EmptyState
|
|
13197
13231
|
|
|
@@ -13326,7 +13360,7 @@ The keys of [Button](#button) and [Tag](#tag) apply here.
|
|
|
13326
13360
|
| `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
13361
|
| `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
13362
|
| `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
|
|
13363
|
+
| `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
13364
|
|
|
13331
13365
|
Also takes every attribute of `<div>` – without `title`.
|
|
13332
13366
|
|
|
@@ -13499,7 +13533,7 @@ export default function ACalculation() {
|
|
|
13499
13533
|
- No interactive content and no rich layout inside: it is read, never used.
|
|
13500
13534
|
- No placement option: it stands above its element and flips below where there is no room.
|
|
13501
13535
|
|
|
13502
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13536
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13503
13537
|
|
|
13504
13538
|
### Popover
|
|
13505
13539
|
|
|
@@ -13694,6 +13728,46 @@ export default function ACardAtTheEdge() {
|
|
|
13694
13728
|
}
|
|
13695
13729
|
```
|
|
13696
13730
|
|
|
13731
|
+
##### A setting in a panel
|
|
13732
|
+
|
|
13733
|
+
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.
|
|
13734
|
+
|
|
13735
|
+
```tsx
|
|
13736
|
+
import { useRef, useState } from "react";
|
|
13737
|
+
import { Button, FormField, Popover, SegmentedControl, Stack, Text } from "@umriss-ui/core";
|
|
13738
|
+
|
|
13739
|
+
export default function ASettingInAPanel() {
|
|
13740
|
+
const anchor = useRef<HTMLButtonElement>(null);
|
|
13741
|
+
const [open, setOpen] = useState(false);
|
|
13742
|
+
const [density, setDensity] = useState("spacious");
|
|
13743
|
+
|
|
13744
|
+
return (
|
|
13745
|
+
<Stack gap={3} align="flex-start">
|
|
13746
|
+
<Button ref={anchor} aria-expanded={open} onClick={() => setOpen((o) => !o)}>
|
|
13747
|
+
Density
|
|
13748
|
+
</Button>
|
|
13749
|
+
<Popover open={open} onOpenChange={setOpen} anchorRef={anchor} role="dialog" aria-label="Density" restoreFocus width={320}>
|
|
13750
|
+
<Stack gap={3} style={{ padding: "var(--u-space-4)" }}>
|
|
13751
|
+
<FormField label="Row density">
|
|
13752
|
+
<SegmentedControl
|
|
13753
|
+
fill
|
|
13754
|
+
value={density}
|
|
13755
|
+
onChange={setDensity}
|
|
13756
|
+
options={[
|
|
13757
|
+
{ value: "compact", label: "Compact" },
|
|
13758
|
+
{ value: "regular", label: "Regular" },
|
|
13759
|
+
{ value: "spacious", label: "Spacious" },
|
|
13760
|
+
]}
|
|
13761
|
+
/>
|
|
13762
|
+
</FormField>
|
|
13763
|
+
</Stack>
|
|
13764
|
+
</Popover>
|
|
13765
|
+
<Text size="sm">Density: {density}</Text>
|
|
13766
|
+
</Stack>
|
|
13767
|
+
);
|
|
13768
|
+
}
|
|
13769
|
+
```
|
|
13770
|
+
|
|
13697
13771
|
#### When to use something else
|
|
13698
13772
|
|
|
13699
13773
|
- A list of actions → Menu
|
|
@@ -13712,26 +13786,26 @@ export default function ACardAtTheEdge() {
|
|
|
13712
13786
|
|
|
13713
13787
|
| Prop | Type | Default | Description |
|
|
13714
13788
|
|---|---|---|---|
|
|
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
|
|
13789
|
+
| `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 |
|
|
13790
|
+
| `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 |
|
|
13791
|
+
| `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
13792
|
| `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
13793
|
| `insideRefs` | `ReadonlyArray<RefObject<HTMLElement \| null>>` | — | Further elements whose click does not count as an outside click (e.g. the clear ×). |
|
|
13720
13794
|
| `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
13795
|
| `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
|
|
13796
|
+
| `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
13797
|
| `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) |
|
|
13798
|
+
| `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
13799
|
| `hideOnScroll` | `boolean` | `false` | Close on scrolling instead of travelling along – for tooltips.<br>Shown in: [A card at the right edge](#popover) |
|
|
13726
13800
|
| `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
|
|
13801
|
+
| `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
13802
|
|
|
13729
13803
|
###### Accessibility
|
|
13730
13804
|
|
|
13731
13805
|
| Prop | Type | Default | Description |
|
|
13732
13806
|
|---|---|---|---|
|
|
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
|
|
13807
|
+
| `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 |
|
|
13808
|
+
| `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
13809
|
|
|
13736
13810
|
###### Styling
|
|
13737
13811
|
|
|
@@ -13754,7 +13828,7 @@ type Align = "start" | "end" | "center";
|
|
|
13754
13828
|
- 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
13829
|
- It does not trap focus; a surface the user must answer is a [Modal](#modal).
|
|
13756
13830
|
|
|
13757
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13831
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13758
13832
|
|
|
13759
13833
|
### Menu
|
|
13760
13834
|
|
|
@@ -13941,7 +14015,7 @@ export default function PerRow() {
|
|
|
13941
14015
|
| Prop | Type | Default | Description |
|
|
13942
14016
|
|---|---|---|---|
|
|
13943
14017
|
| `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
|
|
14018
|
+
| `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
14019
|
|
|
13946
14020
|
###### Events
|
|
13947
14021
|
|
|
@@ -13955,7 +14029,7 @@ Also takes every attribute of `<button>` – without `onSelect`.
|
|
|
13955
14029
|
|
|
13956
14030
|
- No submenus, no checkable entries and no type-ahead.
|
|
13957
14031
|
|
|
13958
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14032
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13959
14033
|
|
|
13960
14034
|
### ContextMenu
|
|
13961
14035
|
|
|
@@ -14172,7 +14246,7 @@ export default function OnARow() {
|
|
|
14172
14246
|
- It listens to no right-click itself: the element and the point are yours, through the hook.
|
|
14173
14247
|
- No submenus, no checkable entries and no type-ahead, as in the menu.
|
|
14174
14248
|
|
|
14175
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14249
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14176
14250
|
|
|
14177
14251
|
### Modal
|
|
14178
14252
|
|
|
@@ -14188,6 +14262,8 @@ The title in `ModalHeader` names the dialog for a screen reader. The height foll
|
|
|
14188
14262
|
|
|
14189
14263
|
It is the browser's modal dialog: focus stays inside, the page behind cannot be scrolled, and focus returns to the opener on closing.
|
|
14190
14264
|
|
|
14265
|
+
Focus lands on the first control, the cross. A field with `autoFocus` inside takes it instead.
|
|
14266
|
+
|
|
14191
14267
|
#### Examples
|
|
14192
14268
|
|
|
14193
14269
|
##### A window that holds focus
|
|
@@ -14478,6 +14554,39 @@ export default function ADateInAWindow() {
|
|
|
14478
14554
|
}
|
|
14479
14555
|
```
|
|
14480
14556
|
|
|
14557
|
+
##### The cursor in the field
|
|
14558
|
+
|
|
14559
|
+
An `autoFocus` on a field inside the window is honoured: the window opens with the cursor there, not on the cross.
|
|
14560
|
+
|
|
14561
|
+
```tsx
|
|
14562
|
+
import { useState } from "react";
|
|
14563
|
+
import { Button, FormField, Input, Modal, ModalBody, ModalFooter, ModalHeader } from "@umriss-ui/core";
|
|
14564
|
+
|
|
14565
|
+
export default function TheCursorInTheField() {
|
|
14566
|
+
const [open, setOpen] = useState(false);
|
|
14567
|
+
|
|
14568
|
+
return (
|
|
14569
|
+
<>
|
|
14570
|
+
<Button onClick={() => setOpen(true)}>Edit the contact</Button>
|
|
14571
|
+
<Modal open={open} onClose={() => setOpen(false)}>
|
|
14572
|
+
<ModalHeader title="Edit the contact" />
|
|
14573
|
+
<ModalBody>
|
|
14574
|
+
<FormField label="Name">
|
|
14575
|
+
<Input defaultValue="Maya Lindgren" />
|
|
14576
|
+
</FormField>
|
|
14577
|
+
<FormField label="Phone">
|
|
14578
|
+
<Input autoFocus defaultValue="+49 40 555 0142" />
|
|
14579
|
+
</FormField>
|
|
14580
|
+
</ModalBody>
|
|
14581
|
+
<ModalFooter>
|
|
14582
|
+
<Button onClick={() => setOpen(false)}>Done</Button>
|
|
14583
|
+
</ModalFooter>
|
|
14584
|
+
</Modal>
|
|
14585
|
+
</>
|
|
14586
|
+
);
|
|
14587
|
+
}
|
|
14588
|
+
```
|
|
14589
|
+
|
|
14481
14590
|
#### When to use something else
|
|
14482
14591
|
|
|
14483
14592
|
- A detail beside the list the user came from → Drawer
|
|
@@ -14497,16 +14606,16 @@ export default function ADateInAWindow() {
|
|
|
14497
14606
|
|
|
14498
14607
|
| Prop | Type | Default | Description |
|
|
14499
14608
|
|---|---|---|---|
|
|
14500
|
-
| `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
|
|
14609
|
+
| `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 14 more |
|
|
14501
14610
|
| `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
14611
|
| `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
|
|
14612
|
+
| `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
14613
|
|
|
14505
14614
|
###### Events
|
|
14506
14615
|
|
|
14507
14616
|
| Prop | Type | Default | Description |
|
|
14508
14617
|
|---|---|---|---|
|
|
14509
|
-
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and
|
|
14618
|
+
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 14 more |
|
|
14510
14619
|
|
|
14511
14620
|
Also takes every attribute of `<dialog>` – without `onClose`.
|
|
14512
14621
|
|
|
@@ -14514,10 +14623,10 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
14514
14623
|
|
|
14515
14624
|
| Prop | Type | Default | Description |
|
|
14516
14625
|
|---|---|---|---|
|
|
14517
|
-
| `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
|
|
14626
|
+
| `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 14 more |
|
|
14518
14627
|
| `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
14628
|
| `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
|
|
14629
|
+
| `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
14630
|
|
|
14522
14631
|
Also takes every attribute of `<div>` – without `title`.
|
|
14523
14632
|
|
|
@@ -14535,7 +14644,7 @@ type ModalSize = "sm" | "md" | "lg";
|
|
|
14535
14644
|
|
|
14536
14645
|
- No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
|
|
14537
14646
|
|
|
14538
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14647
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14539
14648
|
|
|
14540
14649
|
### Drawer
|
|
14541
14650
|
|
|
@@ -14897,6 +15006,39 @@ export default function AnAppShell() {
|
|
|
14897
15006
|
}
|
|
14898
15007
|
```
|
|
14899
15008
|
|
|
15009
|
+
##### The cursor in the field
|
|
15010
|
+
|
|
15011
|
+
An `autoFocus` on a field inside the drawer is honoured, as in a `Modal`.
|
|
15012
|
+
|
|
15013
|
+
```tsx
|
|
15014
|
+
import { useState } from "react";
|
|
15015
|
+
import { Button, Drawer, FormField, Input, ModalBody, ModalFooter, ModalHeader } from "@umriss-ui/core";
|
|
15016
|
+
|
|
15017
|
+
export default function TheCursorInTheField() {
|
|
15018
|
+
const [open, setOpen] = useState(false);
|
|
15019
|
+
|
|
15020
|
+
return (
|
|
15021
|
+
<>
|
|
15022
|
+
<Button onClick={() => setOpen(true)}>Edit the shipment</Button>
|
|
15023
|
+
<Drawer open={open} onClose={() => setOpen(false)}>
|
|
15024
|
+
<ModalHeader title="Edit the shipment" />
|
|
15025
|
+
<ModalBody>
|
|
15026
|
+
<FormField label="Consignee">
|
|
15027
|
+
<Input defaultValue="Harlow Bakery" />
|
|
15028
|
+
</FormField>
|
|
15029
|
+
<FormField label="Note">
|
|
15030
|
+
<Input autoFocus defaultValue="Ring twice" />
|
|
15031
|
+
</FormField>
|
|
15032
|
+
</ModalBody>
|
|
15033
|
+
<ModalFooter>
|
|
15034
|
+
<Button onClick={() => setOpen(false)}>Done</Button>
|
|
15035
|
+
</ModalFooter>
|
|
15036
|
+
</Drawer>
|
|
15037
|
+
</>
|
|
15038
|
+
);
|
|
15039
|
+
}
|
|
15040
|
+
```
|
|
15041
|
+
|
|
14900
15042
|
#### When to use something else
|
|
14901
15043
|
|
|
14902
15044
|
- A task that has nothing to do with what lies behind it → Modal
|
|
@@ -14916,15 +15058,15 @@ export default function AnAppShell() {
|
|
|
14916
15058
|
| Prop | Type | Default | Description |
|
|
14917
15059
|
|---|---|---|---|
|
|
14918
15060
|
| `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
|
-
| `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
|
|
15061
|
+
| `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 14 more |
|
|
14920
15062
|
| `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
|
|
15063
|
+
| `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
15064
|
|
|
14923
15065
|
###### Events
|
|
14924
15066
|
|
|
14925
15067
|
| Prop | Type | Default | Description |
|
|
14926
15068
|
|---|---|---|---|
|
|
14927
|
-
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. 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
|
|
15069
|
+
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. 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 14 more |
|
|
14928
15070
|
|
|
14929
15071
|
Also takes every attribute of `<dialog>` – without `onClose`.
|
|
14930
15072
|
|
|
@@ -14933,7 +15075,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
14933
15075
|
- Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
|
|
14934
15076
|
- Only the left and right edges; nothing slides in from the top or bottom.
|
|
14935
15077
|
|
|
14936
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15078
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14937
15079
|
|
|
14938
15080
|
### ConfirmDialog
|
|
14939
15081
|
|
|
@@ -15095,7 +15237,7 @@ export default function WhileItRuns() {
|
|
|
15095
15237
|
| `cancelLabel` | `string` | the wording's "Cancel" | Label of the cancelling button.<br>Shown in: [Guard unsaved changes (Modal)](#modal) |
|
|
15096
15238
|
| `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
15239
|
| `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
|
|
15240
|
+
| `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
15241
|
|
|
15100
15242
|
###### Events
|
|
15101
15243
|
|
|
@@ -15110,7 +15252,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
15110
15252
|
|
|
15111
15253
|
- A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
|
|
15112
15254
|
|
|
15113
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15255
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15114
15256
|
|
|
15115
15257
|
### CommandPalette
|
|
15116
15258
|
|
|
@@ -15384,7 +15526,7 @@ export default function SearchHundredsOfPages() {
|
|
|
15384
15526
|
| `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
15527
|
| `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
15528
|
| `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
|
|
15529
|
+
| `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
15530
|
|
|
15389
15531
|
###### Events
|
|
15390
15532
|
|
|
@@ -15412,7 +15554,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
15412
15554
|
- No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
|
|
15413
15555
|
- No nested steps or arguments: a command that needs input opens your own form after it is chosen.
|
|
15414
15556
|
|
|
15415
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15557
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15416
15558
|
|
|
15417
15559
|
## Navigation
|
|
15418
15560
|
|
|
@@ -15711,7 +15853,7 @@ export default function BrowseDownAndBackUp() {
|
|
|
15711
15853
|
| Prop | Type | Default | Description |
|
|
15712
15854
|
|---|---|---|---|
|
|
15713
15855
|
| `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
|
|
15856
|
+
| `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
15857
|
|
|
15716
15858
|
Also takes every attribute of the rendered element.
|
|
15717
15859
|
|
|
@@ -15732,7 +15874,7 @@ Also takes every attribute of the rendered element.
|
|
|
15732
15874
|
|
|
15733
15875
|
- It neither routes nor reads the address: the trail is what you pass.
|
|
15734
15876
|
|
|
15735
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15877
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15736
15878
|
|
|
15737
15879
|
### Tabs
|
|
15738
15880
|
|
|
@@ -16070,7 +16212,7 @@ export default function MoreTabsThanRoom() {
|
|
|
16070
16212
|
|---|---|---|---|
|
|
16071
16213
|
| `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
16214
|
| `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
|
|
16215
|
+
| `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
16216
|
|
|
16075
16217
|
###### Events
|
|
16076
16218
|
|
|
@@ -16085,7 +16227,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
16085
16227
|
| Prop | Type | Default | Description |
|
|
16086
16228
|
|---|---|---|---|
|
|
16087
16229
|
| `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
|
|
16230
|
+
| `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
16231
|
|
|
16090
16232
|
Also takes every attribute of `<button>`.
|
|
16091
16233
|
|
|
@@ -16094,7 +16236,7 @@ Also takes every attribute of `<button>`.
|
|
|
16094
16236
|
| Prop | Type | Default | Description |
|
|
16095
16237
|
|---|---|---|---|
|
|
16096
16238
|
| `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
|
|
16239
|
+
| `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
16240
|
|
|
16099
16241
|
Also takes every attribute of `<div>`.
|
|
16100
16242
|
|
|
@@ -16102,7 +16244,7 @@ Also takes every attribute of `<div>`.
|
|
|
16102
16244
|
|
|
16103
16245
|
- More tabs than fit scroll sideways within the list; there is no overflow menu, and no closing or reordering of tabs.
|
|
16104
16246
|
|
|
16105
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16247
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16106
16248
|
|
|
16107
16249
|
### Accordion
|
|
16108
16250
|
|
|
@@ -16326,7 +16468,7 @@ export default function LongSettingsInSections() {
|
|
|
16326
16468
|
| `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
16469
|
| `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
16470
|
| `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
|
|
16471
|
+
| `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
16472
|
|
|
16331
16473
|
###### Events
|
|
16332
16474
|
|
|
@@ -16343,7 +16485,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
16343
16485
|
| `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
16486
|
| `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
16487
|
| `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
|
|
16488
|
+
| `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
16489
|
|
|
16348
16490
|
Also takes every attribute of `<div>` – without `title`.
|
|
16349
16491
|
|
|
@@ -16351,7 +16493,7 @@ Also takes every attribute of `<div>` – without `title`.
|
|
|
16351
16493
|
|
|
16352
16494
|
- A folded section's content stays rendered; for heavy content, render it only while its section is open.
|
|
16353
16495
|
|
|
16354
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16496
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16355
16497
|
|
|
16356
16498
|
### Stepper
|
|
16357
16499
|
|
|
@@ -16567,7 +16709,7 @@ Under forced colours the lines between the steps take the system's text colour,
|
|
|
16567
16709
|
| `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
16710
|
| `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
16711
|
| `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
|
|
16712
|
+
| `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
16713
|
|
|
16572
16714
|
Also takes every attribute of the rendered element.
|
|
16573
16715
|
|
|
@@ -16584,7 +16726,7 @@ Also takes every attribute of the rendered element.
|
|
|
16584
16726
|
- 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
16727
|
- No branching or optional steps; pass the steps that apply.
|
|
16586
16728
|
|
|
16587
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16729
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16588
16730
|
|
|
16589
16731
|
### TreeView
|
|
16590
16732
|
|
|
@@ -17144,7 +17286,7 @@ export default function SearchCheckAndReveal() {
|
|
|
17144
17286
|
| `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
17287
|
| `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
17288
|
| `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
|
|
17289
|
+
| `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
17290
|
|
|
17149
17291
|
###### Accessibility
|
|
17150
17292
|
|
|
@@ -17164,7 +17306,7 @@ Also takes every attribute of `<div>` – without `children`.
|
|
|
17164
17306
|
| `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
17307
|
| `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
17308
|
| `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
|
|
17309
|
+
| `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
17310
|
|
|
17169
17311
|
###### Events
|
|
17170
17312
|
|
|
@@ -17262,7 +17404,7 @@ to render and the heights of the filler rows around it.
|
|
|
17262
17404
|
- No dragging nodes to rearrange them.
|
|
17263
17405
|
- 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
17406
|
|
|
17265
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17407
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17266
17408
|
|
|
17267
17409
|
### Benchmark
|
|
17268
17410
|
|
|
@@ -17719,7 +17861,7 @@ The keys of [Button](#button) apply here.
|
|
|
17719
17861
|
|---|---|---|---|
|
|
17720
17862
|
| `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
17863
|
| `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
|
|
17864
|
+
| `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
17865
|
|
|
17724
17866
|
Also takes every attribute of `<span>`.
|
|
17725
17867
|
|
|
@@ -17739,7 +17881,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
17739
17881
|
- It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
|
|
17740
17882
|
- It counts nothing itself: capping at “99+” is yours.
|
|
17741
17883
|
|
|
17742
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17884
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17743
17885
|
|
|
17744
17886
|
### Tag
|
|
17745
17887
|
|
|
@@ -17967,7 +18109,7 @@ export default function AFilterBar() {
|
|
|
17967
18109
|
| `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
18110
|
| `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
18111
|
| `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
|
|
18112
|
+
| `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
18113
|
|
|
17972
18114
|
###### Events
|
|
17973
18115
|
|
|
@@ -17981,7 +18123,7 @@ Also takes every attribute of `<span>` – without `onRemove`.
|
|
|
17981
18123
|
|
|
17982
18124
|
| Prop | Type | Default | Description |
|
|
17983
18125
|
|---|---|---|---|
|
|
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
|
|
18126
|
+
| `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
18127
|
|
|
17986
18128
|
###### Accessibility
|
|
17987
18129
|
|
|
@@ -18006,7 +18148,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
18006
18148
|
- No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
|
|
18007
18149
|
- Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
|
|
18008
18150
|
|
|
18009
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
18151
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
18010
18152
|
|
|
18011
18153
|
### Stat
|
|
18012
18154
|
|
|
@@ -18817,7 +18959,7 @@ It announces nothing: a value that changes or a verdict that turns is read when
|
|
|
18817
18959
|
| `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
18960
|
| `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
18961
|
| `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
|
|
18962
|
+
| `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
18963
|
|
|
18822
18964
|
Also takes every attribute of `<div>` – without `children`.
|
|
18823
18965
|
|
|
@@ -18895,7 +19037,7 @@ type Severity = "warning" | "alarm";
|
|
|
18895
19037
|
- No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
|
|
18896
19038
|
- It fetches and polls nothing: freshness is judged from the `asOf` you give it.
|
|
18897
19039
|
|
|
18898
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19040
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
18899
19041
|
|
|
18900
19042
|
### Meter
|
|
18901
19043
|
|
|
@@ -19047,7 +19189,7 @@ It is no live region: a new value is read when a reader reaches the bar. Under f
|
|
|
19047
19189
|
| `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
19190
|
| `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
19191
|
| `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
|
|
19192
|
+
| `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
19193
|
|
|
19052
19194
|
Also takes every attribute of `<span>`.
|
|
19053
19195
|
|
|
@@ -19065,7 +19207,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
19065
19207
|
|
|
19066
19208
|
- No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
|
|
19067
19209
|
|
|
19068
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19210
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
19069
19211
|
|
|
19070
19212
|
### Sparkline
|
|
19071
19213
|
|
|
@@ -19315,7 +19457,7 @@ export default function InATable() {
|
|
|
19315
19457
|
| `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
19458
|
| `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
19459
|
| `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
|
|
19460
|
+
| `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
19461
|
|
|
19320
19462
|
Also takes every attribute of `<span>`.
|
|
19321
19463
|
|
|
@@ -19323,7 +19465,7 @@ Also takes every attribute of `<span>`.
|
|
|
19323
19465
|
|
|
19324
19466
|
- No axes, labels, tooltip or points to hover: the value stands beside it.
|
|
19325
19467
|
|
|
19326
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19468
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
19327
19469
|
|
|
19328
19470
|
## API index
|
|
19329
19471
|
|
|
@@ -19528,7 +19670,7 @@ Used on [Sizes](#sizes) and [FileInput](#fileinput).
|
|
|
19528
19670
|
|
|
19529
19671
|
[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
19672
|
|
|
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).
|
|
19673
|
+
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), [Drawer](#drawer), [Breadcrumb](#breadcrumb), [Accordion](#accordion) and [TreeView](#treeview).
|
|
19532
19674
|
|
|
19533
19675
|
##### `FormFieldBoundary`
|
|
19534
19676
|
|
|
@@ -19588,7 +19730,7 @@ Used on [Button](#button), [IconButton](#iconbutton), [Input](#input) and [Menu]
|
|
|
19588
19730
|
|
|
19589
19731
|
[Input](#input) – A single line of text (text field, text box): names, references, addresses, search terms. Reach for it whenever the answer is short free text; for numbers take a [NumberInput](#numberinput).
|
|
19590
19732
|
|
|
19591
|
-
Used on [Sizes](#sizes), [Button](#button), [Input](#input), [FormField](#formfield), [Alert](#alert), [Toast](#toast-1), [Modal](#modal), [CommandPalette](#commandpalette) and [Accordion](#accordion).
|
|
19733
|
+
Used on [Sizes](#sizes), [Button](#button), [Input](#input), [FormField](#formfield), [Alert](#alert), [Toast](#toast-1), [Modal](#modal), [Drawer](#drawer), [CommandPalette](#commandpalette) and [Accordion](#accordion).
|
|
19592
19734
|
|
|
19593
19735
|
##### `LanguageProvider`
|
|
19594
19736
|
|
|
@@ -19745,7 +19887,7 @@ Used on [Scenarios](#scenarios), [Sizes](#sizes) and [RadioGroup](#radiogroup).
|
|
|
19745
19887
|
|
|
19746
19888
|
[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
19889
|
|
|
19748
|
-
Used on [Scenarios](#scenarios), [Sizes](#sizes)
|
|
19890
|
+
Used on [Scenarios](#scenarios), [Sizes](#sizes), [SegmentedControl](#segmentedcontrol) and [Popover](#popover).
|
|
19749
19891
|
|
|
19750
19892
|
##### `Select`
|
|
19751
19893
|
|
|
@@ -20219,6 +20361,20 @@ that during development.
|
|
|
20219
20361
|
function duplicateKey<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S | null;
|
|
20220
20362
|
```
|
|
20221
20363
|
|
|
20364
|
+
##### `formatsFor`
|
|
20365
|
+
|
|
20366
|
+
Every format of one locale, built once.
|
|
20367
|
+
|
|
20368
|
+
The options are the product's, not the locale's: two-digit day and month,
|
|
20369
|
+
the month written out with its year, a 24-hour clock, per cent without
|
|
20370
|
+
decimals. What the locale decides is the order of the parts and the
|
|
20371
|
+
separators - 17/03/2026 against 17.03.2026 - and the words of the month,
|
|
20372
|
+
the weekday and "3 minutes ago".
|
|
20373
|
+
|
|
20374
|
+
```ts
|
|
20375
|
+
function formatsFor(locale: string, timeZone?: string): Formats;
|
|
20376
|
+
```
|
|
20377
|
+
|
|
20222
20378
|
##### `freshness`
|
|
20223
20379
|
|
|
20224
20380
|
The freshness of a value: its as-of time, measured against a reference time,
|
|
@@ -20616,6 +20772,8 @@ takes it through `useDensityFor` as the default for its `density` - in
|
|
|
20616
20772
|
type Density = "comfortable" | "compact";
|
|
20617
20773
|
```
|
|
20618
20774
|
|
|
20775
|
+
Used on [Popover](#popover).
|
|
20776
|
+
|
|
20619
20777
|
##### `Direction`
|
|
20620
20778
|
|
|
20621
20779
|
Where the active node moves: up and down the visible rows, in and out of a
|
|
@@ -20680,6 +20838,7 @@ Everything the library knows about formatting.
|
|
|
20680
20838
|
| `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
|
|
20681
20839
|
| `monthName` *required* | `(d: Date) => string` | — | The month alone, in the calendar head's month list: March |
|
|
20682
20840
|
| `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
|
|
20841
|
+
| `weekStart` *required* | `number` | — | The first day of the calendars' week, ISO-numbered: 1 = Monday ... 7 = Sunday. |
|
|
20683
20842
|
| `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
|
|
20684
20843
|
| `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05<br>Shown in: [Use the language in your own components (Language)](#language), [Pick a day (DatePicker)](#datepicker), [Set an instant (DateTimePicker)](#datetimepicker) and 1 more |
|
|
20685
20844
|
| `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
|
|
@@ -20758,7 +20917,7 @@ The props of a glyph: an SVG's attributes and its edge length.
|
|
|
20758
20917
|
| Prop | Type | Default | Description |
|
|
20759
20918
|
|---|---|---|---|
|
|
20760
20919
|
| `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
|
|
20920
|
+
| `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
20921
|
|
|
20763
20922
|
Also takes every attribute of `<svg>` – without `children`, `viewBox`.
|
|
20764
20923
|
|
|
@@ -21047,7 +21206,7 @@ The `ref` of a component: the element it renders at its root.
|
|
|
21047
21206
|
|
|
21048
21207
|
| Prop | Type | Default | Description |
|
|
21049
21208
|
|---|---|---|---|
|
|
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
|
|
21209
|
+
| `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
21210
|
|
|
21052
21211
|
##### `RowPlacement`
|
|
21053
21212
|
|
|
@@ -21575,6 +21734,7 @@ Everything the library puts out as text.
|
|
|
21575
21734
|
| `filterDone` *required* | `string` | — | |
|
|
21576
21735
|
| `columns` *required* | `string` | — | The column menu's button. |
|
|
21577
21736
|
| `arrangeColumns` *required* | `string` | — | Accessible name of the list in the column menu. |
|
|
21737
|
+
| `fitAllColumns` *required* | `string` | — | The column menu's button that sets every column to the width of its content. |
|
|
21578
21738
|
| `columnForward` *required* | `(column: string) => string` | — | The two buttons that move a column in the column menu. |
|
|
21579
21739
|
| `columnBackward` *required* | `(column: string) => string` | — | |
|
|
21580
21740
|
| `pinColumnToStart` *required* | `(column: string) => string` | — | The column menu's pin keys: to a side, and back when it is pinned there. |
|
|
@@ -21664,6 +21824,18 @@ Everything the library puts out as text.
|
|
|
21664
21824
|
| `rangeFrom` *required* | `(from: string) => string` | — | |
|
|
21665
21825
|
| `rangeTo` *required* | `(to: string) => string` | — | |
|
|
21666
21826
|
| `rangeInvalid` *required* | `string` | — | When "From" lies behind "To". The condition stays the last valid one. |
|
|
21827
|
+
| `textContains` *required* | `string` | — | The text filter: its operators, as the choice and in the condition. |
|
|
21828
|
+
| `textNotContains` *required* | `string` | — | |
|
|
21829
|
+
| `textStartsWith` *required* | `string` | — | |
|
|
21830
|
+
| `textEndsWith` *required* | `string` | — | |
|
|
21831
|
+
| `textEquals` *required* | `string` | — | |
|
|
21832
|
+
| `textIsEmpty` *required* | `string` | — | |
|
|
21833
|
+
| `textAnd` *required* | `string` | — | What joins the two terms of a text condition: the choice and the word between them. |
|
|
21834
|
+
| `textOr` *required* | `string` | — | |
|
|
21835
|
+
| `filterOperator` *required* | `string` | — | The labels of the operator and the value fields of a term. |
|
|
21836
|
+
| `filterValue` *required* | `string` | — | |
|
|
21837
|
+
| `filterJoin` *required* | `string` | — | The name of the choice between AND and OR. |
|
|
21838
|
+
| `textTerm` *required* | `(operator: string, value: string) => string` | — | A term with a value in the toolbar: `starts with “foo”`. |
|
|
21667
21839
|
| `resetAll` *required* | `string` | — | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
21668
21840
|
| `tryAgain` *required* | `string` | — | The button under a server-mode table's error that sends the request once more. |
|
|
21669
21841
|
| `filteredOfTotal` *required* | `(matches: string, total: string) => string` | — | "43 of 1.204" - the numbers come from the formats. |
|
|
@@ -21726,6 +21898,7 @@ Everything the library puts out as text.
|
|
|
21726
21898
|
| `scheduleUnfoldGroup` *required* | `string` | — | |
|
|
21727
21899
|
| `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
|
|
21728
21900
|
| `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
|
|
21901
|
+
| `schedulePlotName` *required* | `(label: string) => string` | — | The plot's own name, beside the figure that carries the caller's `aria-label`, so the caller's name is not heard twice. |
|
|
21729
21902
|
| `scheduleSummary` *required* | `(summary: { lanes: number; subtasks: number; from: string; to: string; overlaps: number; violated: number; /** Subtasks in blocked time; said only where there are any. */ blocked: number; /** Milestones of the plan; said only where there are any. */ milestones: number; }) => string` | — | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
|
|
21730
21903
|
| `scheduleVisibleRange` *required* | `(from: string, to: string) => string` | — | The span in view, said after a zoom key. |
|
|
21731
21904
|
| `scheduleKeyHelp` *required* | `string` | — | The keys that walk the plot, select and edit - read after the summary. |
|