@rubenlangeweg/mero-ui 0.9.0 → 0.10.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 +27 -0
- package/README.md +28 -10
- package/agent-docs/components/accordion.md +1 -1
- package/agent-docs/components/action-bar.md +1 -1
- package/agent-docs/components/action-button.md +1 -1
- package/agent-docs/components/agenda.md +1 -1
- package/agent-docs/components/alert-dialog.md +1 -1
- package/agent-docs/components/alert.md +1 -1
- package/agent-docs/components/app-layout.md +1 -1
- package/agent-docs/components/area-chart.md +1 -1
- package/agent-docs/components/aura.md +1 -1
- package/agent-docs/components/autocomplete.md +1 -1
- package/agent-docs/components/avatar-group.md +1 -1
- package/agent-docs/components/avatar.md +1 -1
- package/agent-docs/components/badge.md +1 -1
- package/agent-docs/components/bar-chart.md +1 -1
- package/agent-docs/components/breadcrumbs.md +1 -1
- package/agent-docs/components/browser-mockup.md +1 -1
- package/agent-docs/components/button-group.md +1 -1
- package/agent-docs/components/button.md +1 -1
- package/agent-docs/components/calendar.md +3 -3
- package/agent-docs/components/card.md +1 -1
- package/agent-docs/components/carousel.md +1 -1
- package/agent-docs/components/cell-color-picker.md +1 -1
- package/agent-docs/components/cell-select.md +1 -1
- package/agent-docs/components/cell-slider.md +1 -1
- package/agent-docs/components/cell-switch.md +1 -1
- package/agent-docs/components/chain-of-thought.md +1 -1
- package/agent-docs/components/chart-tooltip.md +1 -1
- package/agent-docs/components/chat-attachment.md +1 -1
- package/agent-docs/components/chat-conversation.md +1 -1
- package/agent-docs/components/chat-list-view.md +1 -1
- package/agent-docs/components/chat-loader.md +1 -1
- package/agent-docs/components/chat-message-actions.md +1 -1
- package/agent-docs/components/chat-message.md +1 -1
- package/agent-docs/components/chat-source.md +1 -1
- package/agent-docs/components/chat-tool.md +1 -1
- package/agent-docs/components/checkbox-button-group.md +1 -1
- package/agent-docs/components/checkbox-group.md +1 -1
- package/agent-docs/components/checkbox.md +1 -1
- package/agent-docs/components/chip.md +1 -1
- package/agent-docs/components/close-button.md +1 -1
- package/agent-docs/components/code-block.md +1 -1
- package/agent-docs/components/code-mockup.md +1 -1
- package/agent-docs/components/color-area.md +1 -1
- package/agent-docs/components/color-field.md +1 -1
- package/agent-docs/components/color-picker.md +1 -1
- package/agent-docs/components/color-slider.md +1 -1
- package/agent-docs/components/color-swatch.md +1 -1
- package/agent-docs/components/combo-box.md +41 -1
- package/agent-docs/components/command-menu.md +1 -1
- package/agent-docs/components/command.md +1 -1
- package/agent-docs/components/composed-chart.md +1 -1
- package/agent-docs/components/context-menu.md +1 -1
- package/agent-docs/components/countdown.md +1 -1
- package/agent-docs/components/data-grid.md +1 -1
- package/agent-docs/components/date-field.md +1 -1
- package/agent-docs/components/date-picker.md +1 -1
- package/agent-docs/components/date-range-picker.md +1 -1
- package/agent-docs/components/description-list.md +1 -1
- package/agent-docs/components/description.md +1 -1
- package/agent-docs/components/diff.md +1 -1
- package/agent-docs/components/disclosure-group.md +1 -1
- package/agent-docs/components/disclosure.md +1 -1
- package/agent-docs/components/dock.md +1 -1
- package/agent-docs/components/drawer.md +1 -1
- package/agent-docs/components/drop-zone.md +1 -1
- package/agent-docs/components/dropdown.md +1 -1
- package/agent-docs/components/emoji-picker.md +1 -1
- package/agent-docs/components/emoji-reaction-button.md +1 -1
- package/agent-docs/components/empty-state.md +1 -1
- package/agent-docs/components/error-message.md +1 -1
- package/agent-docs/components/fab.md +1 -1
- package/agent-docs/components/field-error.md +1 -1
- package/agent-docs/components/fieldset.md +1 -1
- package/agent-docs/components/file-input.md +1 -1
- package/agent-docs/components/file-tree.md +1 -1
- package/agent-docs/components/filter-chips.md +1 -1
- package/agent-docs/components/floating-toc.md +1 -1
- package/agent-docs/components/footer.md +1 -1
- package/agent-docs/components/form.md +1 -1
- package/agent-docs/components/hero.md +1 -1
- package/agent-docs/components/holo-card.md +1 -1
- package/agent-docs/components/hover-card.md +1 -1
- package/agent-docs/components/hover-gallery.md +1 -1
- package/agent-docs/components/indicator.md +1 -1
- package/agent-docs/components/inline-select.md +1 -1
- package/agent-docs/components/input-group.md +1 -1
- package/agent-docs/components/input-otp.md +1 -1
- package/agent-docs/components/input.md +1 -1
- package/agent-docs/components/item-card-group.md +1 -1
- package/agent-docs/components/item-card.md +1 -1
- package/agent-docs/components/join.md +1 -1
- package/agent-docs/components/joined-filter.md +1 -1
- package/agent-docs/components/kanban.md +1 -1
- package/agent-docs/components/kbd.md +1 -1
- package/agent-docs/components/kpi-group.md +1 -1
- package/agent-docs/components/kpi.md +1 -1
- package/agent-docs/components/label.md +1 -1
- package/agent-docs/components/line-chart.md +1 -1
- package/agent-docs/components/link.md +1 -1
- package/agent-docs/components/list-box.md +1 -1
- package/agent-docs/components/list-view.md +1 -1
- package/agent-docs/components/live-progress.md +1 -1
- package/agent-docs/components/map.md +1 -1
- package/agent-docs/components/markdown.md +1 -1
- package/agent-docs/components/mask.md +1 -1
- package/agent-docs/components/megamenu.md +1 -1
- package/agent-docs/components/menu-button.md +1 -1
- package/agent-docs/components/menu.md +1 -1
- package/agent-docs/components/meter.md +1 -1
- package/agent-docs/components/modal.md +1 -1
- package/agent-docs/components/native-select.md +1 -1
- package/agent-docs/components/navbar.md +1 -1
- package/agent-docs/components/number-field.md +1 -1
- package/agent-docs/components/number-stepper.md +1 -1
- package/agent-docs/components/number-value.md +1 -1
- package/agent-docs/components/page-header.md +1 -1
- package/agent-docs/components/pagination.md +1 -1
- package/agent-docs/components/phone-mockup.md +1 -1
- package/agent-docs/components/pie-chart.md +1 -1
- package/agent-docs/components/popover.md +1 -1
- package/agent-docs/components/pressable-feedback.md +1 -1
- package/agent-docs/components/progress-bar.md +1 -1
- package/agent-docs/components/progress-circle.md +1 -1
- package/agent-docs/components/prompt-input.md +1 -1
- package/agent-docs/components/prompt-suggestion.md +1 -1
- package/agent-docs/components/radar-chart.md +1 -1
- package/agent-docs/components/radial-chart.md +1 -1
- package/agent-docs/components/radio-button-group.md +1 -1
- package/agent-docs/components/radio-group.md +1 -1
- package/agent-docs/components/range-calendar.md +1 -1
- package/agent-docs/components/rating.md +1 -1
- package/agent-docs/components/resizable.md +1 -1
- package/agent-docs/components/rich-text-editor.md +1 -1
- package/agent-docs/components/scroll-shadow.md +1 -1
- package/agent-docs/components/search-field.md +1 -1
- package/agent-docs/components/segment.md +1 -1
- package/agent-docs/components/select.md +1 -1
- package/agent-docs/components/separator.md +1 -1
- package/agent-docs/components/sheet.md +1 -1
- package/agent-docs/components/sidebar.md +1 -1
- package/agent-docs/components/skeleton.md +1 -1
- package/agent-docs/components/slider.md +1 -1
- package/agent-docs/components/sortable-table.md +1 -1
- package/agent-docs/components/spinner.md +1 -1
- package/agent-docs/components/stack.md +1 -1
- package/agent-docs/components/status.md +1 -1
- package/agent-docs/components/stepper.md +1 -1
- package/agent-docs/components/surface.md +1 -1
- package/agent-docs/components/swap.md +1 -1
- package/agent-docs/components/switch.md +1 -1
- package/agent-docs/components/table.md +1 -1
- package/agent-docs/components/tabs.md +1 -1
- package/agent-docs/components/tag-group.md +1 -1
- package/agent-docs/components/text-area.md +1 -1
- package/agent-docs/components/text-field.md +1 -1
- package/agent-docs/components/text-rotate.md +1 -1
- package/agent-docs/components/text-shimmer.md +1 -1
- package/agent-docs/components/theme-controller.md +1 -1
- package/agent-docs/components/time-field.md +1 -1
- package/agent-docs/components/timeline.md +1 -1
- package/agent-docs/components/toast.md +1 -1
- package/agent-docs/components/toggle-button-group.md +1 -1
- package/agent-docs/components/toggle-button.md +1 -1
- package/agent-docs/components/toolbar.md +1 -1
- package/agent-docs/components/tooltip.md +1 -1
- package/agent-docs/components/trend-chip.md +1 -1
- package/agent-docs/components/typed-confirmation.md +1 -1
- package/agent-docs/components/typography.md +1 -1
- package/agent-docs/components/validator.md +23 -2
- package/agent-docs/components/visually-hidden.md +1 -1
- package/agent-docs/components/widget.md +1 -1
- package/agent-docs/components/window-mockup.md +1 -1
- package/agent-docs/llms-components.txt +237 -176
- package/agent-docs/llms-full.txt +309 -198
- package/agent-docs/llms-patterns.txt +73 -23
- package/agent-docs/llms.txt +1 -1
- package/bin/mero-ui.mjs +505 -0
- package/dist/manifest.json +230 -0
- package/dist/ui/mero-collections.min.css +3 -0
- package/dist/ui/mero-collections.min.js +2 -0
- package/dist/ui/mero-composition.min.css +3 -0
- package/dist/ui/mero-composition.min.js +2 -0
- package/dist/ui/mero-forms.min.js +2 -0
- package/dist/ui/mero-gallery.min.css +3 -0
- package/dist/ui/mero-gallery.min.js +2 -0
- package/dist/ui/mero-insights.min.css +3 -0
- package/dist/ui/mero-insights.min.js +2 -0
- package/dist/ui/mero-layouts.min.css +3 -0
- package/dist/ui/mero-live.min.js +2 -0
- package/dist/ui/mero-themes.min.css +3 -0
- package/dist/ui/mero-workspace.min.css +3 -0
- package/dist/ui/mero-workspace.min.js +4 -0
- package/dist/ui/mero.min.css +3 -0
- package/dist/ui/mero.min.js +2 -0
- package/package.json +24 -5
- package/ui/insight-charts.d.ts +20 -0
- package/ui/insight-charts.mjs +1 -1
- package/ui/insight-markdown.d.ts +2 -0
- package/ui/insight-markdown.mjs +2 -2
- package/ui/mero-collections.css +3 -1
- package/ui/mero-collections.js +1 -1
- package/ui/mero-composition.css +3 -1
- package/ui/mero-composition.js +2 -2
- package/ui/mero-forms.js +383 -71
- package/ui/mero-gallery.css +4 -16
- package/ui/mero-gallery.js +1 -1
- package/ui/mero-insights.css +3 -1
- package/ui/mero-insights.js +2 -2
- package/ui/mero-layouts.css +3 -1
- package/ui/mero-live.js +68 -10
- package/ui/mero-themes.css +186 -0
- package/ui/mero-workspace.css +3 -1
- package/ui/mero-workspace.js +1 -1
- package/ui/mero.css +104 -16
- package/ui/mero.d.ts +162 -0
- package/ui/mero.js +433 -56
- package/ui/mero-inventory.css +0 -182
- package/ui/mero-inventory.js +0 -56
- package/ui/studio-lamp.webp +0 -0
package/agent-docs/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Mero UI 0.
|
|
1
|
+
# Mero UI 0.10.0 integration patterns
|
|
2
2
|
|
|
3
3
|
## Install a component
|
|
4
4
|
|
|
@@ -10,9 +10,9 @@ Replace demonstration URLs with your routes and render user data with your templ
|
|
|
10
10
|
|
|
11
11
|
For a validating data-mero-form, return the filled form with HTTP 422 and mark the invalid field. For Typed Confirmation, keep the original form on a successful save using the response headers under mero:form-saved below.
|
|
12
12
|
|
|
13
|
-
## Apply a theme
|
|
13
|
+
## Apply a theme and coexist with Tailwind CSS v4
|
|
14
14
|
|
|
15
|
-
Load
|
|
15
|
+
Load optional ui/mero-themes.css after mero.css for composable presets (cobalt, fern, clay, editorial) and structural modifiers (compact, flat, crisp) alongside light, dark or auto on data-theme (e.g. data-theme="cobalt dark compact"), or override --mero-* tokens including --mero-border-width and --mero-depth. For zero-JS constraint validation hints, add .mero-validator on an input/select/textarea with a sibling .mero-validator-hint. When using Tailwind CSS v4 alongside Mero, declare `@layer theme, base, mero, components, utilities;` before importing Tailwind and mero.css.
|
|
16
16
|
|
|
17
17
|
## Events Mero sends
|
|
18
18
|
|
|
@@ -20,9 +20,9 @@ Events bubble to the document.
|
|
|
20
20
|
|
|
21
21
|
### mero:selection
|
|
22
22
|
|
|
23
|
-
Fires on
|
|
23
|
+
Fires on a `data-mero-listbox` when a person chooses an option, or on a `data-mero-multiselect` when a chip is added or removed.
|
|
24
24
|
|
|
25
|
-
event.detail: `{ value, option }`. `value` is the option’s `data-value
|
|
25
|
+
event.detail: `{ value, option } or { values, added, removed, option }`. On a listbox, `value` is the option’s `data-value` or trimmed text. On a multi-select, `values` is the array of selected values and `added` / `removed` name the change.
|
|
26
26
|
|
|
27
27
|
### mero:tab
|
|
28
28
|
|
|
@@ -36,15 +36,45 @@ Fires on a `data-mero-toggle` button after a click flips its `aria-pressed`.
|
|
|
36
36
|
|
|
37
37
|
event.detail: `{ pressed }`. `pressed` is the new state, a boolean.
|
|
38
38
|
|
|
39
|
+
### mero:select
|
|
40
|
+
|
|
41
|
+
Fires on a combobox input after a person selects an option and Mero writes the value and fires `change`.
|
|
42
|
+
|
|
43
|
+
event.detail: `{ value, label, option }`. `value` is the option’s `data-value` or trimmed text, `label` is its trimmed text and `option` is the chosen element.
|
|
44
|
+
|
|
45
|
+
### mero:dialog
|
|
46
|
+
|
|
47
|
+
Fires on a `<dialog>` when Mero opens it and when any `<dialog>` closes.
|
|
48
|
+
|
|
49
|
+
event.detail: `{ open, dialog, returnValue }`. `open` is a boolean, `dialog` is the dialog element and `returnValue` is the dialog’s return value on close (empty string on open).
|
|
50
|
+
|
|
51
|
+
### mero:peek
|
|
52
|
+
|
|
53
|
+
Fires on the `data-mero-peek` region when the row preview opens, moves to another row or closes (or on `document` if the region was removed). Swaps that keep the same row open do not repeat the event.
|
|
54
|
+
|
|
55
|
+
event.detail: `{ open, key, href, link, panel }`. `open` is a boolean, `key` is the row’s ID or link `href`, and `href`, `link` and `panel` are set while open and `null` on close.
|
|
56
|
+
|
|
57
|
+
### mero:dirty
|
|
58
|
+
|
|
59
|
+
Fires on a `form[data-mero-dirty]` when its dirty state changes between clean and modified. Does not fire at load or from `MeroUI.init()`. Requires `mero-forms.js`.
|
|
60
|
+
|
|
61
|
+
event.detail: `{ dirty, form }`. `dirty` is a boolean and `form` is the form element.
|
|
62
|
+
|
|
63
|
+
### mero:boost-unmatched
|
|
64
|
+
|
|
65
|
+
Fires on a boosted non-GET element (or on `document` when detached) when the server’s response does not contain the `data-mero-boost` region. Mero cancels the swap and keeps the current page instead of navigating to the action URL with GET.
|
|
66
|
+
|
|
67
|
+
event.detail: `{ source, status, method, url, text, response }`. `source` is the requesting element, `status` is the HTTP status code (or 0), `method` is the uppercase HTTP method, `url` is the final response or action URL, `text` is the raw response body and `response` is the htmx response object.
|
|
68
|
+
|
|
39
69
|
### mero:query
|
|
40
70
|
|
|
41
|
-
Fires on a remote combobox input when it needs fresh options, for example an arrow key after a failed request. Add it to `hx-trigger` next to `input`. To follow the option a person chooses, listen for the native `change` event on the input,
|
|
71
|
+
Fires on a remote combobox input when it needs fresh options, for example an arrow key after a failed request. Add it to `hx-trigger` next to `input`. To follow the option a person chooses, listen for `mero:select` or the native `change` event on the input, both of which bubble.
|
|
42
72
|
|
|
43
73
|
### mero:action
|
|
44
74
|
|
|
45
75
|
Fires on a `data-mero-action` button or a `data-mero-form` when its request starts and when it ends, or on the document when a swap removed the element. Requires `mero-forms.js`.
|
|
46
76
|
|
|
47
|
-
event.detail: `{ state, status, message }`. `state` is `pending`, `succeeded`, `rejected` or `unknown`. `status` and `message` are set once the request ends
|
|
77
|
+
event.detail: `{ state, status, message, source, id }`. `state` is `pending`, `succeeded`, `rejected` or `unknown`. `source` is the originating form or button (even when detached by a swap) and `id` is its `id` or `null`. `status` and `message` are set once the request ends; `status` is 0 when no response arrived.
|
|
48
78
|
|
|
49
79
|
### mero:refresh
|
|
50
80
|
|
|
@@ -87,9 +117,9 @@ HX-Trigger: {"mero:form-saved":{"message":"Saved"}}
|
|
|
87
117
|
|
|
88
118
|
Opens a `<dialog>` as a modal. Pass the element or its ID. Focus returns to `trigger` on close, by default the element focused when you call it.
|
|
89
119
|
|
|
90
|
-
### MeroUI.close(dialog, { focus, value })
|
|
120
|
+
### MeroUI.close(dialog, { focus, value, preserveToasts })
|
|
91
121
|
|
|
92
|
-
Closes an open dialog. `focus` overrides where focus returns. `value` becomes the dialog’s `returnValue`.
|
|
122
|
+
Closes an open dialog. `focus` overrides where focus returns. `value` becomes the dialog’s `returnValue`. Set `preserveToasts: true` to move live toasts inside the dialog to `document.body` instead of removing them.
|
|
93
123
|
|
|
94
124
|
### MeroUI.toast(message, { tone, duration, trigger })
|
|
95
125
|
|
|
@@ -97,7 +127,15 @@ Shows a notification. `tone` is `accent`, `success`, `warning` or `danger`. `dur
|
|
|
97
127
|
|
|
98
128
|
### MeroUI.init(root)
|
|
99
129
|
|
|
100
|
-
Sets up tabs, listboxes, comboboxes
|
|
130
|
+
Sets up tabs, listboxes, comboboxes, auto-opening dialogs, and—when loaded—`mero-forms.js` state helpers (`data-mero-dirty`, `data-mero-show-when`, `data-mero-confirm`) and `mero-live.js` polling inside `root`. Mero calls it for every htmx swap. Call it yourself for markup you insert another way.
|
|
131
|
+
|
|
132
|
+
### MeroUI.cleanup(root)
|
|
133
|
+
|
|
134
|
+
Tears down Mero state inside `root` before removing it outside htmx: stops and aborts `data-mero-live` polls, clears tracked tooltips and closes any open row preview in `root`.
|
|
135
|
+
|
|
136
|
+
### MeroUI.configure({ messages, locale, dialogBackdrop })
|
|
137
|
+
|
|
138
|
+
Configures runtime strings (`messages`), default formatting locale (`locale`, or `"document"` / `"browser"`) and backdrop light-dismiss scope (`dialogBackdrop`: `"all"` or `"mero-only"`). Returns the resolved configuration snapshot.
|
|
101
139
|
|
|
102
140
|
## Component attributes
|
|
103
141
|
|
|
@@ -107,6 +145,7 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
|
|
|
107
145
|
- `data-mero-close` — On a control inside a dialog. Closes it. The value becomes the dialog’s `returnValue`.
|
|
108
146
|
- `data-mero-autoopen` — On a dialog. Opens it as soon as it is on the page or swapped in.
|
|
109
147
|
- `data-mero-static` — On a dialog. A click on the backdrop does not close it.
|
|
148
|
+
- `data-mero-dialog` — On a dialog without `.mero-dialog`. Opts the dialog into backdrop light-dismiss when `MeroUI.configure({ dialogBackdrop: "mero-only" })` is set.
|
|
110
149
|
- `data-mero-toast` — On a button. Shows the value as a notification on click.
|
|
111
150
|
- `data-mero-tone` — With `data-mero-toast`. One of `accent`, `success`, `warning` or `danger`.
|
|
112
151
|
- `data-mero-toggle` — On a button. Flips `aria-pressed` on click.
|
|
@@ -121,6 +160,10 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
|
|
|
121
160
|
- `data-mero-combo` — Root of a combobox. Wraps the `role="combobox"` input and its options.
|
|
122
161
|
- `data-mero-combo-remote` — On the combobox root when the options come from your server. Mero then leaves filtering to the response.
|
|
123
162
|
- `data-mero-combo-status` — Inside a combobox. The element that receives loading and error text.
|
|
163
|
+
- `data-mero-multiselect` — With `data-mero-combo`. Turns a combobox into a multi-select tag picker whose selected chips submit as hidden inputs and emit `mero:selection`. See the [Combo Box](components/combo-box.md) Multi-select variant.
|
|
164
|
+
- `data-mero-multiselect-chips` — Inside a `data-mero-multiselect`. The list element holding selected `.mero-chip` items and their hidden inputs.
|
|
165
|
+
- `data-mero-multiselect-name` — On a `data-mero-multiselect`. The field `name` used for generated hidden inputs.
|
|
166
|
+
- `data-mero-multiselect-remove` — On a chip’s remove button inside `data-mero-multiselect`. Removes the chip, updates `aria-selected` and moves focus to a neighbour or the combobox input.
|
|
124
167
|
- `data-mero-empty-option` — On the option to show when nothing matches. It cannot be selected.
|
|
125
168
|
- `data-mero-active` (set by Mero) — On the option highlighted with the keyboard.
|
|
126
169
|
- `data-mero-combo-pending` (set by Mero) — On the combobox input while a request for options is in flight.
|
|
@@ -138,12 +181,14 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
|
|
|
138
181
|
- `data-mero-restore-focus` — On a list container. After Back to this page, focuses the link in it that was opened. Links are matched by `href`.
|
|
139
182
|
- `data-mero-copy-target` — On a button. A selector for an input, textarea or element whose value or text the button copies, then confirms with a “Copied” notification. When the browser blocks clipboard access, Mero selects the text instead. Prefer it for secrets. See the [Button](components/button.md) Copy to clipboard variant.
|
|
140
183
|
- `data-mero-copy-message` — With `data-mero-copy` or `data-mero-copy-target`. Replaces the “Copied” notification.
|
|
141
|
-
- `data-mero-time` — On a `<time datetime>`. Rewrites its text in the
|
|
184
|
+
- `data-mero-time` — On a `<time datetime>`. Rewrites its text in the resolved locale and reader’s time zone: `absolute` (date and time), `date`, `time` or `relative` (“5 minutes ago”, refreshed every minute, with the full date in `title`). Follows a differing `[lang]` ancestor automatically, or `data-mero-locale` / `MeroUI.configure({ locale })`. Render the UTC time as its text for readers without scripts. See the [Typography](components/typography.md) Local time variant.
|
|
185
|
+
- `data-mero-locale` — On a `<time data-mero-time>`, a `data-mero-live` region or an ancestor. Overrides the BCP-47 locale used to format dates and times, or accepts `document` (follow `[lang]`) or `browser` (always use the browser locale).
|
|
142
186
|
- `data-mero-shortcut` — On a control. A single key such as `/` or `n`, or a two-key sequence such as `g r`, that focuses a field or clicks anything else. Ignored while typing in a field, in a menu, list, tab list, grid or combobox, with Ctrl, Cmd or Alt held, and outside an open modal dialog. Mero sets `aria-keyshortcuts` for single keys. See the [Kbd](components/kbd.md) Keyboard shortcuts variant.
|
|
143
187
|
- `data-mero-shortcuts-toggle` — On a checkbox, switch, `menuitemcheckbox` or button. Turns single-key shortcuts off and on for every page in this browser, as WCAG 2.1.4 requires, and removes `aria-keyshortcuts` while they are off. Mero keeps its checked or pressed state in step.
|
|
144
188
|
- `data-mero-focus-fallback` — On one focusable element inside an htmx swap target, or inside a `data-mero-restore-focus` container. When a swap or morph removes the focused element and leaves focus on the page body, Mero focuses the same element if it survived, else the element with its ID, else this fallback. Mero only acts when focus was inside the target as the swap began, never after the person moved focus elsewhere, and a server `autofocus` wins.
|
|
145
189
|
- `data-mero-focus-manual` — On an htmx swap target, or an ancestor. Mero leaves focus after swaps inside it to your own code.
|
|
146
|
-
- `data-mero-boost` — On an element with `hx-boost:inherited`, such as `<body>`. A selector for the region every boosted page contains. The newest
|
|
190
|
+
- `data-mero-boost` — On an element with `hx-boost:inherited`, such as `<body>`. A selector for the region every boosted page contains. Guards both boosted requests and declarative `hx-get` requests whose target is or contains the region (unless opted out with `data-mero-boost-ignore`), automatically selecting the region from full-page answers when the control omits `hx-select`. The newest GET wins and older ones are aborted; boosted forms that change data are never aborted. A guarded GET response without the region and without `HX-Redirect`, `HX-Location` or `HX-Refresh`, or a GET that fails without a response, becomes a full page load. A boosted non-GET response without the region cancels the swap, leaves the page intact and fires `mero:boost-unmatched` instead of issuing a GET to the action URL. When a guarded page swaps in, open dialogs other than static and alert dialogs close, and focus moves to the region unless htmx `autofocus` placed it or the person moved it during the load. See the [Drawer](components/drawer.md) Boosted navigation variant.
|
|
191
|
+
- `data-mero-boost-ignore` — On a control or ancestor inside a `data-mero-boost` container. Opts declarative `hx-get` fragment requests targeting the boosted region out of the boost guard, automatic region selection, dialog closing and full-load fallback.
|
|
147
192
|
- `data-mero-pending` — On any element. Shows a `.mero-indicator` inside it, as `.htmx-request` does.
|
|
148
193
|
- `data-mero-request` — With a pending state. Sets a progress cursor on the element.
|
|
149
194
|
|
|
@@ -155,7 +200,7 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
|
|
|
155
200
|
- `data-mero-confirm-reason` — On the optional reason field. Add `required` to require a non-empty, trimmed value.
|
|
156
201
|
- `data-mero-confirm-submit` — On the danger submit button. Render it disabled until the phrase and any required reason are ready.
|
|
157
202
|
- `data-mero-confirm-hint` — A polite status in the form explaining what still needs to be entered. Associate it with the input and the confirm button.
|
|
158
|
-
- `data-mero-form` — On a form that htmx submits. Disables its submit buttons while the request runs, swaps in the replacement form on HTTP 422 and focuses the first invalid field. Reports the outcome like `data-mero-action`: the submitter gets `data-mero-action-state`, the form fires `mero:action`, and `Mero-Action-Outcome` and `Mero-Action-Message` override the state and the error text. A `mero:form-saved` trigger only acts on a succeeded outcome. A succeeded `Mero-Action-Message` shows as a toast.
|
|
203
|
+
- `data-mero-form` — On a form that htmx submits. Disables its submit buttons and marks editable fields and multi-select containers `inert` while the request runs (without affecting submitted form data; pass `data-mero-form="keep-editable"` for composers that preserve mid-flight drafts), swaps in the replacement form on HTTP 422 and focuses the first invalid field. Reports the outcome like `data-mero-action`: the submitter gets `data-mero-action-state`, the form fires `mero:action`, and `Mero-Action-Outcome` and `Mero-Action-Message` override the state and the error text. A `mero:form-saved` trigger only acts on a succeeded outcome. A succeeded `Mero-Action-Message` shows as a toast.
|
|
159
204
|
- `data-mero-clear-passwords` — On a `data-mero-form`. Empties its password fields after every response, whatever the outcome, and in the replacement form after a 422.
|
|
160
205
|
- `data-mero-action` — On a button outside a form that makes an htmx request. Shows its outcome and ignores clicks while the request runs. `Mero-Action-Outcome` and `Mero-Action-Message` response headers override the state and the text.
|
|
161
206
|
- `data-mero-action-state` (set by Mero) — On a `data-mero-action` button, or on the button that submitted a `data-mero-form` (the form itself when there is none): `pending`, then `succeeded` (2xx), `rejected` (4xx other than 408) or `unknown` (anything else, including network errors, timeouts and a request aborted after it was sent). A request cancelled before it was sent clears the state.
|
|
@@ -168,8 +213,12 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
|
|
|
168
213
|
- `data-mero-form-error` — Inside the form. Receives the message when a request fails with a status other than 422. Send your own text in a `Mero-Form-Error` response header.
|
|
169
214
|
- `data-mero-return-focus` — On the form. Selector for the element to focus after `mero:form-saved`.
|
|
170
215
|
- `data-mero-fallback-focus` — On the form. Selector to focus when the return-focus element is gone.
|
|
171
|
-
- `data-mero-show-when` — On a branch inside a form, ideally a `<fieldset>`. `field=value other` shows the branch while the form’s field has one of the values and hides and disables it otherwise, so its fields neither validate nor submit. Render the right state on the server too. See the [Fieldset](components/fieldset.md) Conditional fields variant.
|
|
172
|
-
- `data-mero-
|
|
216
|
+
- `data-mero-show-when` — On a branch inside a form, ideally a `<fieldset>`. `field=value other` shows the branch while the form’s field has one of the values (or `field!=value other` when it has none of them) and hides and disables it otherwise, so its fields neither validate nor submit. Render the right state on the server too. See the [Fieldset](components/fieldset.md) Conditional fields variant.
|
|
217
|
+
- `data-mero-show-when-keep-enabled` — With `data-mero-show-when`. Hides the branch visually without disabling its controls, so hidden fields still submit.
|
|
218
|
+
- `data-mero-dirty` — On a form. Keeps its submit buttons disabled until a field or `data-mero-multiselect` differs from the value the server rendered, emits `mero:dirty` on transitions, and resets its baseline after `mero:form-saved` when the form stays in the page.
|
|
219
|
+
- `data-mero-dirty-guard` — With `data-mero-dirty`. Prompts before boosted navigation or page unload while the form has unsaved edits. Optional value overrides the confirmation message.
|
|
220
|
+
- `data-mero-conflict-swap` — On a `data-mero-form`. Allows HTTP 409 responses to swap a conflict or merge replacement form (like HTTP 422) without overwriting the form error banner.
|
|
221
|
+
- `data-mero-conflict-focus` — On a control inside a swapped 409 conflict form. Receives focus automatically after the swap, ahead of `aria-invalid`.
|
|
173
222
|
- `data-mero-close-all` — On a form in a nested dialog. A save closes the parent dialogs too.
|
|
174
223
|
- `data-mero-hold` — Keeps the page while something the person cannot get back is on its way or on screen. On a `data-mero-form` or `data-mero-action` button it holds while the request is pending. On a `data-mero-ephemeral` element it holds while the element has content. While held, Mero cancels boosted navigation, history restores and requests whose target is the body or contains the held element, undoes Back to another htmx history entry and asks before the page unloads. Requests from controls inside the held content still run. The value is the warning shown as a toast; empty uses a generic text. See the [Form](components/form.md) One-time credential variant.
|
|
175
224
|
- `data-mero-ephemeral` — On the element that receives a one-time secret, such as a new API token. Mero empties it when its dialog closes, when a `data-mero-ephemeral-dismiss` button inside it is activated, and when the page is hidden, so the back-forward cache cannot show it again. Add `data-mero-hold` to keep the page while it has content.
|
|
@@ -259,7 +308,7 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
|
|
|
259
308
|
- `data-mero-theme-scope` — On a section. Receives the theme chosen in the picker inside it.
|
|
260
309
|
- `data-mero-theme-picker` — On a select or radio. Its value becomes the scope’s `data-theme`.
|
|
261
310
|
- `data-mero-cutoff-hour` — Around a `<time>`. Counts down to that hour, 0 to 23 in UTC.
|
|
262
|
-
- `data-mero-check-form` —
|
|
311
|
+
- `data-mero-check-form` — Deprecated. Demo-only validation form hook; will be removed in 1.0.
|
|
263
312
|
|
|
264
313
|
## State Mero owns
|
|
265
314
|
|
|
@@ -276,7 +325,7 @@ The native and ARIA state Mero writes besides the attributes marked set by Mero
|
|
|
276
325
|
- Shortcuts (mero.js) — `aria-keyshortcuts` on a `data-mero-shortcut` element. On a `data-mero-shortcuts-toggle`: `checked` on a checkbox, otherwise `aria-checked` or `aria-pressed`.
|
|
277
326
|
- Radio group (mero.js) — For a `data-mero-radio-group` outside a form: the `form` attribute on each radio, pointing at a hidden form Mero adds, and `checked` on the selected radio.
|
|
278
327
|
- Toast and peek (mero.js) — Mero creates these elements and sets their `role`, `aria-label`, `aria-live` and `aria-hidden`.
|
|
279
|
-
- Form (mero-forms.js) — On a `data-mero-form` while its request runs: `aria-busy` on the form
|
|
328
|
+
- Form (mero-forms.js) — On a `data-mero-form` while its request runs: `aria-busy` on the form, `disabled` on its submit buttons and `inert` on its editable fields, reset buttons and multi-select containers (restored when the request ends if the form survives). `hidden` on its `data-mero-form-error` element and on a `data-mero-action-unknown` panel. With `data-mero-clear-passwords`: the value of its password inputs, cleared when the request ends unless it was cancelled.
|
|
280
329
|
- Action button (mero-forms.js) — On a `data-mero-action` button while its request runs: `aria-busy` and `aria-disabled`. `hidden` on a `data-mero-action-unknown` panel, and `hidden` and `data-tone` on `data-mero-action-status`. `aria-busy` on the region a `data-mero-action-reread` selector names, while Mero reads it again. That is the selected region, not the button, form or ancestor that carries the attribute, and it applies to a `data-mero-form` too.
|
|
281
330
|
- Typed confirmation (mero-forms.js) — `disabled` on `data-mero-confirm-submit`. The value of `data-mero-confirm-input`, cleared when its dialog closes.
|
|
282
331
|
- Show-when (mero-forms.js) — `hidden` on the branch, and `disabled` on a fieldset branch and on the controls inside a branch.
|
|
@@ -293,6 +342,7 @@ The `Mero-*` HTTP headers. Your server sends the response headers. Mero sends th
|
|
|
293
342
|
- `Mero-Action-Message` (response, mero-forms.js) — Text to show for the outcome of a `data-mero-action` or `data-mero-form` request.
|
|
294
343
|
- `Mero-Form-Error` (response, mero-forms.js) — Fallback text for a failed request. A form shows it when there is no `Mero-Action-Message` and no `data-mero-action-unknown` text, and never for a 422 without `Mero-Action-Outcome`, where the replacement form shows its own errors. A search shows it when `data-mero-search-error` has no value.
|
|
295
344
|
- `Mero-Live` (response, mero-live.js) — `done` on the final successful read of a `data-mero-live` region. Polling stops.
|
|
345
|
+
- `Mero-Live-Interval` (response, mero-live.js) — Positive interval in milliseconds returned on a successful `data-mero-live` read to adjust subsequent polling cadence.
|
|
296
346
|
- `Mero-Reread` (request, mero-forms.js) — A number Mero sends with the GET that reads again the region a `data-mero-action-reread` selector names.
|
|
297
347
|
|
|
298
348
|
## With Alpine or your own scripts
|
|
@@ -300,16 +350,16 @@ The `Mero-*` HTTP headers. Your server sends the response headers. Mero sends th
|
|
|
300
350
|
What a browser test proves about Mero next to Alpine. It runs Alpine 3.14.8, the oldest version tested, and Alpine 3.17.5, with htmx 4.0.2 and its `hx-alpine-compat` extension loaded straight after htmx. Other Alpine versions and setups without the extension are not tested. The events are listed under “Events Mero sends”.
|
|
301
351
|
|
|
302
352
|
- Script order — With Mero and Alpine both loaded as deferred scripts, either order works.
|
|
303
|
-
- Listen, do not read — Put `x-on:mero:selection`, `x-on:mero:tab` or `x-on:mero:
|
|
304
|
-
- mero:action — For a form that stays in the page, or that a 422 response replaces with another `data-mero-form`, a listener on an ancestor hears both the pending and the final event. When the swap removes the
|
|
305
|
-
- Combobox — Use `x-model.lazy` on the combobox input. Choosing an option fires `change` and
|
|
306
|
-
- Writing a field value — A script that sets an input’s value fires no event. Dispatch a bubbling `change` on the input afterwards, or `data-mero-dirty` and `data-mero-show-when` keep their old state.
|
|
307
|
-
- htmx swaps — After an `innerHTML` swap into an `x-data` element, and after an `outerMorph` swap of one with `hx-alpine-compat` loaded, the Alpine state survives, Alpine binds the new children and Mero sets up the tabs in the new content.
|
|
308
|
-
- Markup Alpine inserts — Mero does not
|
|
353
|
+
- Listen, do not read — Put `x-on:mero:selection`, `x-on:mero:tab`, `x-on:mero:toggle`, `x-on:mero:select`, `x-on:mero:dialog` or `x-on:mero:dirty` on an `x-data` ancestor of the component. Each event arrives after Mero has written the state, so the listener sees the new state. Mero selecting a tab or flipping a toggle inside an `x-data` root leaves Alpine’s own state alone.
|
|
354
|
+
- mero:action — For a form or `data-mero-action` button that stays in the page, or a form that a 422 response replaces with another `data-mero-form`, a listener on an ancestor hears both the pending and the final event. When the swap removes the element and leaves no replacement, the final event fires on the document; use `@mero:action.window` on an Alpine component or a native listener on `document`. The detail is `{ state, source, id }` while pending and `{ state, status, message, source, id }` at the end, so a window listener can identify which form or button settled by `id` or `source` even after removal. Tested with `data-mero-form` and `data-mero-action` across succeeded, rejected and unknown outcomes.
|
|
355
|
+
- Combobox — Use `@mero:select` or `x-model.lazy` on the combobox input. Choosing an option fires `change` and `mero:select`, and never fires a synthetic `input` event (so remote comboboxes do not trigger a redundant server search).
|
|
356
|
+
- Writing a field value — A script that sets an input’s value fires no event. Dispatch a bubbling `change` on the input afterwards, or `data-mero-dirty`, `mero:dirty` and `data-mero-show-when` keep their old state.
|
|
357
|
+
- htmx swaps — After an `innerHTML` swap into an `x-data` element, and after an `innerMorph` or `outerMorph` swap of one with `hx-alpine-compat` loaded, the Alpine state survives, Alpine binds the new children and Mero sets up the tabs in the new content.
|
|
358
|
+
- Markup Alpine inserts or removes — Mero does not watch `x-if` or `x-teleport` insertions automatically. Call `MeroUI.init(el)` on the inserted element to set up tabs, `mero-forms.js` state helpers (`data-mero-dirty`, `data-mero-show-when`, `data-mero-confirm`) and `mero-live.js` polling (`mero-live.js` also invokes `htmx.process()` on an unprocessed live region; call `htmx.process(el)` explicitly for any other manually inserted `hx-*` controls). Repeated calls do not duplicate setup and reconcile state that changed between calls. Call `MeroUI.cleanup(el)` before removing a subtree with a `data-mero-live` region so pending polls stop immediately.
|
|
309
359
|
|
|
310
360
|
# Carousel
|
|
311
361
|
|
|
312
|
-
Mero UI 0.
|
|
362
|
+
Mero UI 0.10.0 · Media galleries
|
|
313
363
|
|
|
314
364
|
Browse product photography with native scroll snap, thumbnails and keyboard controls.
|
|
315
365
|
|
|
@@ -386,7 +436,7 @@ Template
|
|
|
386
436
|
|
|
387
437
|
# Hover Gallery
|
|
388
438
|
|
|
389
|
-
Mero UI 0.
|
|
439
|
+
Mero UI 0.10.0 · Media galleries
|
|
390
440
|
|
|
391
441
|
Explore the shade, base and profile of a product with a pointer, touch or keyboard.
|
|
392
442
|
|
|
@@ -463,7 +513,7 @@ Template
|
|
|
463
513
|
|
|
464
514
|
# Image Diff
|
|
465
515
|
|
|
466
|
-
Mero UI 0.
|
|
516
|
+
Mero UI 0.10.0 · Media galleries
|
|
467
517
|
|
|
468
518
|
Reveal two finishes at the same position using an accessible comparison slider.
|
|
469
519
|
|
|
@@ -505,7 +555,7 @@ Template
|
|
|
505
555
|
|
|
506
556
|
# Holo Card
|
|
507
557
|
|
|
508
|
-
Mero UI 0.
|
|
558
|
+
Mero UI 0.10.0 · Media galleries
|
|
509
559
|
|
|
510
560
|
Catch a material sample in a shifting foil reflection.
|
|
511
561
|
|
|
@@ -537,7 +587,7 @@ Template
|
|
|
537
587
|
|
|
538
588
|
# Data Grid
|
|
539
589
|
|
|
540
|
-
Mero UI 0.
|
|
590
|
+
Mero UI 0.10.0 · Studio collections
|
|
541
591
|
|
|
542
592
|
Search, sort, select and edit products in a server-rendered collection.
|
|
543
593
|
|
|
@@ -695,7 +745,7 @@ Template
|
|
|
695
745
|
|
|
696
746
|
# Action Bar
|
|
697
747
|
|
|
698
|
-
Mero UI 0.
|
|
748
|
+
Mero UI 0.10.0 · Studio collections
|
|
699
749
|
|
|
700
750
|
Select records and apply one status change to the selection.
|
|
701
751
|
|
|
@@ -739,7 +789,7 @@ Template
|
|
|
739
789
|
|
|
740
790
|
# Agenda
|
|
741
791
|
|
|
742
|
-
Mero UI 0.
|
|
792
|
+
Mero UI 0.10.0 · Studio collections
|
|
743
793
|
|
|
744
794
|
Browse daily bookings and add a timed event.
|
|
745
795
|
|
|
@@ -776,7 +826,7 @@ Template
|
|
|
776
826
|
|
|
777
827
|
# File Tree
|
|
778
828
|
|
|
779
|
-
Mero UI 0.
|
|
829
|
+
Mero UI 0.10.0 · Studio collections
|
|
780
830
|
|
|
781
831
|
Expand folders and preview a selected file with native disclosure controls.
|
|
782
832
|
|
|
@@ -799,7 +849,7 @@ Template
|
|
|
799
849
|
|
|
800
850
|
# Floating TOC
|
|
801
851
|
|
|
802
|
-
Mero UI 0.
|
|
852
|
+
Mero UI 0.10.0 · Studio collections
|
|
803
853
|
|
|
804
854
|
Navigate to sections with an index that follows the reading position.
|
|
805
855
|
|
|
@@ -822,7 +872,7 @@ Template
|
|
|
822
872
|
|
|
823
873
|
# Hover Card
|
|
824
874
|
|
|
825
|
-
Mero UI 0.
|
|
875
|
+
Mero UI 0.10.0 · Studio collections
|
|
826
876
|
|
|
827
877
|
Preview a contributor on hover, focus or tap.
|
|
828
878
|
|
|
@@ -847,7 +897,7 @@ Template
|
|
|
847
897
|
|
|
848
898
|
# Item Card
|
|
849
899
|
|
|
850
|
-
Mero UI 0.
|
|
900
|
+
Mero UI 0.10.0 · Studio collections
|
|
851
901
|
|
|
852
902
|
Give a related destination an identity, title and supporting detail.
|
|
853
903
|
|
|
@@ -870,7 +920,7 @@ Template
|
|
|
870
920
|
|
|
871
921
|
# Item Card Group
|
|
872
922
|
|
|
873
|
-
Mero UI 0.
|
|
923
|
+
Mero UI 0.10.0 · Studio collections
|
|
874
924
|
|
|
875
925
|
Arrange related destinations into a responsive group.
|
|
876
926
|
|
|
@@ -893,7 +943,7 @@ Template
|
|
|
893
943
|
|
|
894
944
|
# Kanban
|
|
895
945
|
|
|
896
|
-
Mero UI 0.
|
|
946
|
+
Mero UI 0.10.0 · Studio collections
|
|
897
947
|
|
|
898
948
|
Move a card between stages with a drag or its Move to menu.
|
|
899
949
|
|
|
@@ -918,7 +968,7 @@ Template
|
|
|
918
968
|
|
|
919
969
|
# List View
|
|
920
970
|
|
|
921
|
-
Mero UI 0.
|
|
971
|
+
Mero UI 0.10.0 · Studio collections
|
|
922
972
|
|
|
923
973
|
Browse structured destinations in a compact keyboard-accessible list.
|
|
924
974
|
|
|
@@ -941,7 +991,7 @@ Template
|
|
|
941
991
|
|
|
942
992
|
# Map
|
|
943
993
|
|
|
944
|
-
Mero UI 0.
|
|
994
|
+
Mero UI 0.10.0 · Studio collections
|
|
945
995
|
|
|
946
996
|
Choose a location on a self-contained campus map and read its address.
|
|
947
997
|
|
|
@@ -966,7 +1016,7 @@ Template
|
|
|
966
1016
|
|
|
967
1017
|
# Timeline
|
|
968
1018
|
|
|
969
|
-
Mero UI 0.
|
|
1019
|
+
Mero UI 0.10.0 · Studio collections
|
|
970
1020
|
|
|
971
1021
|
Present milestones in order and identify the current step.
|
|
972
1022
|
|
|
@@ -989,7 +1039,7 @@ Template
|
|
|
989
1039
|
|
|
990
1040
|
# Widget
|
|
991
1041
|
|
|
992
|
-
Mero UI 0.
|
|
1042
|
+
Mero UI 0.10.0 · Studio collections
|
|
993
1043
|
|
|
994
1044
|
Use a dashboard panel to track a checklist and its progress.
|
|
995
1045
|
|
|
@@ -1012,7 +1062,7 @@ Template
|
|
|
1012
1062
|
|
|
1013
1063
|
# Cell Color Picker
|
|
1014
1064
|
|
|
1015
|
-
Mero UI 0.
|
|
1065
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1016
1066
|
|
|
1017
1067
|
Change one preference and receive inline confirmation from the server.
|
|
1018
1068
|
|
|
@@ -1043,7 +1093,7 @@ Template
|
|
|
1043
1093
|
|
|
1044
1094
|
# Cell Select
|
|
1045
1095
|
|
|
1046
|
-
Mero UI 0.
|
|
1096
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1047
1097
|
|
|
1048
1098
|
Change one preference and receive inline confirmation from the server.
|
|
1049
1099
|
|
|
@@ -1074,7 +1124,7 @@ Template
|
|
|
1074
1124
|
|
|
1075
1125
|
# Cell Slider
|
|
1076
1126
|
|
|
1077
|
-
Mero UI 0.
|
|
1127
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1078
1128
|
|
|
1079
1129
|
Change one preference and receive inline confirmation from the server.
|
|
1080
1130
|
|
|
@@ -1105,7 +1155,7 @@ Template
|
|
|
1105
1155
|
|
|
1106
1156
|
# Cell Switch
|
|
1107
1157
|
|
|
1108
|
-
Mero UI 0.
|
|
1158
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1109
1159
|
|
|
1110
1160
|
Change one preference and receive inline confirmation from the server.
|
|
1111
1161
|
|
|
@@ -1136,7 +1186,7 @@ Template
|
|
|
1136
1186
|
|
|
1137
1187
|
# Checkbox Button Group
|
|
1138
1188
|
|
|
1139
|
-
Mero UI 0.
|
|
1189
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1140
1190
|
|
|
1141
1191
|
Select several release channels using native checkboxes.
|
|
1142
1192
|
|
|
@@ -1164,7 +1214,7 @@ Template
|
|
|
1164
1214
|
|
|
1165
1215
|
# Radio Button Group
|
|
1166
1216
|
|
|
1167
|
-
Mero UI 0.
|
|
1217
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1168
1218
|
|
|
1169
1219
|
Choose one release schedule with labelled option cards.
|
|
1170
1220
|
|
|
@@ -1191,7 +1241,7 @@ Template
|
|
|
1191
1241
|
|
|
1192
1242
|
# Native Select
|
|
1193
1243
|
|
|
1194
|
-
Mero UI 0.
|
|
1244
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1195
1245
|
|
|
1196
1246
|
Choose a workspace from labelled option groups.
|
|
1197
1247
|
|
|
@@ -1216,7 +1266,7 @@ Template
|
|
|
1216
1266
|
|
|
1217
1267
|
# Inline Select
|
|
1218
1268
|
|
|
1219
|
-
Mero UI 0.
|
|
1269
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1220
1270
|
|
|
1221
1271
|
Change an audience within the sentence that describes it.
|
|
1222
1272
|
|
|
@@ -1241,7 +1291,7 @@ Template
|
|
|
1241
1291
|
|
|
1242
1292
|
# Number Stepper
|
|
1243
1293
|
|
|
1244
|
-
Mero UI 0.
|
|
1294
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1245
1295
|
|
|
1246
1296
|
Change a bounded quantity with the keyboard or step buttons.
|
|
1247
1297
|
|
|
@@ -1271,7 +1321,7 @@ Template
|
|
|
1271
1321
|
|
|
1272
1322
|
# File Input
|
|
1273
1323
|
|
|
1274
|
-
Mero UI 0.
|
|
1324
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1275
1325
|
|
|
1276
1326
|
Choose a local product image and validate it on the server.
|
|
1277
1327
|
|
|
@@ -1302,7 +1352,7 @@ Template
|
|
|
1302
1352
|
|
|
1303
1353
|
# Drop Zone
|
|
1304
1354
|
|
|
1305
|
-
Mero UI 0.
|
|
1355
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1306
1356
|
|
|
1307
1357
|
Drop an image or use the native file picker and check the file.
|
|
1308
1358
|
|
|
@@ -1335,7 +1385,7 @@ Template
|
|
|
1335
1385
|
|
|
1336
1386
|
# Rich Text Editor
|
|
1337
1387
|
|
|
1338
|
-
Mero UI 0.
|
|
1388
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1339
1389
|
|
|
1340
1390
|
Edit a short description with bold and italic text and preview the submitted result.
|
|
1341
1391
|
|
|
@@ -1369,7 +1419,7 @@ Template
|
|
|
1369
1419
|
|
|
1370
1420
|
# Joined Filter
|
|
1371
1421
|
|
|
1372
|
-
Mero UI 0.
|
|
1422
|
+
Mero UI 0.10.0 · Workspace forms
|
|
1373
1423
|
|
|
1374
1424
|
Search and filter releases with one server request.
|
|
1375
1425
|
|
|
@@ -1396,7 +1446,7 @@ Template
|
|
|
1396
1446
|
|
|
1397
1447
|
# App Layout
|
|
1398
1448
|
|
|
1399
|
-
Mero UI 0.
|
|
1449
|
+
Mero UI 0.10.0 · Workspace navigation
|
|
1400
1450
|
|
|
1401
1451
|
A responsive workspace with a sidebar, content area and mobile navigation drawer.
|
|
1402
1452
|
|
|
@@ -1431,7 +1481,7 @@ Template
|
|
|
1431
1481
|
|
|
1432
1482
|
# Sidebar
|
|
1433
1483
|
|
|
1434
|
-
Mero UI 0.
|
|
1484
|
+
Mero UI 0.10.0 · Workspace navigation
|
|
1435
1485
|
|
|
1436
1486
|
Navigate the workspace from a side rail that becomes a drawer at narrow widths.
|
|
1437
1487
|
|
|
@@ -1466,7 +1516,7 @@ Template
|
|
|
1466
1516
|
|
|
1467
1517
|
# Navbar
|
|
1468
1518
|
|
|
1469
|
-
Mero UI 0.
|
|
1519
|
+
Mero UI 0.10.0 · Workspace navigation
|
|
1470
1520
|
|
|
1471
1521
|
Place the workspace name and destinations in a wrapping top bar.
|
|
1472
1522
|
|
|
@@ -1489,7 +1539,7 @@ Template
|
|
|
1489
1539
|
|
|
1490
1540
|
# Command
|
|
1491
1541
|
|
|
1492
|
-
Mero UI 0.
|
|
1542
|
+
Mero UI 0.10.0 · Workspace navigation
|
|
1493
1543
|
|
|
1494
1544
|
Search destinations and actions, then use the arrows and Enter to execute.
|
|
1495
1545
|
|
|
@@ -1526,7 +1576,7 @@ Template
|
|
|
1526
1576
|
|
|
1527
1577
|
# Context Menu
|
|
1528
1578
|
|
|
1529
|
-
Mero UI 0.
|
|
1579
|
+
Mero UI 0.10.0 · Workspace navigation
|
|
1530
1580
|
|
|
1531
1581
|
Open item actions with the visible button, a secondary click, or Shift F10.
|
|
1532
1582
|
|
|
@@ -1556,7 +1606,7 @@ Template
|
|
|
1556
1606
|
|
|
1557
1607
|
# Segment
|
|
1558
1608
|
|
|
1559
|
-
Mero UI 0.
|
|
1609
|
+
Mero UI 0.10.0 · Workspace navigation
|
|
1560
1610
|
|
|
1561
1611
|
Choose one display density in a compact segmented control.
|
|
1562
1612
|
|
|
@@ -1583,7 +1633,7 @@ Template
|
|
|
1583
1633
|
|
|
1584
1634
|
# Stepper
|
|
1585
1635
|
|
|
1586
|
-
Mero UI 0.
|
|
1636
|
+
Mero UI 0.10.0 · Workspace navigation
|
|
1587
1637
|
|
|
1588
1638
|
Move through validated project details and review the values before submitting.
|
|
1589
1639
|
|
|
@@ -1614,7 +1664,7 @@ Template
|
|
|
1614
1664
|
|
|
1615
1665
|
# Dock
|
|
1616
1666
|
|
|
1617
|
-
Mero UI 0.
|
|
1667
|
+
Mero UI 0.10.0 · Workspace navigation
|
|
1618
1668
|
|
|
1619
1669
|
Group frequently used workspace destinations in a compact navigation dock.
|
|
1620
1670
|
|
|
@@ -1639,7 +1689,7 @@ Template
|
|
|
1639
1689
|
|
|
1640
1690
|
# Megamenu
|
|
1641
1691
|
|
|
1642
|
-
Mero UI 0.
|
|
1692
|
+
Mero UI 0.10.0 · Workspace navigation
|
|
1643
1693
|
|
|
1644
1694
|
Explore grouped destinations from a native disclosure.
|
|
1645
1695
|
|
|
@@ -1664,7 +1714,7 @@ Template
|
|
|
1664
1714
|
|
|
1665
1715
|
# Floating Action Button
|
|
1666
1716
|
|
|
1667
|
-
Mero UI 0.
|
|
1717
|
+
Mero UI 0.10.0 · Workspace navigation
|
|
1668
1718
|
|
|
1669
1719
|
Reveal a small set of workspace shortcuts.
|
|
1670
1720
|
|
|
@@ -1689,7 +1739,7 @@ Template
|
|
|
1689
1739
|
|
|
1690
1740
|
# Resizable
|
|
1691
1741
|
|
|
1692
|
-
Mero UI 0.
|
|
1742
|
+
Mero UI 0.10.0 · Workspace tools
|
|
1693
1743
|
|
|
1694
1744
|
Resize two adjacent panels by dragging the divider or using the arrow keys.
|
|
1695
1745
|
|
|
@@ -1743,7 +1793,7 @@ Template
|
|
|
1743
1793
|
|
|
1744
1794
|
# Emoji Picker
|
|
1745
1795
|
|
|
1746
|
-
Mero UI 0.
|
|
1796
|
+
Mero UI 0.10.0 · Workspace tools
|
|
1747
1797
|
|
|
1748
1798
|
Search named reactions and submit the selected emoji as a form value.
|
|
1749
1799
|
|
|
@@ -1773,7 +1823,7 @@ Template
|
|
|
1773
1823
|
|
|
1774
1824
|
# Area Chart
|
|
1775
1825
|
|
|
1776
|
-
Mero UI 0.
|
|
1826
|
+
Mero UI 0.10.0 · Charts
|
|
1777
1827
|
|
|
1778
1828
|
Show the volume and shape of a series over time.
|
|
1779
1829
|
|
|
@@ -1808,7 +1858,7 @@ Template
|
|
|
1808
1858
|
|
|
1809
1859
|
# Bar Chart
|
|
1810
1860
|
|
|
1811
|
-
Mero UI 0.
|
|
1861
|
+
Mero UI 0.10.0 · Charts
|
|
1812
1862
|
|
|
1813
1863
|
Compare adjacent categories on a shared linear scale.
|
|
1814
1864
|
|
|
@@ -1843,7 +1893,7 @@ Template
|
|
|
1843
1893
|
|
|
1844
1894
|
# Chart Tooltip
|
|
1845
1895
|
|
|
1846
|
-
Mero UI 0.
|
|
1896
|
+
Mero UI 0.10.0 · Charts
|
|
1847
1897
|
|
|
1848
1898
|
Inspect the active data point using a pointer or keyboard.
|
|
1849
1899
|
|
|
@@ -1878,7 +1928,7 @@ Template
|
|
|
1878
1928
|
|
|
1879
1929
|
# Composed Chart
|
|
1880
1930
|
|
|
1881
|
-
Mero UI 0.
|
|
1931
|
+
Mero UI 0.10.0 · Charts
|
|
1882
1932
|
|
|
1883
1933
|
Compare actual volume with its target using columns and a line.
|
|
1884
1934
|
|
|
@@ -1913,7 +1963,7 @@ Template
|
|
|
1913
1963
|
|
|
1914
1964
|
# Line Chart
|
|
1915
1965
|
|
|
1916
|
-
Mero UI 0.
|
|
1966
|
+
Mero UI 0.10.0 · Charts
|
|
1917
1967
|
|
|
1918
1968
|
Trace changes across a reporting period.
|
|
1919
1969
|
|
|
@@ -1976,7 +2026,7 @@ Template
|
|
|
1976
2026
|
|
|
1977
2027
|
# Pie Chart
|
|
1978
2028
|
|
|
1979
|
-
Mero UI 0.
|
|
2029
|
+
Mero UI 0.10.0 · Charts
|
|
1980
2030
|
|
|
1981
2031
|
See how each collection contributes to total volume.
|
|
1982
2032
|
|
|
@@ -2011,7 +2061,7 @@ Template
|
|
|
2011
2061
|
|
|
2012
2062
|
# Radar Chart
|
|
2013
2063
|
|
|
2014
|
-
Mero UI 0.
|
|
2064
|
+
Mero UI 0.10.0 · Charts
|
|
2015
2065
|
|
|
2016
2066
|
Compare profiles across axes that use the same units.
|
|
2017
2067
|
|
|
@@ -2046,7 +2096,7 @@ Template
|
|
|
2046
2096
|
|
|
2047
2097
|
# Radial Chart
|
|
2048
2098
|
|
|
2049
|
-
Mero UI 0.
|
|
2099
|
+
Mero UI 0.10.0 · Charts
|
|
2050
2100
|
|
|
2051
2101
|
Compare categories as concentric rings against the largest category.
|
|
2052
2102
|
|
|
@@ -2081,7 +2131,7 @@ Template
|
|
|
2081
2131
|
|
|
2082
2132
|
# KPI
|
|
2083
2133
|
|
|
2084
|
-
Mero UI 0.
|
|
2134
|
+
Mero UI 0.10.0 · Metrics
|
|
2085
2135
|
|
|
2086
2136
|
Pair an exact figure with the reporting period it describes.
|
|
2087
2137
|
|
|
@@ -2104,7 +2154,7 @@ Template
|
|
|
2104
2154
|
|
|
2105
2155
|
# KPI Group
|
|
2106
2156
|
|
|
2107
|
-
Mero UI 0.
|
|
2157
|
+
Mero UI 0.10.0 · Metrics
|
|
2108
2158
|
|
|
2109
2159
|
Keep related measures on a common reporting period.
|
|
2110
2160
|
|
|
@@ -2127,7 +2177,7 @@ Template
|
|
|
2127
2177
|
|
|
2128
2178
|
# Emoji Reaction Button
|
|
2129
2179
|
|
|
2130
|
-
Mero UI 0.
|
|
2180
|
+
Mero UI 0.10.0 · Interaction feedback
|
|
2131
2181
|
|
|
2132
2182
|
Add or remove a reaction while keeping its count visible.
|
|
2133
2183
|
|
|
@@ -2152,7 +2202,7 @@ Template
|
|
|
2152
2202
|
|
|
2153
2203
|
# Number Value
|
|
2154
2204
|
|
|
2155
|
-
Mero UI 0.
|
|
2205
|
+
Mero UI 0.10.0 · Interaction feedback
|
|
2156
2206
|
|
|
2157
2207
|
Display a localized number with its machine-readable value.
|
|
2158
2208
|
|
|
@@ -2177,7 +2227,7 @@ Template
|
|
|
2177
2227
|
|
|
2178
2228
|
# Pressable Feedback
|
|
2179
2229
|
|
|
2180
|
-
Mero UI 0.
|
|
2230
|
+
Mero UI 0.10.0 · Interaction feedback
|
|
2181
2231
|
|
|
2182
2232
|
Give a press a tactile response and keep its selected state visible.
|
|
2183
2233
|
|
|
@@ -2200,7 +2250,7 @@ Template
|
|
|
2200
2250
|
|
|
2201
2251
|
# Rating
|
|
2202
2252
|
|
|
2203
|
-
Mero UI 0.
|
|
2253
|
+
Mero UI 0.10.0 · Interaction feedback
|
|
2204
2254
|
|
|
2205
2255
|
Choose a labelled score using native radio controls.
|
|
2206
2256
|
|
|
@@ -2225,7 +2275,7 @@ Template
|
|
|
2225
2275
|
|
|
2226
2276
|
# Trend Chip
|
|
2227
2277
|
|
|
2228
|
-
Mero UI 0.
|
|
2278
|
+
Mero UI 0.10.0 · Interaction feedback
|
|
2229
2279
|
|
|
2230
2280
|
Label the direction and magnitude of a change.
|
|
2231
2281
|
|
|
@@ -2248,7 +2298,7 @@ Template
|
|
|
2248
2298
|
|
|
2249
2299
|
# Chain Of Thought
|
|
2250
2300
|
|
|
2251
|
-
Mero UI 0.
|
|
2301
|
+
Mero UI 0.10.0 · Conversation
|
|
2252
2302
|
|
|
2253
2303
|
Display a disclosure of observable execution steps for a report.
|
|
2254
2304
|
|
|
@@ -2273,7 +2323,7 @@ Template
|
|
|
2273
2323
|
|
|
2274
2324
|
# Chat Attachment
|
|
2275
2325
|
|
|
2276
|
-
Mero UI 0.
|
|
2326
|
+
Mero UI 0.10.0 · Conversation
|
|
2277
2327
|
|
|
2278
2328
|
Display a named file and provide a working download.
|
|
2279
2329
|
|
|
@@ -2298,7 +2348,7 @@ Template
|
|
|
2298
2348
|
|
|
2299
2349
|
# Chat Conversation
|
|
2300
2350
|
|
|
2301
|
-
Mero UI 0.
|
|
2351
|
+
Mero UI 0.10.0 · Conversation
|
|
2302
2352
|
|
|
2303
2353
|
Keep messages, controls and a composer in one scoped conversation.
|
|
2304
2354
|
|
|
@@ -2358,7 +2408,7 @@ Template
|
|
|
2358
2408
|
|
|
2359
2409
|
# Chat List View
|
|
2360
2410
|
|
|
2361
|
-
Mero UI 0.
|
|
2411
|
+
Mero UI 0.10.0 · Conversation
|
|
2362
2412
|
|
|
2363
2413
|
Open a conversation returned by the server.
|
|
2364
2414
|
|
|
@@ -2382,7 +2432,7 @@ Template
|
|
|
2382
2432
|
|
|
2383
2433
|
# Chat Loader
|
|
2384
2434
|
|
|
2385
|
-
Mero UI 0.
|
|
2435
|
+
Mero UI 0.10.0 · Conversation
|
|
2386
2436
|
|
|
2387
2437
|
Show a concise status while a response is being prepared.
|
|
2388
2438
|
|
|
@@ -2405,7 +2455,7 @@ Template
|
|
|
2405
2455
|
|
|
2406
2456
|
# Chat Message
|
|
2407
2457
|
|
|
2408
|
-
Mero UI 0.
|
|
2458
|
+
Mero UI 0.10.0 · Conversation
|
|
2409
2459
|
|
|
2410
2460
|
Distinguish the sender and keep the message readable after a swap.
|
|
2411
2461
|
|
|
@@ -2428,7 +2478,7 @@ Template
|
|
|
2428
2478
|
|
|
2429
2479
|
# Chat Message Actions
|
|
2430
2480
|
|
|
2431
|
-
Mero UI 0.
|
|
2481
|
+
Mero UI 0.10.0 · Conversation
|
|
2432
2482
|
|
|
2433
2483
|
Copy a reply or mark it as helpful.
|
|
2434
2484
|
|
|
@@ -2452,7 +2502,7 @@ Template
|
|
|
2452
2502
|
|
|
2453
2503
|
# Chat Source
|
|
2454
2504
|
|
|
2455
|
-
Mero UI 0.
|
|
2505
|
+
Mero UI 0.10.0 · Conversation
|
|
2456
2506
|
|
|
2457
2507
|
Open the exact data behind a generated summary.
|
|
2458
2508
|
|
|
@@ -2475,7 +2525,7 @@ Template
|
|
|
2475
2525
|
|
|
2476
2526
|
# Chat Tool
|
|
2477
2527
|
|
|
2478
|
-
Mero UI 0.
|
|
2528
|
+
Mero UI 0.10.0 · Conversation
|
|
2479
2529
|
|
|
2480
2530
|
Disclose the inputs and output of an application action.
|
|
2481
2531
|
|
|
@@ -2515,7 +2565,7 @@ Template
|
|
|
2515
2565
|
|
|
2516
2566
|
# Code Block
|
|
2517
2567
|
|
|
2518
|
-
Mero UI 0.
|
|
2568
|
+
Mero UI 0.10.0 · Conversation
|
|
2519
2569
|
|
|
2520
2570
|
Show a file caption, selectable code and a copy control.
|
|
2521
2571
|
|
|
@@ -2538,7 +2588,7 @@ Template
|
|
|
2538
2588
|
|
|
2539
2589
|
# Markdown
|
|
2540
2590
|
|
|
2541
|
-
Mero UI 0.
|
|
2591
|
+
Mero UI 0.10.0 · Conversation
|
|
2542
2592
|
|
|
2543
2593
|
Render a small safe subset of Markdown into semantic HTML.
|
|
2544
2594
|
|
|
@@ -2573,7 +2623,7 @@ Template
|
|
|
2573
2623
|
|
|
2574
2624
|
# Prompt Input
|
|
2575
2625
|
|
|
2576
|
-
Mero UI 0.
|
|
2626
|
+
Mero UI 0.10.0 · Conversation
|
|
2577
2627
|
|
|
2578
2628
|
Collect a question and submit it to a server-rendered response endpoint.
|
|
2579
2629
|
|
|
@@ -2604,7 +2654,7 @@ Template
|
|
|
2604
2654
|
|
|
2605
2655
|
# Prompt Suggestion
|
|
2606
2656
|
|
|
2607
|
-
Mero UI 0.
|
|
2657
|
+
Mero UI 0.10.0 · Conversation
|
|
2608
2658
|
|
|
2609
2659
|
Choose a suggested prompt, edit it, then send it.
|
|
2610
2660
|
|
|
@@ -2635,7 +2685,7 @@ Template
|
|
|
2635
2685
|
|
|
2636
2686
|
# Text Shimmer
|
|
2637
2687
|
|
|
2638
|
-
Mero UI 0.
|
|
2688
|
+
Mero UI 0.10.0 · Conversation
|
|
2639
2689
|
|
|
2640
2690
|
Indicate work in progress with a moving highlight across readable text.
|
|
2641
2691
|
|
|
@@ -2658,7 +2708,7 @@ Template
|
|
|
2658
2708
|
|
|
2659
2709
|
# Button
|
|
2660
2710
|
|
|
2661
|
-
Mero UI 0.
|
|
2711
|
+
Mero UI 0.10.0 · Buttons
|
|
2662
2712
|
|
|
2663
2713
|
Trigger an action with a consistent hierarchy of visual emphasis.
|
|
2664
2714
|
|
|
@@ -2763,7 +2813,7 @@ Template
|
|
|
2763
2813
|
|
|
2764
2814
|
# Action Button
|
|
2765
2815
|
|
|
2766
|
-
Mero UI 0.
|
|
2816
|
+
Mero UI 0.10.0 · Buttons
|
|
2767
2817
|
|
|
2768
2818
|
Run a server action and report whether it succeeded, was refused or has an unknown result.
|
|
2769
2819
|
|
|
@@ -2835,7 +2885,7 @@ Template
|
|
|
2835
2885
|
|
|
2836
2886
|
# Button Group
|
|
2837
2887
|
|
|
2838
|
-
Mero UI 0.
|
|
2888
|
+
Mero UI 0.10.0 · Buttons
|
|
2839
2889
|
|
|
2840
2890
|
Keep related actions together while preserving each button’s own label and focus.
|
|
2841
2891
|
|
|
@@ -2860,7 +2910,7 @@ Template
|
|
|
2860
2910
|
|
|
2861
2911
|
# Close Button
|
|
2862
2912
|
|
|
2863
|
-
Mero UI 0.
|
|
2913
|
+
Mero UI 0.10.0 · Buttons
|
|
2864
2914
|
|
|
2865
2915
|
Give a dialog an icon-only close action with an accessible name.
|
|
2866
2916
|
|
|
@@ -2892,7 +2942,7 @@ Template
|
|
|
2892
2942
|
|
|
2893
2943
|
# Toggle Button
|
|
2894
2944
|
|
|
2895
|
-
Mero UI 0.
|
|
2945
|
+
Mero UI 0.10.0 · Buttons
|
|
2896
2946
|
|
|
2897
2947
|
Represent a persistent on or off state with a pressed button.
|
|
2898
2948
|
|
|
@@ -2915,7 +2965,7 @@ Template
|
|
|
2915
2965
|
|
|
2916
2966
|
# Toggle Button Group
|
|
2917
2967
|
|
|
2918
|
-
Mero UI 0.
|
|
2968
|
+
Mero UI 0.10.0 · Buttons
|
|
2919
2969
|
|
|
2920
2970
|
Select one presentation mode from a connected set of controls.
|
|
2921
2971
|
|
|
@@ -2945,7 +2995,7 @@ Template
|
|
|
2945
2995
|
|
|
2946
2996
|
# Checkbox
|
|
2947
2997
|
|
|
2948
|
-
Mero UI 0.
|
|
2998
|
+
Mero UI 0.10.0 · Forms
|
|
2949
2999
|
|
|
2950
3000
|
Include an independent binary choice in a form.
|
|
2951
3001
|
|
|
@@ -2969,7 +3019,7 @@ Template
|
|
|
2969
3019
|
|
|
2970
3020
|
# Checkbox Group
|
|
2971
3021
|
|
|
2972
|
-
Mero UI 0.
|
|
3022
|
+
Mero UI 0.10.0 · Forms
|
|
2973
3023
|
|
|
2974
3024
|
Group related independent choices with a fieldset and legend.
|
|
2975
3025
|
|
|
@@ -2997,7 +3047,7 @@ Template
|
|
|
2997
3047
|
|
|
2998
3048
|
# Description
|
|
2999
3049
|
|
|
3000
|
-
Mero UI 0.
|
|
3050
|
+
Mero UI 0.10.0 · Forms
|
|
3001
3051
|
|
|
3002
3052
|
Connect persistent help text to a control.
|
|
3003
3053
|
|
|
@@ -3024,7 +3074,7 @@ Template
|
|
|
3024
3074
|
|
|
3025
3075
|
# Error Message
|
|
3026
3076
|
|
|
3027
|
-
Mero UI 0.
|
|
3077
|
+
Mero UI 0.10.0 · Forms
|
|
3028
3078
|
|
|
3029
3079
|
Present a form-level failure where the user can act on it.
|
|
3030
3080
|
|
|
@@ -3048,7 +3098,7 @@ Template
|
|
|
3048
3098
|
|
|
3049
3099
|
# Field Error
|
|
3050
3100
|
|
|
3051
|
-
Mero UI 0.
|
|
3101
|
+
Mero UI 0.10.0 · Forms
|
|
3052
3102
|
|
|
3053
3103
|
Associate a validation error with the field that needs attention.
|
|
3054
3104
|
|
|
@@ -3077,7 +3127,7 @@ Template
|
|
|
3077
3127
|
|
|
3078
3128
|
# Fieldset
|
|
3079
3129
|
|
|
3080
|
-
Mero UI 0.
|
|
3130
|
+
Mero UI 0.10.0 · Forms
|
|
3081
3131
|
|
|
3082
3132
|
Add a shared label to a related set of form controls.
|
|
3083
3133
|
|
|
@@ -3158,7 +3208,7 @@ Template
|
|
|
3158
3208
|
|
|
3159
3209
|
# Form
|
|
3160
3210
|
|
|
3161
|
-
Mero UI 0.
|
|
3211
|
+
Mero UI 0.10.0 · Forms
|
|
3162
3212
|
|
|
3163
3213
|
Submit native fields to the server and render an HTML response in place.
|
|
3164
3214
|
|
|
@@ -3346,7 +3396,7 @@ Template
|
|
|
3346
3396
|
|
|
3347
3397
|
# Input
|
|
3348
3398
|
|
|
3349
|
-
Mero UI 0.
|
|
3399
|
+
Mero UI 0.10.0 · Forms
|
|
3350
3400
|
|
|
3351
3401
|
A styled native input with browser validation and autocomplete.
|
|
3352
3402
|
|
|
@@ -3373,7 +3423,7 @@ Template
|
|
|
3373
3423
|
|
|
3374
3424
|
# Input Group
|
|
3375
3425
|
|
|
3376
|
-
Mero UI 0.
|
|
3426
|
+
Mero UI 0.10.0 · Forms
|
|
3377
3427
|
|
|
3378
3428
|
Combine a control and contextual prefix with a single outline.
|
|
3379
3429
|
|
|
@@ -3402,7 +3452,7 @@ Template
|
|
|
3402
3452
|
|
|
3403
3453
|
# Input OTP
|
|
3404
3454
|
|
|
3405
|
-
Mero UI 0.
|
|
3455
|
+
Mero UI 0.10.0 · Forms
|
|
3406
3456
|
|
|
3407
3457
|
Collect a six-digit code in one input with mobile autofill.
|
|
3408
3458
|
|
|
@@ -3431,7 +3481,7 @@ Template
|
|
|
3431
3481
|
|
|
3432
3482
|
# Label
|
|
3433
3483
|
|
|
3434
|
-
Mero UI 0.
|
|
3484
|
+
Mero UI 0.10.0 · Forms
|
|
3435
3485
|
|
|
3436
3486
|
Name an input and expand its activation area.
|
|
3437
3487
|
|
|
@@ -3458,7 +3508,7 @@ Template
|
|
|
3458
3508
|
|
|
3459
3509
|
# Number Field
|
|
3460
3510
|
|
|
3461
|
-
Mero UI 0.
|
|
3511
|
+
Mero UI 0.10.0 · Forms
|
|
3462
3512
|
|
|
3463
3513
|
Set numeric bounds and increments for a native field.
|
|
3464
3514
|
|
|
@@ -3485,7 +3535,7 @@ Template
|
|
|
3485
3535
|
|
|
3486
3536
|
# Radio Group
|
|
3487
3537
|
|
|
3488
|
-
Mero UI 0.
|
|
3538
|
+
Mero UI 0.10.0 · Forms
|
|
3489
3539
|
|
|
3490
3540
|
Choose exactly one option from a labeled set.
|
|
3491
3541
|
|
|
@@ -3513,7 +3563,7 @@ Template
|
|
|
3513
3563
|
|
|
3514
3564
|
# Search Field
|
|
3515
3565
|
|
|
3516
|
-
Mero UI 0.
|
|
3566
|
+
Mero UI 0.10.0 · Forms
|
|
3517
3567
|
|
|
3518
3568
|
Use a native search field with the platform’s clear affordance.
|
|
3519
3569
|
|
|
@@ -3582,7 +3632,7 @@ Template
|
|
|
3582
3632
|
|
|
3583
3633
|
# Text Area
|
|
3584
3634
|
|
|
3585
|
-
Mero UI 0.
|
|
3635
|
+
Mero UI 0.10.0 · Forms
|
|
3586
3636
|
|
|
3587
3637
|
Let users edit multiple lines of text with an optional autosizing surface.
|
|
3588
3638
|
|
|
@@ -3608,7 +3658,7 @@ Template
|
|
|
3608
3658
|
|
|
3609
3659
|
# Text Field
|
|
3610
3660
|
|
|
3611
|
-
Mero UI 0.
|
|
3661
|
+
Mero UI 0.10.0 · Forms
|
|
3612
3662
|
|
|
3613
3663
|
Compose a label, input, and hint into a reusable form field.
|
|
3614
3664
|
|
|
@@ -3635,7 +3685,7 @@ Template
|
|
|
3635
3685
|
|
|
3636
3686
|
# Calendar
|
|
3637
3687
|
|
|
3638
|
-
Mero UI 0.
|
|
3688
|
+
Mero UI 0.10.0 · Date and time
|
|
3639
3689
|
|
|
3640
3690
|
Navigate months and choose a day on an inline calendar rendered by the server.
|
|
3641
3691
|
|
|
@@ -3716,13 +3766,13 @@ Template
|
|
|
3716
3766
|
<tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
3717
3767
|
id="calendar-day-23" aria-label="Monday, November 23, 2026" aria-pressed="false"
|
|
3718
3768
|
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-23" hx-target="closest .mero-calendar" hx-swap="outerHTML">23</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
3719
|
-
id="calendar-day-24" aria-label="Tuesday, November 24, 2026" aria-pressed="false"
|
|
3769
|
+
id="calendar-day-24" aria-label="Tuesday, November 24, 2026" aria-pressed="false"
|
|
3720
3770
|
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-24" hx-target="closest .mero-calendar" hx-swap="outerHTML">24</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
3721
3771
|
id="calendar-day-25" aria-label="Wednesday, November 25, 2026" aria-pressed="false"
|
|
3722
3772
|
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-25" hx-target="closest .mero-calendar" hx-swap="outerHTML">25</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
3723
3773
|
id="calendar-day-26" aria-label="Thursday, November 26, 2026" aria-pressed="false"
|
|
3724
3774
|
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-26" hx-target="closest .mero-calendar" hx-swap="outerHTML">26</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
3725
|
-
id="calendar-day-27" aria-label="Friday, November 27, 2026" aria-pressed="false"
|
|
3775
|
+
id="calendar-day-27" aria-label="Friday, November 27, 2026" aria-pressed="false" aria-current="date"
|
|
3726
3776
|
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-27" hx-target="closest .mero-calendar" hx-swap="outerHTML">27</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
3727
3777
|
id="calendar-day-28" aria-label="Saturday, November 28, 2026" aria-pressed="false"
|
|
3728
3778
|
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-28" hx-target="closest .mero-calendar" hx-swap="outerHTML">28</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
@@ -3739,7 +3789,7 @@ Template
|
|
|
3739
3789
|
|
|
3740
3790
|
# Date Field
|
|
3741
3791
|
|
|
3742
|
-
Mero UI 0.
|
|
3792
|
+
Mero UI 0.10.0 · Date and time
|
|
3743
3793
|
|
|
3744
3794
|
Enter a calendar date in the system’s preferred format.
|
|
3745
3795
|
|
|
@@ -3766,7 +3816,7 @@ Template
|
|
|
3766
3816
|
|
|
3767
3817
|
# Date Picker
|
|
3768
3818
|
|
|
3769
|
-
Mero UI 0.
|
|
3819
|
+
Mero UI 0.10.0 · Date and time
|
|
3770
3820
|
|
|
3771
3821
|
Choose a date with the browser’s calendar picker and native constraints.
|
|
3772
3822
|
|
|
@@ -3795,7 +3845,7 @@ Template
|
|
|
3795
3845
|
|
|
3796
3846
|
# Date Range Picker
|
|
3797
3847
|
|
|
3798
|
-
Mero UI 0.
|
|
3848
|
+
Mero UI 0.10.0 · Date and time
|
|
3799
3849
|
|
|
3800
3850
|
Collect the start and end dates of a range.
|
|
3801
3851
|
|
|
@@ -3834,7 +3884,7 @@ Template
|
|
|
3834
3884
|
|
|
3835
3885
|
# Range Calendar
|
|
3836
3886
|
|
|
3837
|
-
Mero UI 0.
|
|
3887
|
+
Mero UI 0.10.0 · Date and time
|
|
3838
3888
|
|
|
3839
3889
|
Build a range with two native calendar controls.
|
|
3840
3890
|
|
|
@@ -3873,7 +3923,7 @@ Template
|
|
|
3873
3923
|
|
|
3874
3924
|
# Time Field
|
|
3875
3925
|
|
|
3876
|
-
Mero UI 0.
|
|
3926
|
+
Mero UI 0.10.0 · Date and time
|
|
3877
3927
|
|
|
3878
3928
|
Choose a wall-clock time without a timezone conversion.
|
|
3879
3929
|
|
|
@@ -3902,7 +3952,7 @@ Template
|
|
|
3902
3952
|
|
|
3903
3953
|
# Accordion
|
|
3904
3954
|
|
|
3905
|
-
Mero UI 0.
|
|
3955
|
+
Mero UI 0.10.0 · Navigation
|
|
3906
3956
|
|
|
3907
3957
|
Disclose one section at a time using grouped native details.
|
|
3908
3958
|
|
|
@@ -3932,7 +3982,7 @@ Template
|
|
|
3932
3982
|
|
|
3933
3983
|
# Breadcrumbs
|
|
3934
3984
|
|
|
3935
|
-
Mero UI 0.
|
|
3985
|
+
Mero UI 0.10.0 · Navigation
|
|
3936
3986
|
|
|
3937
3987
|
Show the user’s current location and its parent pages.
|
|
3938
3988
|
|
|
@@ -3959,7 +4009,7 @@ Template
|
|
|
3959
4009
|
|
|
3960
4010
|
# Disclosure
|
|
3961
4011
|
|
|
3962
|
-
Mero UI 0.
|
|
4012
|
+
Mero UI 0.10.0 · Navigation
|
|
3963
4013
|
|
|
3964
4014
|
Reveal a single block of supplementary information.
|
|
3965
4015
|
|
|
@@ -3983,7 +4033,7 @@ Template
|
|
|
3983
4033
|
|
|
3984
4034
|
# Disclosure Group
|
|
3985
4035
|
|
|
3986
|
-
Mero UI 0.
|
|
4036
|
+
Mero UI 0.10.0 · Navigation
|
|
3987
4037
|
|
|
3988
4038
|
Present a collection of independently expandable sections.
|
|
3989
4039
|
|
|
@@ -4013,7 +4063,7 @@ Template
|
|
|
4013
4063
|
|
|
4014
4064
|
# Link
|
|
4015
4065
|
|
|
4016
|
-
Mero UI 0.
|
|
4066
|
+
Mero UI 0.10.0 · Navigation
|
|
4017
4067
|
|
|
4018
4068
|
Navigate to a real URL with native link semantics.
|
|
4019
4069
|
|
|
@@ -4034,7 +4084,7 @@ Template
|
|
|
4034
4084
|
|
|
4035
4085
|
# Pagination
|
|
4036
4086
|
|
|
4037
|
-
Mero UI 0.
|
|
4087
|
+
Mero UI 0.10.0 · Navigation
|
|
4038
4088
|
|
|
4039
4089
|
Navigate between result pages with server-rendered fragments.
|
|
4040
4090
|
|
|
@@ -4073,7 +4123,7 @@ Template
|
|
|
4073
4123
|
|
|
4074
4124
|
# Tabs
|
|
4075
4125
|
|
|
4076
|
-
Mero UI 0.
|
|
4126
|
+
Mero UI 0.10.0 · Navigation
|
|
4077
4127
|
|
|
4078
4128
|
Switch between labeled panels with mouse or arrow keys.
|
|
4079
4129
|
|
|
@@ -4160,7 +4210,7 @@ Template
|
|
|
4160
4210
|
|
|
4161
4211
|
# Alert Dialog
|
|
4162
4212
|
|
|
4163
|
-
Mero UI 0.
|
|
4213
|
+
Mero UI 0.10.0 · Overlays
|
|
4164
4214
|
|
|
4165
4215
|
Ask for confirmation on a decision that calls for attention.
|
|
4166
4216
|
|
|
@@ -4195,7 +4245,7 @@ Template
|
|
|
4195
4245
|
|
|
4196
4246
|
# Typed Confirmation
|
|
4197
4247
|
|
|
4198
|
-
Mero UI 0.
|
|
4248
|
+
Mero UI 0.10.0 · Overlays
|
|
4199
4249
|
|
|
4200
4250
|
Require an exact phrase before submitting a destructive action.
|
|
4201
4251
|
|
|
@@ -4354,7 +4404,7 @@ Template
|
|
|
4354
4404
|
|
|
4355
4405
|
# Drawer
|
|
4356
4406
|
|
|
4357
|
-
Mero UI 0.
|
|
4407
|
+
Mero UI 0.10.0 · Overlays
|
|
4358
4408
|
|
|
4359
4409
|
Open a full-height edge panel for work that benefits from more room.
|
|
4360
4410
|
|
|
@@ -4469,7 +4519,7 @@ Template
|
|
|
4469
4519
|
|
|
4470
4520
|
# Modal
|
|
4471
4521
|
|
|
4472
|
-
Mero UI 0.
|
|
4522
|
+
Mero UI 0.10.0 · Overlays
|
|
4473
4523
|
|
|
4474
4524
|
Open a centered, named dialog with native focus containment.
|
|
4475
4525
|
|
|
@@ -4502,7 +4552,7 @@ Template
|
|
|
4502
4552
|
|
|
4503
4553
|
# Command Menu
|
|
4504
4554
|
|
|
4505
|
-
Mero UI 0.
|
|
4555
|
+
Mero UI 0.10.0 · Overlays
|
|
4506
4556
|
|
|
4507
4557
|
Press Cmd or Ctrl K to search pages and actions returned by your server.
|
|
4508
4558
|
|
|
@@ -4547,7 +4597,7 @@ Template
|
|
|
4547
4597
|
|
|
4548
4598
|
# Popover
|
|
4549
4599
|
|
|
4550
|
-
Mero UI 0.
|
|
4600
|
+
Mero UI 0.10.0 · Overlays
|
|
4551
4601
|
|
|
4552
4602
|
Display contextual information using the browser’s top layer.
|
|
4553
4603
|
|
|
@@ -4576,7 +4626,7 @@ Template
|
|
|
4576
4626
|
|
|
4577
4627
|
# Sheet
|
|
4578
4628
|
|
|
4579
|
-
Mero UI 0.
|
|
4629
|
+
Mero UI 0.10.0 · Overlays
|
|
4580
4630
|
|
|
4581
4631
|
Present concise secondary content from the bottom edge.
|
|
4582
4632
|
|
|
@@ -4609,7 +4659,7 @@ Template
|
|
|
4609
4659
|
|
|
4610
4660
|
# Toast
|
|
4611
4661
|
|
|
4612
|
-
Mero UI 0.
|
|
4662
|
+
Mero UI 0.10.0 · Overlays
|
|
4613
4663
|
|
|
4614
4664
|
Announce a completed action without interrupting the current task.
|
|
4615
4665
|
|
|
@@ -4630,7 +4680,7 @@ Template
|
|
|
4630
4680
|
|
|
4631
4681
|
# Tooltip
|
|
4632
4682
|
|
|
4633
|
-
Mero UI 0.
|
|
4683
|
+
Mero UI 0.10.0 · Overlays
|
|
4634
4684
|
|
|
4635
4685
|
Show a brief hint on pointer hover or keyboard focus.
|
|
4636
4686
|
|
|
@@ -4656,7 +4706,7 @@ Template
|
|
|
4656
4706
|
|
|
4657
4707
|
# Dropdown
|
|
4658
4708
|
|
|
4659
|
-
Mero UI 0.
|
|
4709
|
+
Mero UI 0.10.0 · Collections
|
|
4660
4710
|
|
|
4661
4711
|
Open a compact list of actions or destinations.
|
|
4662
4712
|
|
|
@@ -4686,7 +4736,7 @@ Template
|
|
|
4686
4736
|
|
|
4687
4737
|
# Menu Button
|
|
4688
4738
|
|
|
4689
|
-
Mero UI 0.
|
|
4739
|
+
Mero UI 0.10.0 · Collections
|
|
4690
4740
|
|
|
4691
4741
|
Open row actions and move through them with the arrow keys.
|
|
4692
4742
|
|
|
@@ -4797,7 +4847,7 @@ Template
|
|
|
4797
4847
|
|
|
4798
4848
|
# List Box
|
|
4799
4849
|
|
|
4800
|
-
Mero UI 0.
|
|
4850
|
+
Mero UI 0.10.0 · Collections
|
|
4801
4851
|
|
|
4802
4852
|
Present a selectable collection with arrow-key navigation.
|
|
4803
4853
|
|
|
@@ -4826,7 +4876,7 @@ Template
|
|
|
4826
4876
|
|
|
4827
4877
|
# Tag Group
|
|
4828
4878
|
|
|
4829
|
-
Mero UI 0.
|
|
4879
|
+
Mero UI 0.10.0 · Collections
|
|
4830
4880
|
|
|
4831
4881
|
Display a small, labeled collection of metadata tags.
|
|
4832
4882
|
|
|
@@ -4851,7 +4901,7 @@ Template
|
|
|
4851
4901
|
|
|
4852
4902
|
# Slider
|
|
4853
4903
|
|
|
4854
|
-
Mero UI 0.
|
|
4904
|
+
Mero UI 0.10.0 · Controls
|
|
4855
4905
|
|
|
4856
4906
|
Choose a value from a bounded range.
|
|
4857
4907
|
|
|
@@ -4877,7 +4927,7 @@ Template
|
|
|
4877
4927
|
|
|
4878
4928
|
# Switch
|
|
4879
4929
|
|
|
4880
|
-
Mero UI 0.
|
|
4930
|
+
Mero UI 0.10.0 · Controls
|
|
4881
4931
|
|
|
4882
4932
|
Toggle one setting with a checkbox-backed switch.
|
|
4883
4933
|
|
|
@@ -4951,7 +5001,7 @@ Template
|
|
|
4951
5001
|
|
|
4952
5002
|
# Alert
|
|
4953
5003
|
|
|
4954
|
-
Mero UI 0.
|
|
5004
|
+
Mero UI 0.10.0 · Feedback
|
|
4955
5005
|
|
|
4956
5006
|
Place status or guidance alongside the content it describes.
|
|
4957
5007
|
|
|
@@ -4975,7 +5025,7 @@ Template
|
|
|
4975
5025
|
|
|
4976
5026
|
# Empty State
|
|
4977
5027
|
|
|
4978
|
-
Mero UI 0.
|
|
5028
|
+
Mero UI 0.10.0 · Feedback
|
|
4979
5029
|
|
|
4980
5030
|
Explain an empty result and give the user a relevant next action.
|
|
4981
5031
|
|
|
@@ -5030,7 +5080,7 @@ Template
|
|
|
5030
5080
|
|
|
5031
5081
|
# Meter
|
|
5032
5082
|
|
|
5033
|
-
Mero UI 0.
|
|
5083
|
+
Mero UI 0.10.0 · Feedback
|
|
5034
5084
|
|
|
5035
5085
|
Show a measurement between known bounds.
|
|
5036
5086
|
|
|
@@ -5057,7 +5107,7 @@ Template
|
|
|
5057
5107
|
|
|
5058
5108
|
# Live Progress
|
|
5059
5109
|
|
|
5060
|
-
Mero UI 0.
|
|
5110
|
+
Mero UI 0.10.0 · Feedback
|
|
5061
5111
|
|
|
5062
5112
|
Follow a deployment through to its final status.
|
|
5063
5113
|
|
|
@@ -5127,7 +5177,7 @@ Template
|
|
|
5127
5177
|
|
|
5128
5178
|
# Progress Bar
|
|
5129
5179
|
|
|
5130
|
-
Mero UI 0.
|
|
5180
|
+
Mero UI 0.10.0 · Feedback
|
|
5131
5181
|
|
|
5132
5182
|
Report measurable progress toward completion.
|
|
5133
5183
|
|
|
@@ -5153,7 +5203,7 @@ Template
|
|
|
5153
5203
|
|
|
5154
5204
|
# Progress Circle
|
|
5155
5205
|
|
|
5156
|
-
Mero UI 0.
|
|
5206
|
+
Mero UI 0.10.0 · Feedback
|
|
5157
5207
|
|
|
5158
5208
|
Show a completion value in a compact circular display.
|
|
5159
5209
|
|
|
@@ -5175,7 +5225,7 @@ Template
|
|
|
5175
5225
|
|
|
5176
5226
|
# Skeleton
|
|
5177
5227
|
|
|
5178
|
-
Mero UI 0.
|
|
5228
|
+
Mero UI 0.10.0 · Feedback
|
|
5179
5229
|
|
|
5180
5230
|
Reserve space for content while its HTML is loading.
|
|
5181
5231
|
|
|
@@ -5200,7 +5250,7 @@ Template
|
|
|
5200
5250
|
|
|
5201
5251
|
# Spinner
|
|
5202
5252
|
|
|
5203
|
-
Mero UI 0.
|
|
5253
|
+
Mero UI 0.10.0 · Feedback
|
|
5204
5254
|
|
|
5205
5255
|
Indicate that work is underway when the completion time is unknown.
|
|
5206
5256
|
|
|
@@ -5224,7 +5274,7 @@ Template
|
|
|
5224
5274
|
|
|
5225
5275
|
# Card
|
|
5226
5276
|
|
|
5227
|
-
Mero UI 0.
|
|
5277
|
+
Mero UI 0.10.0 · Layout
|
|
5228
5278
|
|
|
5229
5279
|
Group related content and an action into one compact surface.
|
|
5230
5280
|
|
|
@@ -5304,7 +5354,7 @@ Template
|
|
|
5304
5354
|
|
|
5305
5355
|
# Page Header
|
|
5306
5356
|
|
|
5307
|
-
Mero UI 0.
|
|
5357
|
+
Mero UI 0.10.0 · Layout
|
|
5308
5358
|
|
|
5309
5359
|
Open a page with its title, a short description and the page’s main actions.
|
|
5310
5360
|
|
|
@@ -5372,7 +5422,7 @@ Template
|
|
|
5372
5422
|
|
|
5373
5423
|
# Separator
|
|
5374
5424
|
|
|
5375
|
-
Mero UI 0.
|
|
5425
|
+
Mero UI 0.10.0 · Layout
|
|
5376
5426
|
|
|
5377
5427
|
Separate related content sections using a semantic rule.
|
|
5378
5428
|
|
|
@@ -5397,7 +5447,7 @@ Template
|
|
|
5397
5447
|
|
|
5398
5448
|
# Surface
|
|
5399
5449
|
|
|
5400
|
-
Mero UI 0.
|
|
5450
|
+
Mero UI 0.10.0 · Layout
|
|
5401
5451
|
|
|
5402
5452
|
Give related content a tonal background with shared theme tokens.
|
|
5403
5453
|
|
|
@@ -5421,7 +5471,7 @@ Template
|
|
|
5421
5471
|
|
|
5422
5472
|
# Toolbar
|
|
5423
5473
|
|
|
5424
|
-
Mero UI 0.
|
|
5474
|
+
Mero UI 0.10.0 · Layout
|
|
5425
5475
|
|
|
5426
5476
|
Keep nearby actions aligned and grouped by purpose.
|
|
5427
5477
|
|
|
@@ -5448,7 +5498,7 @@ Template
|
|
|
5448
5498
|
|
|
5449
5499
|
# Avatar
|
|
5450
5500
|
|
|
5451
|
-
Mero UI 0.
|
|
5501
|
+
Mero UI 0.10.0 · Media
|
|
5452
5502
|
|
|
5453
5503
|
Represent a person with initials and an accessible name.
|
|
5454
5504
|
|
|
@@ -5472,7 +5522,7 @@ Template
|
|
|
5472
5522
|
|
|
5473
5523
|
# Avatar Group
|
|
5474
5524
|
|
|
5475
|
-
Mero UI 0.
|
|
5525
|
+
Mero UI 0.10.0 · Media
|
|
5476
5526
|
|
|
5477
5527
|
Show a compact cluster of people associated with a workspace.
|
|
5478
5528
|
|
|
@@ -5497,7 +5547,7 @@ Template
|
|
|
5497
5547
|
|
|
5498
5548
|
# Autocomplete
|
|
5499
5549
|
|
|
5500
|
-
Mero UI 0.
|
|
5550
|
+
Mero UI 0.10.0 · Pickers
|
|
5501
5551
|
|
|
5502
5552
|
Request matching options from the server as a user types.
|
|
5503
5553
|
|
|
@@ -5577,7 +5627,7 @@ Template
|
|
|
5577
5627
|
|
|
5578
5628
|
# Combo Box
|
|
5579
5629
|
|
|
5580
|
-
Mero UI 0.
|
|
5630
|
+
Mero UI 0.10.0 · Pickers
|
|
5581
5631
|
|
|
5582
5632
|
Filter and select from suggestions already on the page.
|
|
5583
5633
|
|
|
@@ -5615,9 +5665,49 @@ Template
|
|
|
5615
5665
|
</div>
|
|
5616
5666
|
````
|
|
5617
5667
|
|
|
5668
|
+
## Multi-select
|
|
5669
|
+
|
|
5670
|
+
Select multiple options as removable chips that submit as named hidden fields.
|
|
5671
|
+
|
|
5672
|
+
Type to filter, press Enter to toggle options, Backspace on an empty input to remove the last chip, or listen to mero:selection for changes.
|
|
5673
|
+
|
|
5674
|
+
Page assets
|
|
5675
|
+
|
|
5676
|
+
```html
|
|
5677
|
+
<link rel="stylesheet" href="/mero.css">
|
|
5678
|
+
<script defer src="/mero.js"></script>
|
|
5679
|
+
```
|
|
5680
|
+
|
|
5681
|
+
Template
|
|
5682
|
+
|
|
5683
|
+
````html
|
|
5684
|
+
<div class="mero-scope" data-mero-scope>
|
|
5685
|
+
<div class="mero-field">
|
|
5686
|
+
<label class="mero-label" for="demo-multiselect">Channels</label>
|
|
5687
|
+
<div class="mero-multiselect" data-mero-multiselect data-mero-combo data-mero-multiselect-name="channels">
|
|
5688
|
+
<div class="mero-multiselect-control">
|
|
5689
|
+
<ul class="mero-tag-group mero-multiselect-chips" data-mero-multiselect-chips>
|
|
5690
|
+
<li class="mero-chip" data-value="webshop">Webshop<input type="hidden" name="channels" value="webshop"><button type="button" aria-label="Remove Webshop" data-mero-multiselect-remove>×</button></li>
|
|
5691
|
+
</ul>
|
|
5692
|
+
<input class="mero-multiselect-input" id="demo-multiselect" type="text" role="combobox"
|
|
5693
|
+
aria-expanded="false" aria-controls="demo-multiselect-options" aria-autocomplete="list"
|
|
5694
|
+
autocomplete="off" placeholder="Add channel…">
|
|
5695
|
+
</div>
|
|
5696
|
+
<ul class="mero-listbox mero-combo-list" id="demo-multiselect-options" role="listbox" aria-label="Channels" aria-multiselectable="true" hidden>
|
|
5697
|
+
<li class="mero-option" id="demo-multiselect-webshop" role="option" data-value="webshop" aria-selected="true">Webshop</li>
|
|
5698
|
+
<li class="mero-option" id="demo-multiselect-wholesale" role="option" data-value="wholesale" aria-selected="false">Wholesale</li>
|
|
5699
|
+
<li class="mero-option" id="demo-multiselect-retail" role="option" data-value="retail" aria-selected="false">Retail</li>
|
|
5700
|
+
<li class="mero-option" role="option" aria-disabled="true" data-mero-empty-option hidden>No matches</li>
|
|
5701
|
+
</ul>
|
|
5702
|
+
<span class="mero-description" data-mero-combo-status role="status"></span>
|
|
5703
|
+
</div>
|
|
5704
|
+
</div>
|
|
5705
|
+
</div>
|
|
5706
|
+
````
|
|
5707
|
+
|
|
5618
5708
|
# Select
|
|
5619
5709
|
|
|
5620
|
-
Mero UI 0.
|
|
5710
|
+
Mero UI 0.10.0 · Pickers
|
|
5621
5711
|
|
|
5622
5712
|
Choose one of a fixed set of values using the platform’s picker.
|
|
5623
5713
|
|
|
@@ -5647,7 +5737,7 @@ Template
|
|
|
5647
5737
|
|
|
5648
5738
|
# Kbd
|
|
5649
5739
|
|
|
5650
|
-
Mero UI 0.
|
|
5740
|
+
Mero UI 0.10.0 · Typography
|
|
5651
5741
|
|
|
5652
5742
|
Format a keyboard shortcut with native semantics.
|
|
5653
5743
|
|
|
@@ -5699,7 +5789,7 @@ Template
|
|
|
5699
5789
|
|
|
5700
5790
|
# Typography
|
|
5701
5791
|
|
|
5702
|
-
Mero UI 0.
|
|
5792
|
+
Mero UI 0.10.0 · Typography
|
|
5703
5793
|
|
|
5704
5794
|
Apply the type scale to semantic content.
|
|
5705
5795
|
|
|
@@ -5747,7 +5837,7 @@ Template
|
|
|
5747
5837
|
|
|
5748
5838
|
# Badge
|
|
5749
5839
|
|
|
5750
|
-
Mero UI 0.
|
|
5840
|
+
Mero UI 0.10.0 · Data display
|
|
5751
5841
|
|
|
5752
5842
|
Label a status using text and a semantic tone.
|
|
5753
5843
|
|
|
@@ -5772,7 +5862,7 @@ Template
|
|
|
5772
5862
|
|
|
5773
5863
|
# Chip
|
|
5774
5864
|
|
|
5775
|
-
Mero UI 0.
|
|
5865
|
+
Mero UI 0.10.0 · Data display
|
|
5776
5866
|
|
|
5777
5867
|
Display a lightweight label for an attribute or filter value.
|
|
5778
5868
|
|
|
@@ -5793,7 +5883,7 @@ Template
|
|
|
5793
5883
|
|
|
5794
5884
|
# Description List
|
|
5795
5885
|
|
|
5796
|
-
Mero UI 0.
|
|
5886
|
+
Mero UI 0.10.0 · Data display
|
|
5797
5887
|
|
|
5798
5888
|
Show a record’s fields as label and value pairs.
|
|
5799
5889
|
|
|
@@ -5822,7 +5912,7 @@ Template
|
|
|
5822
5912
|
|
|
5823
5913
|
# Table
|
|
5824
5914
|
|
|
5825
|
-
Mero UI 0.
|
|
5915
|
+
Mero UI 0.10.0 · Data display
|
|
5826
5916
|
|
|
5827
5917
|
Show comparable records in a native table with column headers.
|
|
5828
5918
|
|
|
@@ -5909,7 +5999,7 @@ Template
|
|
|
5909
5999
|
|
|
5910
6000
|
# Sortable Table
|
|
5911
6001
|
|
|
5912
|
-
Mero UI 0.
|
|
6002
|
+
Mero UI 0.10.0 · Data display
|
|
5913
6003
|
|
|
5914
6004
|
Sort server-rendered rows from the column headers and open a row from anywhere in it.
|
|
5915
6005
|
|
|
@@ -6211,7 +6301,7 @@ Template
|
|
|
6211
6301
|
|
|
6212
6302
|
# Filter Chips
|
|
6213
6303
|
|
|
6214
|
-
Mero UI 0.
|
|
6304
|
+
Mero UI 0.10.0 · Data display
|
|
6215
6305
|
|
|
6216
6306
|
Add filters from a menu, see them as chips and remove them one at a time. The URL keeps the state.
|
|
6217
6307
|
|
|
@@ -6359,7 +6449,7 @@ Template
|
|
|
6359
6449
|
|
|
6360
6450
|
# Color Area
|
|
6361
6451
|
|
|
6362
|
-
Mero UI 0.
|
|
6452
|
+
Mero UI 0.10.0 · Colors
|
|
6363
6453
|
|
|
6364
6454
|
Open a browser-managed color surface and submit the selected color.
|
|
6365
6455
|
|
|
@@ -6388,7 +6478,7 @@ Template
|
|
|
6388
6478
|
|
|
6389
6479
|
# Color Field
|
|
6390
6480
|
|
|
6391
|
-
Mero UI 0.
|
|
6481
|
+
Mero UI 0.10.0 · Colors
|
|
6392
6482
|
|
|
6393
6483
|
Enter a six-digit hex value directly in a text field.
|
|
6394
6484
|
|
|
@@ -6417,7 +6507,7 @@ Template
|
|
|
6417
6507
|
|
|
6418
6508
|
# Color Picker
|
|
6419
6509
|
|
|
6420
|
-
Mero UI 0.
|
|
6510
|
+
Mero UI 0.10.0 · Colors
|
|
6421
6511
|
|
|
6422
6512
|
Choose a color using the native picker UI.
|
|
6423
6513
|
|
|
@@ -6444,7 +6534,7 @@ Template
|
|
|
6444
6534
|
|
|
6445
6535
|
# Color Slider
|
|
6446
6536
|
|
|
6447
|
-
Mero UI 0.
|
|
6537
|
+
Mero UI 0.10.0 · Colors
|
|
6448
6538
|
|
|
6449
6539
|
Adjust a hue along the color spectrum.
|
|
6450
6540
|
|
|
@@ -6474,7 +6564,7 @@ Template
|
|
|
6474
6564
|
|
|
6475
6565
|
# Color Swatch
|
|
6476
6566
|
|
|
6477
|
-
Mero UI 0.
|
|
6567
|
+
Mero UI 0.10.0 · Colors
|
|
6478
6568
|
|
|
6479
6569
|
Show a color with its human-readable label.
|
|
6480
6570
|
|
|
@@ -6499,7 +6589,7 @@ Template
|
|
|
6499
6589
|
|
|
6500
6590
|
# Scroll Shadow
|
|
6501
6591
|
|
|
6502
|
-
Mero UI 0.
|
|
6592
|
+
Mero UI 0.10.0 · Utilities
|
|
6503
6593
|
|
|
6504
6594
|
Expose a scrollable region with a visual cue that more content is available.
|
|
6505
6595
|
|
|
@@ -6529,7 +6619,7 @@ Template
|
|
|
6529
6619
|
|
|
6530
6620
|
# Visually Hidden
|
|
6531
6621
|
|
|
6532
|
-
Mero UI 0.
|
|
6622
|
+
Mero UI 0.10.0 · Utilities
|
|
6533
6623
|
|
|
6534
6624
|
Give screen readers context that the visible text leaves implied.
|
|
6535
6625
|
|
|
@@ -6555,7 +6645,7 @@ Template
|
|
|
6555
6645
|
|
|
6556
6646
|
# Join
|
|
6557
6647
|
|
|
6558
|
-
Mero UI 0.
|
|
6648
|
+
Mero UI 0.10.0 · Composition
|
|
6559
6649
|
|
|
6560
6650
|
Connect related controls with a shared outline.
|
|
6561
6651
|
|
|
@@ -6578,7 +6668,7 @@ Template
|
|
|
6578
6668
|
|
|
6579
6669
|
# Menu
|
|
6580
6670
|
|
|
6581
|
-
Mero UI 0.
|
|
6671
|
+
Mero UI 0.10.0 · Composition
|
|
6582
6672
|
|
|
6583
6673
|
Group destinations with an active page and section labels.
|
|
6584
6674
|
|
|
@@ -6601,7 +6691,7 @@ Template
|
|
|
6601
6691
|
|
|
6602
6692
|
# Hero
|
|
6603
6693
|
|
|
6604
|
-
Mero UI 0.
|
|
6694
|
+
Mero UI 0.10.0 · Composition
|
|
6605
6695
|
|
|
6606
6696
|
Pair a product introduction with a single destination.
|
|
6607
6697
|
|
|
@@ -6626,7 +6716,7 @@ Template
|
|
|
6626
6716
|
|
|
6627
6717
|
# Footer
|
|
6628
6718
|
|
|
6629
|
-
Mero UI 0.
|
|
6719
|
+
Mero UI 0.10.0 · Composition
|
|
6630
6720
|
|
|
6631
6721
|
Close a workspace with a small group of navigation links.
|
|
6632
6722
|
|
|
@@ -6649,7 +6739,7 @@ Template
|
|
|
6649
6739
|
|
|
6650
6740
|
# Theme Controller
|
|
6651
6741
|
|
|
6652
|
-
Mero UI 0.
|
|
6742
|
+
Mero UI 0.10.0 · Composition
|
|
6653
6743
|
|
|
6654
6744
|
Set a theme inside one section of a page.
|
|
6655
6745
|
|
|
@@ -6672,13 +6762,13 @@ Template
|
|
|
6672
6762
|
|
|
6673
6763
|
# Validator
|
|
6674
6764
|
|
|
6675
|
-
Mero UI 0.
|
|
6765
|
+
Mero UI 0.10.0 · Composition
|
|
6676
6766
|
|
|
6677
6767
|
Show a native field constraint and its correction.
|
|
6678
6768
|
|
|
6679
6769
|
## Default
|
|
6680
6770
|
|
|
6681
|
-
This checks the format locally. Use the inventory form to enforce
|
|
6771
|
+
This checks the format locally. Use the Zero-JS hint variant for pure CSS :user-invalid styling, and the inventory form to enforce uniqueness on the server.
|
|
6682
6772
|
|
|
6683
6773
|
Page assets
|
|
6684
6774
|
|
|
@@ -6695,9 +6785,30 @@ Template
|
|
|
6695
6785
|
<form class="mero-validation-example" data-mero-check-form><label class="mero-label">Catalog SKU<input class="mero-input" name="sku" required pattern="[A-Z]{2}-[0-9]{4}" placeholder="RL-2040"></label><small>Use two uppercase letters, a hyphen and four digits.</small><button class="mero-button" type="submit">Check SKU</button><output role="status"></output></form>
|
|
6696
6786
|
````
|
|
6697
6787
|
|
|
6788
|
+
## Zero-JS hint
|
|
6789
|
+
|
|
6790
|
+
Pure CSS :user-invalid and :user-valid styling with an inline .mero-validator-hint that stays hidden until user interaction or a server HTTP 422 aria-invalid response.
|
|
6791
|
+
|
|
6792
|
+
This checks the format locally. Use the Zero-JS hint variant for pure CSS :user-invalid styling, and the inventory form to enforce uniqueness on the server.
|
|
6793
|
+
|
|
6794
|
+
Page assets
|
|
6795
|
+
|
|
6796
|
+
```html
|
|
6797
|
+
<link rel="stylesheet" href="/mero.css">
|
|
6798
|
+
<link rel="stylesheet" href="/mero-composition.css">
|
|
6799
|
+
<script defer src="/mero.js"></script>
|
|
6800
|
+
<script defer src="/mero-composition.js"></script>
|
|
6801
|
+
```
|
|
6802
|
+
|
|
6803
|
+
Template
|
|
6804
|
+
|
|
6805
|
+
````html
|
|
6806
|
+
<form class="mero-stack"><div class="mero-field"><label class="mero-label" for="val-sku">Catalog SKU</label><input id="val-sku" class="mero-input mero-validator" name="sku" required pattern="[A-Z]{2}-[0-9]{4}" placeholder="RL-2040" aria-describedby="val-sku-hint"><p id="val-sku-hint" class="mero-validator-hint">Use two uppercase letters, a hyphen and four digits (e.g. RL-2040).</p></div><button class="mero-button mero-button-primary" type="submit">Save SKU</button></form>
|
|
6807
|
+
````
|
|
6808
|
+
|
|
6698
6809
|
# Aura
|
|
6699
6810
|
|
|
6700
|
-
Mero UI 0.
|
|
6811
|
+
Mero UI 0.10.0 · Display utilities
|
|
6701
6812
|
|
|
6702
6813
|
Frame an interactive surface with a subtle moving highlight.
|
|
6703
6814
|
|
|
@@ -6720,7 +6831,7 @@ Template
|
|
|
6720
6831
|
|
|
6721
6832
|
# Countdown
|
|
6722
6833
|
|
|
6723
|
-
Mero UI 0.
|
|
6834
|
+
Mero UI 0.10.0 · Display utilities
|
|
6724
6835
|
|
|
6725
6836
|
Show the time remaining until the next daily shipping cutoff.
|
|
6726
6837
|
|
|
@@ -6745,7 +6856,7 @@ Template
|
|
|
6745
6856
|
|
|
6746
6857
|
# Indicator
|
|
6747
6858
|
|
|
6748
|
-
Mero UI 0.
|
|
6859
|
+
Mero UI 0.10.0 · Display utilities
|
|
6749
6860
|
|
|
6750
6861
|
Anchor a quantity to an icon or action.
|
|
6751
6862
|
|
|
@@ -6768,7 +6879,7 @@ Template
|
|
|
6768
6879
|
|
|
6769
6880
|
# Mask
|
|
6770
6881
|
|
|
6771
|
-
Mero UI 0.
|
|
6882
|
+
Mero UI 0.10.0 · Display utilities
|
|
6772
6883
|
|
|
6773
6884
|
Crop an image while keeping its alternative text.
|
|
6774
6885
|
|
|
@@ -6793,7 +6904,7 @@ Template
|
|
|
6793
6904
|
|
|
6794
6905
|
# Stack
|
|
6795
6906
|
|
|
6796
|
-
Mero UI 0.
|
|
6907
|
+
Mero UI 0.10.0 · Display utilities
|
|
6797
6908
|
|
|
6798
6909
|
Layer related previews while keeping the current item legible.
|
|
6799
6910
|
|
|
@@ -6818,7 +6929,7 @@ Template
|
|
|
6818
6929
|
|
|
6819
6930
|
# Status
|
|
6820
6931
|
|
|
6821
|
-
Mero UI 0.
|
|
6932
|
+
Mero UI 0.10.0 · Display utilities
|
|
6822
6933
|
|
|
6823
6934
|
Show system status with a label and a visual marker.
|
|
6824
6935
|
|
|
@@ -6841,7 +6952,7 @@ Template
|
|
|
6841
6952
|
|
|
6842
6953
|
# Swap
|
|
6843
6954
|
|
|
6844
|
-
Mero UI 0.
|
|
6955
|
+
Mero UI 0.10.0 · Display utilities
|
|
6845
6956
|
|
|
6846
6957
|
Switch between two labels or icons on a native control.
|
|
6847
6958
|
|
|
@@ -6864,7 +6975,7 @@ Template
|
|
|
6864
6975
|
|
|
6865
6976
|
# Text Rotate
|
|
6866
6977
|
|
|
6867
|
-
Mero UI 0.
|
|
6978
|
+
Mero UI 0.10.0 · Display utilities
|
|
6868
6979
|
|
|
6869
6980
|
Rotate through short messages with explicit playback controls.
|
|
6870
6981
|
|
|
@@ -6887,7 +6998,7 @@ Template
|
|
|
6887
6998
|
|
|
6888
6999
|
# Browser Mockup
|
|
6889
7000
|
|
|
6890
|
-
Mero UI 0.
|
|
7001
|
+
Mero UI 0.10.0 · Mockups
|
|
6891
7002
|
|
|
6892
7003
|
Present a site preview inside a compact browser frame.
|
|
6893
7004
|
|
|
@@ -6912,7 +7023,7 @@ Template
|
|
|
6912
7023
|
|
|
6913
7024
|
# Phone Mockup
|
|
6914
7025
|
|
|
6915
|
-
Mero UI 0.
|
|
7026
|
+
Mero UI 0.10.0 · Mockups
|
|
6916
7027
|
|
|
6917
7028
|
Frame a mobile product screen.
|
|
6918
7029
|
|
|
@@ -6937,7 +7048,7 @@ Template
|
|
|
6937
7048
|
|
|
6938
7049
|
# Window Mockup
|
|
6939
7050
|
|
|
6940
|
-
Mero UI 0.
|
|
7051
|
+
Mero UI 0.10.0 · Mockups
|
|
6941
7052
|
|
|
6942
7053
|
Place a desktop tool inside a labelled window.
|
|
6943
7054
|
|
|
@@ -6960,7 +7071,7 @@ Template
|
|
|
6960
7071
|
|
|
6961
7072
|
# Code Mockup
|
|
6962
7073
|
|
|
6963
|
-
Mero UI 0.
|
|
7074
|
+
Mero UI 0.10.0 · Mockups
|
|
6964
7075
|
|
|
6965
7076
|
Present a terminal command and its output.
|
|
6966
7077
|
|