@rubenlangeweg/mero-ui 0.7.0 → 0.8.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.
Files changed (198) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +4 -4
  3. package/agent-docs/components/accordion.md +1 -1
  4. package/agent-docs/components/action-bar.md +1 -1
  5. package/agent-docs/components/action-button.md +32 -1
  6. package/agent-docs/components/agenda.md +1 -1
  7. package/agent-docs/components/alert-dialog.md +1 -1
  8. package/agent-docs/components/alert.md +1 -1
  9. package/agent-docs/components/app-layout.md +1 -1
  10. package/agent-docs/components/area-chart.md +1 -1
  11. package/agent-docs/components/aura.md +1 -1
  12. package/agent-docs/components/autocomplete.md +1 -1
  13. package/agent-docs/components/avatar-group.md +1 -1
  14. package/agent-docs/components/avatar.md +1 -1
  15. package/agent-docs/components/badge.md +1 -1
  16. package/agent-docs/components/bar-chart.md +1 -1
  17. package/agent-docs/components/breadcrumbs.md +1 -1
  18. package/agent-docs/components/browser-mockup.md +1 -1
  19. package/agent-docs/components/button-group.md +1 -1
  20. package/agent-docs/components/button.md +32 -1
  21. package/agent-docs/components/calendar.md +1 -1
  22. package/agent-docs/components/card.md +56 -1
  23. package/agent-docs/components/carousel.md +1 -1
  24. package/agent-docs/components/cell-color-picker.md +1 -1
  25. package/agent-docs/components/cell-select.md +1 -1
  26. package/agent-docs/components/cell-slider.md +1 -1
  27. package/agent-docs/components/cell-switch.md +1 -1
  28. package/agent-docs/components/chain-of-thought.md +1 -1
  29. package/agent-docs/components/chart-tooltip.md +1 -1
  30. package/agent-docs/components/chat-attachment.md +1 -1
  31. package/agent-docs/components/chat-conversation.md +1 -1
  32. package/agent-docs/components/chat-list-view.md +1 -1
  33. package/agent-docs/components/chat-loader.md +1 -1
  34. package/agent-docs/components/chat-message-actions.md +1 -1
  35. package/agent-docs/components/chat-message.md +1 -1
  36. package/agent-docs/components/chat-source.md +1 -1
  37. package/agent-docs/components/chat-tool.md +1 -1
  38. package/agent-docs/components/checkbox-button-group.md +1 -1
  39. package/agent-docs/components/checkbox-group.md +1 -1
  40. package/agent-docs/components/checkbox.md +1 -1
  41. package/agent-docs/components/chip.md +1 -1
  42. package/agent-docs/components/close-button.md +1 -1
  43. package/agent-docs/components/code-block.md +1 -1
  44. package/agent-docs/components/code-mockup.md +1 -1
  45. package/agent-docs/components/color-area.md +1 -1
  46. package/agent-docs/components/color-field.md +1 -1
  47. package/agent-docs/components/color-picker.md +1 -1
  48. package/agent-docs/components/color-slider.md +1 -1
  49. package/agent-docs/components/color-swatch.md +1 -1
  50. package/agent-docs/components/combo-box.md +1 -1
  51. package/agent-docs/components/command-menu.md +1 -1
  52. package/agent-docs/components/command.md +1 -1
  53. package/agent-docs/components/composed-chart.md +1 -1
  54. package/agent-docs/components/context-menu.md +1 -1
  55. package/agent-docs/components/countdown.md +1 -1
  56. package/agent-docs/components/data-grid.md +1 -1
  57. package/agent-docs/components/date-field.md +1 -1
  58. package/agent-docs/components/date-picker.md +1 -1
  59. package/agent-docs/components/date-range-picker.md +1 -1
  60. package/agent-docs/components/description-list.md +30 -0
  61. package/agent-docs/components/description.md +1 -1
  62. package/agent-docs/components/diff.md +1 -1
  63. package/agent-docs/components/disclosure-group.md +1 -1
  64. package/agent-docs/components/disclosure.md +1 -1
  65. package/agent-docs/components/dock.md +1 -1
  66. package/agent-docs/components/drawer.md +83 -1
  67. package/agent-docs/components/drop-zone.md +1 -1
  68. package/agent-docs/components/dropdown.md +1 -1
  69. package/agent-docs/components/emoji-picker.md +1 -1
  70. package/agent-docs/components/emoji-reaction-button.md +1 -1
  71. package/agent-docs/components/empty-state.md +36 -4
  72. package/agent-docs/components/error-message.md +1 -1
  73. package/agent-docs/components/fab.md +1 -1
  74. package/agent-docs/components/field-error.md +1 -1
  75. package/agent-docs/components/fieldset.md +45 -1
  76. package/agent-docs/components/file-input.md +1 -1
  77. package/agent-docs/components/file-tree.md +1 -1
  78. package/agent-docs/components/filter-chips.md +1 -1
  79. package/agent-docs/components/floating-toc.md +1 -1
  80. package/agent-docs/components/footer.md +1 -1
  81. package/agent-docs/components/form.md +155 -1
  82. package/agent-docs/components/hero.md +1 -1
  83. package/agent-docs/components/holo-card.md +1 -1
  84. package/agent-docs/components/hover-card.md +1 -1
  85. package/agent-docs/components/hover-gallery.md +1 -1
  86. package/agent-docs/components/indicator.md +1 -1
  87. package/agent-docs/components/inline-select.md +1 -1
  88. package/agent-docs/components/input-group.md +1 -1
  89. package/agent-docs/components/input-otp.md +1 -1
  90. package/agent-docs/components/input.md +1 -1
  91. package/agent-docs/components/item-card-group.md +1 -1
  92. package/agent-docs/components/item-card.md +1 -1
  93. package/agent-docs/components/join.md +1 -1
  94. package/agent-docs/components/joined-filter.md +1 -1
  95. package/agent-docs/components/kanban.md +1 -1
  96. package/agent-docs/components/kbd.md +32 -1
  97. package/agent-docs/components/kpi-group.md +1 -1
  98. package/agent-docs/components/kpi.md +1 -1
  99. package/agent-docs/components/label.md +1 -1
  100. package/agent-docs/components/line-chart.md +1 -1
  101. package/agent-docs/components/link.md +1 -1
  102. package/agent-docs/components/list-box.md +1 -1
  103. package/agent-docs/components/list-view.md +1 -1
  104. package/agent-docs/components/live-progress.md +34 -1
  105. package/agent-docs/components/map.md +1 -1
  106. package/agent-docs/components/markdown.md +1 -1
  107. package/agent-docs/components/mask.md +1 -1
  108. package/agent-docs/components/megamenu.md +1 -1
  109. package/agent-docs/components/menu-button.md +35 -1
  110. package/agent-docs/components/menu.md +1 -1
  111. package/agent-docs/components/meter.md +1 -1
  112. package/agent-docs/components/modal.md +1 -1
  113. package/agent-docs/components/native-select.md +1 -1
  114. package/agent-docs/components/navbar.md +1 -1
  115. package/agent-docs/components/number-field.md +1 -1
  116. package/agent-docs/components/number-stepper.md +1 -1
  117. package/agent-docs/components/number-value.md +1 -1
  118. package/agent-docs/components/page-header.md +69 -0
  119. package/agent-docs/components/pagination.md +1 -1
  120. package/agent-docs/components/phone-mockup.md +1 -1
  121. package/agent-docs/components/pie-chart.md +1 -1
  122. package/agent-docs/components/popover.md +1 -1
  123. package/agent-docs/components/pressable-feedback.md +1 -1
  124. package/agent-docs/components/progress-bar.md +1 -1
  125. package/agent-docs/components/progress-circle.md +1 -1
  126. package/agent-docs/components/prompt-input.md +1 -1
  127. package/agent-docs/components/prompt-suggestion.md +1 -1
  128. package/agent-docs/components/radar-chart.md +1 -1
  129. package/agent-docs/components/radial-chart.md +1 -1
  130. package/agent-docs/components/radio-button-group.md +1 -1
  131. package/agent-docs/components/radio-group.md +1 -1
  132. package/agent-docs/components/range-calendar.md +1 -1
  133. package/agent-docs/components/rating.md +1 -1
  134. package/agent-docs/components/resizable.md +1 -1
  135. package/agent-docs/components/rich-text-editor.md +1 -1
  136. package/agent-docs/components/scroll-shadow.md +1 -1
  137. package/agent-docs/components/search-field.md +43 -1
  138. package/agent-docs/components/segment.md +1 -1
  139. package/agent-docs/components/select.md +1 -1
  140. package/agent-docs/components/separator.md +1 -1
  141. package/agent-docs/components/sheet.md +1 -1
  142. package/agent-docs/components/sidebar.md +1 -1
  143. package/agent-docs/components/skeleton.md +1 -1
  144. package/agent-docs/components/slider.md +1 -1
  145. package/agent-docs/components/sortable-table.md +1 -1
  146. package/agent-docs/components/spinner.md +1 -1
  147. package/agent-docs/components/stack.md +1 -1
  148. package/agent-docs/components/status.md +1 -1
  149. package/agent-docs/components/stepper.md +1 -1
  150. package/agent-docs/components/surface.md +1 -1
  151. package/agent-docs/components/swap.md +1 -1
  152. package/agent-docs/components/switch.md +1 -1
  153. package/agent-docs/components/table.md +58 -1
  154. package/agent-docs/components/tabs.md +24 -1
  155. package/agent-docs/components/tag-group.md +1 -1
  156. package/agent-docs/components/text-area.md +1 -1
  157. package/agent-docs/components/text-field.md +1 -1
  158. package/agent-docs/components/text-rotate.md +1 -1
  159. package/agent-docs/components/text-shimmer.md +1 -1
  160. package/agent-docs/components/theme-controller.md +1 -1
  161. package/agent-docs/components/time-field.md +1 -1
  162. package/agent-docs/components/timeline.md +1 -1
  163. package/agent-docs/components/toast.md +1 -1
  164. package/agent-docs/components/toggle-button-group.md +1 -1
  165. package/agent-docs/components/toggle-button.md +1 -1
  166. package/agent-docs/components/toolbar.md +1 -1
  167. package/agent-docs/components/tooltip.md +1 -1
  168. package/agent-docs/components/trend-chip.md +1 -1
  169. package/agent-docs/components/typed-confirmation.md +1 -1
  170. package/agent-docs/components/typography.md +24 -1
  171. package/agent-docs/components/validator.md +1 -1
  172. package/agent-docs/components/visually-hidden.md +27 -0
  173. package/agent-docs/components/widget.md +1 -1
  174. package/agent-docs/components/window-mockup.md +1 -1
  175. package/agent-docs/llms-components.txt +987 -192
  176. package/agent-docs/llms-full.txt +1016 -201
  177. package/agent-docs/llms-patterns.txt +30 -10
  178. package/agent-docs/llms.txt +5 -2
  179. package/package.json +1 -1
  180. package/ui/insight-charts.mjs +1 -1
  181. package/ui/insight-markdown.mjs +1 -1
  182. package/ui/mero-collections.css +1 -7
  183. package/ui/mero-collections.js +1 -1
  184. package/ui/mero-composition.css +1 -1
  185. package/ui/mero-composition.js +1 -1
  186. package/ui/mero-forms.js +415 -27
  187. package/ui/mero-gallery.css +1 -1
  188. package/ui/mero-gallery.js +1 -1
  189. package/ui/mero-insights.css +1 -1
  190. package/ui/mero-insights.js +1 -1
  191. package/ui/mero-inventory.css +1 -1
  192. package/ui/mero-inventory.js +1 -1
  193. package/ui/mero-layouts.css +1 -4
  194. package/ui/mero-live.js +25 -4
  195. package/ui/mero-workspace.css +1 -1
  196. package/ui/mero-workspace.js +1 -1
  197. package/ui/mero.css +104 -5
  198. package/ui/mero.js +202 -2
@@ -1,4 +1,4 @@
1
- # Mero UI 0.7.0 integration patterns
1
+ # Mero UI 0.8.0 integration patterns
2
2
 
3
3
  ## Install a component
4
4
 
@@ -30,9 +30,9 @@ Fires on a remote combobox input when it needs fresh options, for example an arr
30
30
 
31
31
  ### mero:action
32
32
 
33
- Fires on a `data-mero-action` button when its request starts and when it ends, or on the document when a swap removed the button. Requires `mero-forms.js`.
33
+ 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`.
34
34
 
35
- event.detail: `{ state, status, message }`. `state` is `pending`, `succeeded`, `rejected` or `unknown`. `status` and `message` are set once the request ends.
35
+ event.detail: `{ state, status, message }`. `state` is `pending`, `succeeded`, `rejected` or `unknown`. `status` and `message` are set once the request ends. `status` is 0 when no response arrived.
36
36
 
37
37
  ### mero:refresh
38
38
 
@@ -104,7 +104,7 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
104
104
  - `data-mero-accordion` — On the parent of `<details>` elements. Only one stays open at a time.
105
105
  - `data-mero-radio-group` — Around radios that sit outside a form. Repeated copies with the same `name` stay independent.
106
106
  - `data-mero-radio-owner` (set by Mero) — On the hidden form Mero adds to own those radios.
107
- - `data-mero-scope` — On a repeated snippet or fragment. Mero renames duplicate IDs inside it and updates `for`, ARIA, `popovertarget`, `data-mero-open` and ID selectors in `hx-target`, `data-mero-return-focus` and `data-mero-fallback-focus` to match.
107
+ - `data-mero-scope` — On a repeated snippet or fragment. Mero renames duplicate IDs inside it and updates `for`, ARIA, `popovertarget`, `data-mero-open` and ID selectors in `hx-target`, `data-mero-return-focus`, `data-mero-fallback-focus`, `data-mero-action-unknown`, `data-mero-action-reread` and `data-mero-ephemeral-dismiss` to match.
108
108
  - `data-mero-listbox` — On a `role="listbox"`. Adds arrow-key navigation and selection, and fires `mero:selection`.
109
109
  - `data-mero-combo` — Root of a combobox. Wraps the `role="combobox"` input and its options.
110
110
  - `data-mero-combo-remote` — On the combobox root when the options come from your server. Mero then leaves filtering to the response.
@@ -118,12 +118,20 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
118
118
  - `data-mero-tooltip-below` (set by Mero) — On a tooltip placed below its anchor because there is no room above.
119
119
  - `data-mero-tooltip-dismissed` (set by Mero) — On a tooltip closed with Escape, until the pointer and focus leave it.
120
120
  - `data-mero-cell-label` — On an `aria-hidden="true"` span inside a table cell. Copy its column heading here for the card layout. Add `mero-table-cards` to the table wrapper for cards below 768 px, or `mero-table-cards-wide` for 1024 px. See the [Sortable Table](components/sortable-table.md) for the table roles and sort links.
121
+ - `data-mero-card-hidden` — On a `th` or `td` in a `mero-table-cards` table. Hides that column in the card layout below 768 px, or 1024 px with `mero-table-cards-wide`. Put it on the column's header and on each of its cells. See the [Table](components/table?variant=Cards%20on%20phones.md).
121
122
  - `data-mero-command` — On a `<dialog>` holding a remote combobox. Cmd or Ctrl K opens it with an empty query, and choosing an option runs that option’s link, `hx-*` request or toast. Give the shortcut to one command menu per page, including the workspace Command. Group server results with `role="group"` and `aria-labelledby` pointing to a visible heading. Give each option a unique ID. Up and Down cross groups, Home and End reach the first and last result, and the status counts selectable options. Omit empty groups and return one disabled “No results” option when nothing matches.
122
123
  - `data-mero-peek` — Around a table wrapper whose rows have a `.mero-row-link`. With a row link focused, Space shows the row’s `data-mero-peek-body` template in a Preview panel beside the table, or in a bottom sheet below 768 px. While it is open, Up and Down Arrow move between rows and the panel follows focus. Space or Escape closes it and focuses the row. See the [Sortable Table](components/sortable-table.md) Row peek variant.
123
124
  - `data-mero-peek-body` — On a `<template>` inside a row of a `data-mero-peek` table. Holds the server-rendered preview for that row. Give the row a stable `id` so the preview follows it through swaps; otherwise Mero matches the row link’s `href`.
124
125
  - `data-mero-peek-close` (set by Mero) — On the Close button of the Preview panel Mero adds.
125
126
  - `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`.
126
- - `data-mero-focus-fallback` — On one control inside a `data-mero-restore-focus` container. Gets focus after an htmx swap when the initiating control has no focusable replacement with the same ID.
127
+ - `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.
128
+ - `data-mero-copy-message` — With `data-mero-copy` or `data-mero-copy-target`. Replaces the “Copied” notification.
129
+ - `data-mero-time` — On a `<time datetime>`. Rewrites its text in the reader’s locale and time zone: `absolute` (date and time), `date`, `time` or `relative` (“5 minutes ago”, refreshed every minute, with the full date in `title`). Render the UTC time as its text for readers without scripts. See the [Typography](components/typography.md) Local time variant.
130
+ - `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.
131
+ - `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.
132
+ - `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.
133
+ - `data-mero-focus-manual` — On an htmx swap target, or an ancestor. Mero leaves focus after swaps inside it to your own code.
134
+ - `data-mero-boost` — On an element with `hx-boost:inherited`, such as `<body>`. A selector for the region every boosted page contains. The newest boosted GET wins and older ones are aborted; boosted forms that change data are never aborted. A 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. When a boosted 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.
127
135
  - `data-mero-pending` — On any element. Shows a `.mero-indicator` inside it, as `.htmx-request` does.
128
136
  - `data-mero-request` — With a pending state. Sets a progress cursor on the element.
129
137
 
@@ -135,22 +143,34 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
135
143
  - `data-mero-confirm-reason` — On the optional reason field. Add `required` to require a non-empty, trimmed value.
136
144
  - `data-mero-confirm-submit` — On the danger submit button. Render it disabled until the phrase and any required reason are ready.
137
145
  - `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.
138
- - `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.
146
+ - `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.
147
+ - `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.
139
148
  - `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.
140
- - `data-mero-action-state` (set by Mero) — On a `data-mero-action` button: `pending`, then `succeeded` (2xx), `rejected` (4xx other than 408) or `unknown` (anything else, including network errors).
149
+ - `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.
150
+ - `data-mero-action-expect` — On a `data-mero-action` button, a `data-mero-form` or its submit button. A selector the response body must contain. A success without a match becomes `unknown`, is not swapped and does not show the server’s success message. Use it when the response carries something the person cannot get again, such as a new token.
151
+ - `data-mero-action-unknown` — On a `data-mero-action` button, a `data-mero-form` or its submit button. The text to show for an unknown outcome when the server sent no `Mero-Action-Message`, or `#id` of a hidden recovery panel to reveal. Mero hides the panel again when the next request starts. Wrap a `.mero-alert` in the hidden element, because the alert sets its own display.
152
+ - `data-mero-action-reread` — On a `data-mero-action` button, a `data-mero-form` or an ancestor. A selector for the region to read again after an `unknown` outcome. Mero GETs the current page with a `Mero-Reread` request header, morphs the region from the response and shows the unknown message again. It never repeats the action. The answer is dropped when it is not a 2xx, lacks the region, the URL changed or a newer read started. See the [Action Button](components/action-button.md) Re-read after unknown variant.
141
153
  - `data-mero-action-status` — A live region next to the button. Receives the outcome message and a `data-tone`. Without one, the message shows as a toast.
154
+ - `data-mero-search` — On a search or filter form whose htmx GET replaces a list. A failed read never replaces the list: Mero skips the swap of a non-2xx response and of a response without the `hx-select` region, shows a message in `data-mero-search-error` and, once no search is pending, returns selects, checkboxes and radios to the values of the list on screen. Text the person typed stays. A redirected response without the region, such as a login page, loads as a full page. Use `hx-sync="this:replace"` so the newest search wins. See the [Search Field](components/search-field.md) Filtered list variant.
155
+ - `data-mero-search-error` — Inside a `data-mero-search` form. A hidden alert that receives the failure message and hides again after the next successful read. Its attribute value, when set, is the message; otherwise Mero uses `Mero-Form-Error` or a default.
142
156
  - `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.
143
157
  - `data-mero-return-focus` — On the form. Selector for the element to focus after `mero:form-saved`.
144
158
  - `data-mero-fallback-focus` — On the form. Selector to focus when the return-focus element is gone.
159
+ - `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.
160
+ - `data-mero-dirty` — On a form. Keeps its submit buttons disabled until a field differs from the value the server rendered, and again once every field is back to that value.
145
161
  - `data-mero-close-all` — On a form in a nested dialog. A save closes the parent dialogs too.
162
+ - `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.
163
+ - `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.
164
+ - `data-mero-ephemeral-dismiss` — On a button inside a `data-mero-ephemeral` element. Empties that element. The optional value is a selector to focus afterwards; otherwise the emptied element takes focus.
146
165
 
147
166
  ### Live progress · mero-live.js
148
167
 
149
168
  - `data-mero-live` — On a region with `hx-get` and `hx-trigger="mero:refresh"`. Its value is the interval in milliseconds, 3000 by default. Polling pauses while the page is hidden. Send `Mero-Live: done` on the final successful response.
150
169
  - `data-mero-live-status` — Use this polite status region as the innerHTML target. Return a status label as an HTML fragment. Mero skips a repeated label so it is announced once.
151
- - `data-mero-live-error` — An initially empty status region that announces a failed read. The last good status stays visible until a successful read.
170
+ - `data-mero-live-error` — An initially empty status region that announces a failed read. The last good status stays visible until a successful read. The attribute value, when set, replaces the default text; `{time}` becomes the time of the last good read in the browser’s locale, or the page load when no read has succeeded yet.
171
+ - `data-mero-live-follow` — On the `data-mero-live` region. An error response with `HX-Redirect`, `HX-Location` or `HX-Refresh: true`, such as a 401 for an expired session, is handed to htmx instead of retried, and polling stops. Without it Mero ignores those headers on an error response and keeps retrying.
152
172
  - `data-mero-live-retry` — On a hidden button. Mero shows it after a failed read. Activating it refreshes the status immediately. If a successful read hides the focused button, focus returns to the region.
153
- - `data-mero-live-done` — On an operation with a final status. Mero sets it after a successful response with the terminal header. Render it yourself if the operation has already finished.
173
+ - `data-mero-live-done` — On an operation with a final status. Mero sets it after a successful response with the terminal header, and after following a redirect with `data-mero-live-follow`. Render it yourself if the operation has already finished.
154
174
 
155
175
  ### Gallery · mero-gallery.js
156
176
 
@@ -182,7 +202,7 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
182
202
  - `data-mero-series` — On each chart mark. Arrow up and down move between series at the same category.
183
203
  - `data-mero-plot-readout` — Receives the text of the active mark for assistive technology.
184
204
  - `data-mero-plot-tooltip` — The tooltip positioned at the active mark.
185
- - `data-mero-copy` — On a button in a code block or chat message. Copies the code or the message text.
205
+ - `data-mero-copy` — On a button in a code block or chat message, empty: copies the code or the message text (`mero-insights.js`). With a value, on any button: copies that text and confirms it with a notification (`mero.js`).
186
206
  - `data-mero-copy-label` (set by Mero) — On a copy button. Its original label, restored after “Copied”.
187
207
  - `data-mero-message-text` — Inside a chat message. The text a copy button copies.
188
208
  - `data-mero-reaction` — On a reaction button. Toggles `aria-pressed`, updates the count and fires `mero:reaction`.
@@ -231,7 +251,7 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
231
251
 
232
252
  # Carousel
233
253
 
234
- Mero UI 0.7.0 · Media galleries
254
+ Mero UI 0.8.0 · Media galleries
235
255
 
236
256
  Browse product photography with native scroll snap, thumbnails and keyboard controls.
237
257
 
@@ -308,7 +328,7 @@ Template
308
328
 
309
329
  # Hover Gallery
310
330
 
311
- Mero UI 0.7.0 · Media galleries
331
+ Mero UI 0.8.0 · Media galleries
312
332
 
313
333
  Explore the shade, base and profile of a product with a pointer, touch or keyboard.
314
334
 
@@ -385,7 +405,7 @@ Template
385
405
 
386
406
  # Image Diff
387
407
 
388
- Mero UI 0.7.0 · Media galleries
408
+ Mero UI 0.8.0 · Media galleries
389
409
 
390
410
  Reveal two finishes at the same position using an accessible comparison slider.
391
411
 
@@ -427,7 +447,7 @@ Template
427
447
 
428
448
  # Holo Card
429
449
 
430
- Mero UI 0.7.0 · Media galleries
450
+ Mero UI 0.8.0 · Media galleries
431
451
 
432
452
  Catch a material sample in a shifting foil reflection.
433
453
 
@@ -459,7 +479,7 @@ Template
459
479
 
460
480
  # Data Grid
461
481
 
462
- Mero UI 0.7.0 · Studio collections
482
+ Mero UI 0.8.0 · Studio collections
463
483
 
464
484
  Search, sort, select and edit products in a server-rendered collection.
465
485
 
@@ -617,7 +637,7 @@ Template
617
637
 
618
638
  # Action Bar
619
639
 
620
- Mero UI 0.7.0 · Studio collections
640
+ Mero UI 0.8.0 · Studio collections
621
641
 
622
642
  Select records and apply one status change to the selection.
623
643
 
@@ -661,7 +681,7 @@ Template
661
681
 
662
682
  # Agenda
663
683
 
664
- Mero UI 0.7.0 · Studio collections
684
+ Mero UI 0.8.0 · Studio collections
665
685
 
666
686
  Browse daily bookings and add a timed event.
667
687
 
@@ -696,32 +716,9 @@ Template
696
716
  </section></div>
697
717
  ````
698
718
 
699
- # Empty State
700
-
701
- Mero UI 0.7.0 · Studio collections
702
-
703
- Explain an empty result and give the user a relevant next action.
704
-
705
- ## Default
706
-
707
- Page assets
708
-
709
- ```html
710
- <link rel="stylesheet" href="/mero.css">
711
- <link rel="stylesheet" href="/mero-collections.css">
712
- <script defer src="/mero.js"></script>
713
- <script defer src="/mero-collections.js"></script>
714
- ```
715
-
716
- Template
717
-
718
- ````html
719
- <section class="mero-collection-empty"><div class="mero-empty-state"><span class="mero-empty-glyph" aria-hidden="true"></span><strong>No products in this collection</strong><p>Add the first product to start tracking inventory.</p></div><a class="mero-button mero-button-primary mero-button-sm" href="/components/data-grid">Open inventory</a></section>
720
- ````
721
-
722
719
  # File Tree
723
720
 
724
- Mero UI 0.7.0 · Studio collections
721
+ Mero UI 0.8.0 · Studio collections
725
722
 
726
723
  Expand folders and preview a selected file with native disclosure controls.
727
724
 
@@ -744,7 +741,7 @@ Template
744
741
 
745
742
  # Floating TOC
746
743
 
747
- Mero UI 0.7.0 · Studio collections
744
+ Mero UI 0.8.0 · Studio collections
748
745
 
749
746
  Navigate to sections with an index that follows the reading position.
750
747
 
@@ -767,7 +764,7 @@ Template
767
764
 
768
765
  # Hover Card
769
766
 
770
- Mero UI 0.7.0 · Studio collections
767
+ Mero UI 0.8.0 · Studio collections
771
768
 
772
769
  Preview a contributor on hover, focus or tap.
773
770
 
@@ -792,7 +789,7 @@ Template
792
789
 
793
790
  # Item Card
794
791
 
795
- Mero UI 0.7.0 · Studio collections
792
+ Mero UI 0.8.0 · Studio collections
796
793
 
797
794
  Give a related destination an identity, title and supporting detail.
798
795
 
@@ -815,7 +812,7 @@ Template
815
812
 
816
813
  # Item Card Group
817
814
 
818
- Mero UI 0.7.0 · Studio collections
815
+ Mero UI 0.8.0 · Studio collections
819
816
 
820
817
  Arrange related destinations into a responsive group.
821
818
 
@@ -838,7 +835,7 @@ Template
838
835
 
839
836
  # Kanban
840
837
 
841
- Mero UI 0.7.0 · Studio collections
838
+ Mero UI 0.8.0 · Studio collections
842
839
 
843
840
  Move a card between stages with a drag or its Move to menu.
844
841
 
@@ -863,7 +860,7 @@ Template
863
860
 
864
861
  # List View
865
862
 
866
- Mero UI 0.7.0 · Studio collections
863
+ Mero UI 0.8.0 · Studio collections
867
864
 
868
865
  Browse structured destinations in a compact keyboard-accessible list.
869
866
 
@@ -886,7 +883,7 @@ Template
886
883
 
887
884
  # Map
888
885
 
889
- Mero UI 0.7.0 · Studio collections
886
+ Mero UI 0.8.0 · Studio collections
890
887
 
891
888
  Choose a location on a self-contained campus map and read its address.
892
889
 
@@ -911,7 +908,7 @@ Template
911
908
 
912
909
  # Timeline
913
910
 
914
- Mero UI 0.7.0 · Studio collections
911
+ Mero UI 0.8.0 · Studio collections
915
912
 
916
913
  Present milestones in order and identify the current step.
917
914
 
@@ -934,7 +931,7 @@ Template
934
931
 
935
932
  # Widget
936
933
 
937
- Mero UI 0.7.0 · Studio collections
934
+ Mero UI 0.8.0 · Studio collections
938
935
 
939
936
  Use a dashboard panel to track a checklist and its progress.
940
937
 
@@ -957,7 +954,7 @@ Template
957
954
 
958
955
  # Cell Color Picker
959
956
 
960
- Mero UI 0.7.0 · Workspace forms
957
+ Mero UI 0.8.0 · Workspace forms
961
958
 
962
959
  Change one preference and receive inline confirmation from the server.
963
960
 
@@ -988,7 +985,7 @@ Template
988
985
 
989
986
  # Cell Select
990
987
 
991
- Mero UI 0.7.0 · Workspace forms
988
+ Mero UI 0.8.0 · Workspace forms
992
989
 
993
990
  Change one preference and receive inline confirmation from the server.
994
991
 
@@ -1019,7 +1016,7 @@ Template
1019
1016
 
1020
1017
  # Cell Slider
1021
1018
 
1022
- Mero UI 0.7.0 · Workspace forms
1019
+ Mero UI 0.8.0 · Workspace forms
1023
1020
 
1024
1021
  Change one preference and receive inline confirmation from the server.
1025
1022
 
@@ -1050,7 +1047,7 @@ Template
1050
1047
 
1051
1048
  # Cell Switch
1052
1049
 
1053
- Mero UI 0.7.0 · Workspace forms
1050
+ Mero UI 0.8.0 · Workspace forms
1054
1051
 
1055
1052
  Change one preference and receive inline confirmation from the server.
1056
1053
 
@@ -1081,7 +1078,7 @@ Template
1081
1078
 
1082
1079
  # Checkbox Button Group
1083
1080
 
1084
- Mero UI 0.7.0 · Workspace forms
1081
+ Mero UI 0.8.0 · Workspace forms
1085
1082
 
1086
1083
  Select several release channels using native checkboxes.
1087
1084
 
@@ -1109,7 +1106,7 @@ Template
1109
1106
 
1110
1107
  # Radio Button Group
1111
1108
 
1112
- Mero UI 0.7.0 · Workspace forms
1109
+ Mero UI 0.8.0 · Workspace forms
1113
1110
 
1114
1111
  Choose one release schedule with labelled option cards.
1115
1112
 
@@ -1136,7 +1133,7 @@ Template
1136
1133
 
1137
1134
  # Native Select
1138
1135
 
1139
- Mero UI 0.7.0 · Workspace forms
1136
+ Mero UI 0.8.0 · Workspace forms
1140
1137
 
1141
1138
  Choose a workspace from labelled option groups.
1142
1139
 
@@ -1161,7 +1158,7 @@ Template
1161
1158
 
1162
1159
  # Inline Select
1163
1160
 
1164
- Mero UI 0.7.0 · Workspace forms
1161
+ Mero UI 0.8.0 · Workspace forms
1165
1162
 
1166
1163
  Change an audience within the sentence that describes it.
1167
1164
 
@@ -1186,7 +1183,7 @@ Template
1186
1183
 
1187
1184
  # Number Stepper
1188
1185
 
1189
- Mero UI 0.7.0 · Workspace forms
1186
+ Mero UI 0.8.0 · Workspace forms
1190
1187
 
1191
1188
  Change a bounded quantity with the keyboard or step buttons.
1192
1189
 
@@ -1216,7 +1213,7 @@ Template
1216
1213
 
1217
1214
  # File Input
1218
1215
 
1219
- Mero UI 0.7.0 · Workspace forms
1216
+ Mero UI 0.8.0 · Workspace forms
1220
1217
 
1221
1218
  Choose a local product image and validate it on the server.
1222
1219
 
@@ -1247,7 +1244,7 @@ Template
1247
1244
 
1248
1245
  # Drop Zone
1249
1246
 
1250
- Mero UI 0.7.0 · Workspace forms
1247
+ Mero UI 0.8.0 · Workspace forms
1251
1248
 
1252
1249
  Drop an image or use the native file picker and check the file.
1253
1250
 
@@ -1280,7 +1277,7 @@ Template
1280
1277
 
1281
1278
  # Rich Text Editor
1282
1279
 
1283
- Mero UI 0.7.0 · Workspace forms
1280
+ Mero UI 0.8.0 · Workspace forms
1284
1281
 
1285
1282
  Edit a short description with bold and italic text and preview the submitted result.
1286
1283
 
@@ -1314,7 +1311,7 @@ Template
1314
1311
 
1315
1312
  # Joined Filter
1316
1313
 
1317
- Mero UI 0.7.0 · Workspace forms
1314
+ Mero UI 0.8.0 · Workspace forms
1318
1315
 
1319
1316
  Search and filter releases with one server request.
1320
1317
 
@@ -1341,7 +1338,7 @@ Template
1341
1338
 
1342
1339
  # App Layout
1343
1340
 
1344
- Mero UI 0.7.0 · Workspace navigation
1341
+ Mero UI 0.8.0 · Workspace navigation
1345
1342
 
1346
1343
  A responsive workspace with a sidebar, content area and mobile navigation drawer.
1347
1344
 
@@ -1376,7 +1373,7 @@ Template
1376
1373
 
1377
1374
  # Sidebar
1378
1375
 
1379
- Mero UI 0.7.0 · Workspace navigation
1376
+ Mero UI 0.8.0 · Workspace navigation
1380
1377
 
1381
1378
  Navigate the workspace from a side rail that becomes a drawer at narrow widths.
1382
1379
 
@@ -1411,7 +1408,7 @@ Template
1411
1408
 
1412
1409
  # Navbar
1413
1410
 
1414
- Mero UI 0.7.0 · Workspace navigation
1411
+ Mero UI 0.8.0 · Workspace navigation
1415
1412
 
1416
1413
  Place the workspace name and destinations in a wrapping top bar.
1417
1414
 
@@ -1434,7 +1431,7 @@ Template
1434
1431
 
1435
1432
  # Command
1436
1433
 
1437
- Mero UI 0.7.0 · Workspace navigation
1434
+ Mero UI 0.8.0 · Workspace navigation
1438
1435
 
1439
1436
  Search destinations and actions, then use the arrows and Enter to execute.
1440
1437
 
@@ -1471,7 +1468,7 @@ Template
1471
1468
 
1472
1469
  # Context Menu
1473
1470
 
1474
- Mero UI 0.7.0 · Workspace navigation
1471
+ Mero UI 0.8.0 · Workspace navigation
1475
1472
 
1476
1473
  Open item actions with the visible button, a secondary click, or Shift F10.
1477
1474
 
@@ -1501,7 +1498,7 @@ Template
1501
1498
 
1502
1499
  # Segment
1503
1500
 
1504
- Mero UI 0.7.0 · Workspace navigation
1501
+ Mero UI 0.8.0 · Workspace navigation
1505
1502
 
1506
1503
  Choose one display density in a compact segmented control.
1507
1504
 
@@ -1528,7 +1525,7 @@ Template
1528
1525
 
1529
1526
  # Stepper
1530
1527
 
1531
- Mero UI 0.7.0 · Workspace navigation
1528
+ Mero UI 0.8.0 · Workspace navigation
1532
1529
 
1533
1530
  Move through validated project details and review the values before submitting.
1534
1531
 
@@ -1559,7 +1556,7 @@ Template
1559
1556
 
1560
1557
  # Dock
1561
1558
 
1562
- Mero UI 0.7.0 · Workspace navigation
1559
+ Mero UI 0.8.0 · Workspace navigation
1563
1560
 
1564
1561
  Group frequently used workspace destinations in a compact navigation dock.
1565
1562
 
@@ -1584,7 +1581,7 @@ Template
1584
1581
 
1585
1582
  # Megamenu
1586
1583
 
1587
- Mero UI 0.7.0 · Workspace navigation
1584
+ Mero UI 0.8.0 · Workspace navigation
1588
1585
 
1589
1586
  Explore grouped destinations from a native disclosure.
1590
1587
 
@@ -1609,7 +1606,7 @@ Template
1609
1606
 
1610
1607
  # Floating Action Button
1611
1608
 
1612
- Mero UI 0.7.0 · Workspace navigation
1609
+ Mero UI 0.8.0 · Workspace navigation
1613
1610
 
1614
1611
  Reveal a small set of workspace shortcuts.
1615
1612
 
@@ -1634,7 +1631,7 @@ Template
1634
1631
 
1635
1632
  # Resizable
1636
1633
 
1637
- Mero UI 0.7.0 · Workspace tools
1634
+ Mero UI 0.8.0 · Workspace tools
1638
1635
 
1639
1636
  Resize two adjacent panels by dragging the divider or using the arrow keys.
1640
1637
 
@@ -1688,7 +1685,7 @@ Template
1688
1685
 
1689
1686
  # Emoji Picker
1690
1687
 
1691
- Mero UI 0.7.0 · Workspace tools
1688
+ Mero UI 0.8.0 · Workspace tools
1692
1689
 
1693
1690
  Search named reactions and submit the selected emoji as a form value.
1694
1691
 
@@ -1718,7 +1715,7 @@ Template
1718
1715
 
1719
1716
  # Area Chart
1720
1717
 
1721
- Mero UI 0.7.0 · Charts
1718
+ Mero UI 0.8.0 · Charts
1722
1719
 
1723
1720
  Show the volume and shape of a series over time.
1724
1721
 
@@ -1753,7 +1750,7 @@ Template
1753
1750
 
1754
1751
  # Bar Chart
1755
1752
 
1756
- Mero UI 0.7.0 · Charts
1753
+ Mero UI 0.8.0 · Charts
1757
1754
 
1758
1755
  Compare adjacent categories on a shared linear scale.
1759
1756
 
@@ -1788,7 +1785,7 @@ Template
1788
1785
 
1789
1786
  # Chart Tooltip
1790
1787
 
1791
- Mero UI 0.7.0 · Charts
1788
+ Mero UI 0.8.0 · Charts
1792
1789
 
1793
1790
  Inspect the active data point using a pointer or keyboard.
1794
1791
 
@@ -1823,7 +1820,7 @@ Template
1823
1820
 
1824
1821
  # Composed Chart
1825
1822
 
1826
- Mero UI 0.7.0 · Charts
1823
+ Mero UI 0.8.0 · Charts
1827
1824
 
1828
1825
  Compare actual volume with its target using columns and a line.
1829
1826
 
@@ -1858,7 +1855,7 @@ Template
1858
1855
 
1859
1856
  # Line Chart
1860
1857
 
1861
- Mero UI 0.7.0 · Charts
1858
+ Mero UI 0.8.0 · Charts
1862
1859
 
1863
1860
  Trace changes across a reporting period.
1864
1861
 
@@ -1921,7 +1918,7 @@ Template
1921
1918
 
1922
1919
  # Pie Chart
1923
1920
 
1924
- Mero UI 0.7.0 · Charts
1921
+ Mero UI 0.8.0 · Charts
1925
1922
 
1926
1923
  See how each collection contributes to total volume.
1927
1924
 
@@ -1956,7 +1953,7 @@ Template
1956
1953
 
1957
1954
  # Radar Chart
1958
1955
 
1959
- Mero UI 0.7.0 · Charts
1956
+ Mero UI 0.8.0 · Charts
1960
1957
 
1961
1958
  Compare profiles across axes that use the same units.
1962
1959
 
@@ -1991,7 +1988,7 @@ Template
1991
1988
 
1992
1989
  # Radial Chart
1993
1990
 
1994
- Mero UI 0.7.0 · Charts
1991
+ Mero UI 0.8.0 · Charts
1995
1992
 
1996
1993
  Compare categories as concentric rings against the largest category.
1997
1994
 
@@ -2026,7 +2023,7 @@ Template
2026
2023
 
2027
2024
  # KPI
2028
2025
 
2029
- Mero UI 0.7.0 · Metrics
2026
+ Mero UI 0.8.0 · Metrics
2030
2027
 
2031
2028
  Pair an exact figure with the reporting period it describes.
2032
2029
 
@@ -2049,7 +2046,7 @@ Template
2049
2046
 
2050
2047
  # KPI Group
2051
2048
 
2052
- Mero UI 0.7.0 · Metrics
2049
+ Mero UI 0.8.0 · Metrics
2053
2050
 
2054
2051
  Keep related measures on a common reporting period.
2055
2052
 
@@ -2072,7 +2069,7 @@ Template
2072
2069
 
2073
2070
  # Emoji Reaction Button
2074
2071
 
2075
- Mero UI 0.7.0 · Interaction feedback
2072
+ Mero UI 0.8.0 · Interaction feedback
2076
2073
 
2077
2074
  Add or remove a reaction while keeping its count visible.
2078
2075
 
@@ -2097,7 +2094,7 @@ Template
2097
2094
 
2098
2095
  # Number Value
2099
2096
 
2100
- Mero UI 0.7.0 · Interaction feedback
2097
+ Mero UI 0.8.0 · Interaction feedback
2101
2098
 
2102
2099
  Display a localized number with its machine-readable value.
2103
2100
 
@@ -2122,7 +2119,7 @@ Template
2122
2119
 
2123
2120
  # Pressable Feedback
2124
2121
 
2125
- Mero UI 0.7.0 · Interaction feedback
2122
+ Mero UI 0.8.0 · Interaction feedback
2126
2123
 
2127
2124
  Give a press a tactile response and keep its selected state visible.
2128
2125
 
@@ -2145,7 +2142,7 @@ Template
2145
2142
 
2146
2143
  # Rating
2147
2144
 
2148
- Mero UI 0.7.0 · Interaction feedback
2145
+ Mero UI 0.8.0 · Interaction feedback
2149
2146
 
2150
2147
  Choose a labelled score using native radio controls.
2151
2148
 
@@ -2170,7 +2167,7 @@ Template
2170
2167
 
2171
2168
  # Trend Chip
2172
2169
 
2173
- Mero UI 0.7.0 · Interaction feedback
2170
+ Mero UI 0.8.0 · Interaction feedback
2174
2171
 
2175
2172
  Label the direction and magnitude of a change.
2176
2173
 
@@ -2193,7 +2190,7 @@ Template
2193
2190
 
2194
2191
  # Chain Of Thought
2195
2192
 
2196
- Mero UI 0.7.0 · Conversation
2193
+ Mero UI 0.8.0 · Conversation
2197
2194
 
2198
2195
  Display a disclosure of observable execution steps for a report.
2199
2196
 
@@ -2218,7 +2215,7 @@ Template
2218
2215
 
2219
2216
  # Chat Attachment
2220
2217
 
2221
- Mero UI 0.7.0 · Conversation
2218
+ Mero UI 0.8.0 · Conversation
2222
2219
 
2223
2220
  Display a named file and provide a working download.
2224
2221
 
@@ -2243,7 +2240,7 @@ Template
2243
2240
 
2244
2241
  # Chat Conversation
2245
2242
 
2246
- Mero UI 0.7.0 · Conversation
2243
+ Mero UI 0.8.0 · Conversation
2247
2244
 
2248
2245
  Keep messages, controls and a composer in one scoped conversation.
2249
2246
 
@@ -2303,7 +2300,7 @@ Template
2303
2300
 
2304
2301
  # Chat List View
2305
2302
 
2306
- Mero UI 0.7.0 · Conversation
2303
+ Mero UI 0.8.0 · Conversation
2307
2304
 
2308
2305
  Open a conversation returned by the server.
2309
2306
 
@@ -2327,7 +2324,7 @@ Template
2327
2324
 
2328
2325
  # Chat Loader
2329
2326
 
2330
- Mero UI 0.7.0 · Conversation
2327
+ Mero UI 0.8.0 · Conversation
2331
2328
 
2332
2329
  Show a concise status while a response is being prepared.
2333
2330
 
@@ -2350,7 +2347,7 @@ Template
2350
2347
 
2351
2348
  # Chat Message
2352
2349
 
2353
- Mero UI 0.7.0 · Conversation
2350
+ Mero UI 0.8.0 · Conversation
2354
2351
 
2355
2352
  Distinguish the sender and keep the message readable after a swap.
2356
2353
 
@@ -2373,7 +2370,7 @@ Template
2373
2370
 
2374
2371
  # Chat Message Actions
2375
2372
 
2376
- Mero UI 0.7.0 · Conversation
2373
+ Mero UI 0.8.0 · Conversation
2377
2374
 
2378
2375
  Copy a reply or mark it as helpful.
2379
2376
 
@@ -2397,7 +2394,7 @@ Template
2397
2394
 
2398
2395
  # Chat Source
2399
2396
 
2400
- Mero UI 0.7.0 · Conversation
2397
+ Mero UI 0.8.0 · Conversation
2401
2398
 
2402
2399
  Open the exact data behind a generated summary.
2403
2400
 
@@ -2420,7 +2417,7 @@ Template
2420
2417
 
2421
2418
  # Chat Tool
2422
2419
 
2423
- Mero UI 0.7.0 · Conversation
2420
+ Mero UI 0.8.0 · Conversation
2424
2421
 
2425
2422
  Disclose the inputs and output of an application action.
2426
2423
 
@@ -2460,7 +2457,7 @@ Template
2460
2457
 
2461
2458
  # Code Block
2462
2459
 
2463
- Mero UI 0.7.0 · Conversation
2460
+ Mero UI 0.8.0 · Conversation
2464
2461
 
2465
2462
  Show a file caption, selectable code and a copy control.
2466
2463
 
@@ -2483,7 +2480,7 @@ Template
2483
2480
 
2484
2481
  # Markdown
2485
2482
 
2486
- Mero UI 0.7.0 · Conversation
2483
+ Mero UI 0.8.0 · Conversation
2487
2484
 
2488
2485
  Render a small safe subset of Markdown into semantic HTML.
2489
2486
 
@@ -2518,7 +2515,7 @@ Template
2518
2515
 
2519
2516
  # Prompt Input
2520
2517
 
2521
- Mero UI 0.7.0 · Conversation
2518
+ Mero UI 0.8.0 · Conversation
2522
2519
 
2523
2520
  Collect a question and submit it to a server-rendered response endpoint.
2524
2521
 
@@ -2549,7 +2546,7 @@ Template
2549
2546
 
2550
2547
  # Prompt Suggestion
2551
2548
 
2552
- Mero UI 0.7.0 · Conversation
2549
+ Mero UI 0.8.0 · Conversation
2553
2550
 
2554
2551
  Choose a suggested prompt, edit it, then send it.
2555
2552
 
@@ -2580,7 +2577,7 @@ Template
2580
2577
 
2581
2578
  # Text Shimmer
2582
2579
 
2583
- Mero UI 0.7.0 · Conversation
2580
+ Mero UI 0.8.0 · Conversation
2584
2581
 
2585
2582
  Indicate work in progress with a moving highlight across readable text.
2586
2583
 
@@ -2603,7 +2600,7 @@ Template
2603
2600
 
2604
2601
  # Button
2605
2602
 
2606
- Mero UI 0.7.0 · Buttons
2603
+ Mero UI 0.8.0 · Buttons
2607
2604
 
2608
2605
  Trigger an action with a consistent hierarchy of visual emphasis.
2609
2606
 
@@ -2626,6 +2623,37 @@ Template
2626
2623
  </div>
2627
2624
  ````
2628
2625
 
2626
+ ## Copy to clipboard
2627
+
2628
+ Copy an ID or a field’s value and confirm it with a notification.
2629
+
2630
+ data-mero-copy holds the text to copy. data-mero-copy-target names an input, textarea or element whose value or text to copy, which suits secrets, because nothing is repeated in the markup and the text can be selected when the browser blocks clipboard access. data-mero-copy-message replaces the “Copied” notification. The label stays the same, so an aria-label keeps working.
2631
+
2632
+ Page assets
2633
+
2634
+ ```html
2635
+ <link rel="stylesheet" href="/mero.css">
2636
+ <script defer src="/mero.js"></script>
2637
+ ```
2638
+
2639
+ Template
2640
+
2641
+ ````html
2642
+ <div class="mero-scope" data-mero-scope>
2643
+ <div class="mero-stack">
2644
+ <div class="mero-field">
2645
+ <label class="mero-label" for="copy-demo-key">Publishable key</label>
2646
+ <div class="mero-input-group">
2647
+ <input class="mero-input" id="copy-demo-key" value="pk_live_51HcX2eDeploy" readonly>
2648
+ <button class="mero-button mero-button-ghost mero-button-sm" type="button" data-mero-copy-target="#copy-demo-key" aria-label="Copy publishable key">Copy</button>
2649
+ </div>
2650
+ </div>
2651
+ <p class="mero-row">Environment <code>env_7f3a91</code>
2652
+ <button class="mero-button mero-button-ghost mero-button-sm" type="button" data-mero-copy="env_7f3a91" aria-label="Copy environment ID">Copy</button></p>
2653
+ </div>
2654
+ </div>
2655
+ ````
2656
+
2629
2657
  ## Compact actions
2630
2658
 
2631
2659
  Page assets
@@ -2677,7 +2705,7 @@ Template
2677
2705
 
2678
2706
  # Action Button
2679
2707
 
2680
- Mero UI 0.7.0 · Buttons
2708
+ Mero UI 0.8.0 · Buttons
2681
2709
 
2682
2710
  Run a server action and report whether it succeeded, was refused or has an unknown result.
2683
2711
 
@@ -2716,9 +2744,40 @@ Template
2716
2744
  </div>
2717
2745
  ````
2718
2746
 
2747
+ ## Re-read after unknown
2748
+
2749
+ Read the current state again after an unknown outcome, without repeating the action.
2750
+
2751
+ This endpoint restarts the export and then answers 504, as a gateway timeout would. data-mero-action-reread names the region to read again: Mero GETs the current page, morphs that region and shows the unknown message again. It never re-sends the POST. A response for another page, an error or a page without the region is dropped.
2752
+
2753
+ Page assets
2754
+
2755
+ ```html
2756
+ <link rel="stylesheet" href="/mero.css">
2757
+ <script defer src="/vendor/htmx.min.js"></script>
2758
+ <script defer src="/mero.js"></script>
2759
+ <script defer src="/mero-forms.js"></script>
2760
+ ```
2761
+
2762
+ Template
2763
+
2764
+ ````html
2765
+
2766
+ <section class="mero-stack" id="export-run" aria-labelledby="export-run-title">
2767
+ <h2 class="mero-label" id="export-run-title">Nightly export</h2>
2768
+ <p class="mero-description" data-export-restarts>Not restarted yet</p>
2769
+ <span class="mero-row">
2770
+ <button class="mero-button mero-button-secondary" type="button" id="export-run-restart" hx-post="/demo/catalog/action-button?outcome=lost" hx-swap="none"
2771
+ data-mero-action data-mero-action-reread="#export-run">
2772
+ <span class="mero-button-label">Restart export</span><span class="mero-indicator mero-spinner" aria-hidden="true"></span></button>
2773
+ <span class="mero-action-status" data-mero-action-status role="status"></span>
2774
+ </span>
2775
+ </section>
2776
+ ````
2777
+
2719
2778
  # Button Group
2720
2779
 
2721
- Mero UI 0.7.0 · Buttons
2780
+ Mero UI 0.8.0 · Buttons
2722
2781
 
2723
2782
  Keep related actions together while preserving each button’s own label and focus.
2724
2783
 
@@ -2743,7 +2802,7 @@ Template
2743
2802
 
2744
2803
  # Close Button
2745
2804
 
2746
- Mero UI 0.7.0 · Buttons
2805
+ Mero UI 0.8.0 · Buttons
2747
2806
 
2748
2807
  Give a dialog an icon-only close action with an accessible name.
2749
2808
 
@@ -2775,7 +2834,7 @@ Template
2775
2834
 
2776
2835
  # Toggle Button
2777
2836
 
2778
- Mero UI 0.7.0 · Buttons
2837
+ Mero UI 0.8.0 · Buttons
2779
2838
 
2780
2839
  Represent a persistent on or off state with a pressed button.
2781
2840
 
@@ -2798,7 +2857,7 @@ Template
2798
2857
 
2799
2858
  # Toggle Button Group
2800
2859
 
2801
- Mero UI 0.7.0 · Buttons
2860
+ Mero UI 0.8.0 · Buttons
2802
2861
 
2803
2862
  Select one presentation mode from a connected set of controls.
2804
2863
 
@@ -2828,7 +2887,7 @@ Template
2828
2887
 
2829
2888
  # Checkbox
2830
2889
 
2831
- Mero UI 0.7.0 · Forms
2890
+ Mero UI 0.8.0 · Forms
2832
2891
 
2833
2892
  Include an independent binary choice in a form.
2834
2893
 
@@ -2852,7 +2911,7 @@ Template
2852
2911
 
2853
2912
  # Checkbox Group
2854
2913
 
2855
- Mero UI 0.7.0 · Forms
2914
+ Mero UI 0.8.0 · Forms
2856
2915
 
2857
2916
  Group related independent choices with a fieldset and legend.
2858
2917
 
@@ -2880,7 +2939,7 @@ Template
2880
2939
 
2881
2940
  # Description
2882
2941
 
2883
- Mero UI 0.7.0 · Forms
2942
+ Mero UI 0.8.0 · Forms
2884
2943
 
2885
2944
  Connect persistent help text to a control.
2886
2945
 
@@ -2907,7 +2966,7 @@ Template
2907
2966
 
2908
2967
  # Error Message
2909
2968
 
2910
- Mero UI 0.7.0 · Forms
2969
+ Mero UI 0.8.0 · Forms
2911
2970
 
2912
2971
  Present a form-level failure where the user can act on it.
2913
2972
 
@@ -2931,7 +2990,7 @@ Template
2931
2990
 
2932
2991
  # Field Error
2933
2992
 
2934
- Mero UI 0.7.0 · Forms
2993
+ Mero UI 0.8.0 · Forms
2935
2994
 
2936
2995
  Associate a validation error with the field that needs attention.
2937
2996
 
@@ -2960,7 +3019,7 @@ Template
2960
3019
 
2961
3020
  # Fieldset
2962
3021
 
2963
- Mero UI 0.7.0 · Forms
3022
+ Mero UI 0.8.0 · Forms
2964
3023
 
2965
3024
  Add a shared label to a related set of form controls.
2966
3025
 
@@ -2995,9 +3054,53 @@ Template
2995
3054
  </div>
2996
3055
  ````
2997
3056
 
3057
+ ## Conditional fields
3058
+
3059
+ Show fields for the chosen option and enable Apply only after a change.
3060
+
3061
+ data-mero-show-when names a field and the values that show the branch. A hidden branch is disabled, so its required fields neither block nor join the submission. Use a fieldset so its controls keep their own disabled state. data-mero-dirty keeps the submit buttons disabled until a field differs from the value the server rendered, and again after it is changed back. Render both states on the server so the form is right before scripts run.
3062
+
3063
+ Page assets
3064
+
3065
+ ```html
3066
+ <link rel="stylesheet" href="/mero.css">
3067
+ <script defer src="/vendor/htmx.min.js"></script>
3068
+ <script defer src="/mero.js"></script>
3069
+ <script defer src="/mero-forms.js"></script>
3070
+ ```
3071
+
3072
+ Template
3073
+
3074
+ ````html
3075
+ <div class="mero-scope" data-mero-scope>
3076
+ <form class="mero-stack" action="/demo/stock-summary" method="get" hx-get="/demo/stock-summary" hx-target="find output"
3077
+ data-mero-form data-mero-dirty>
3078
+ <fieldset class="mero-fieldset">
3079
+ <legend class="mero-label">Owner</legend>
3080
+ <div class="mero-radio-group">
3081
+ <label><input class="mero-radio" type="radio" name="owner" value="me" checked> Only me</label>
3082
+ <label><input class="mero-radio" type="radio" name="owner" value="team"> A team</label>
3083
+ <label><input class="mero-radio" type="radio" name="owner" value="org"> The organisation</label>
3084
+ </div>
3085
+ </fieldset>
3086
+ <fieldset class="mero-fieldset" data-mero-show-when="owner=team org" hidden disabled>
3087
+ <legend class="mero-label">Sharing</legend>
3088
+ <div class="mero-field">
3089
+ <label class="mero-label" for="branch-demo-team">Team name</label>
3090
+ <input class="mero-input" id="branch-demo-team" name="team" required>
3091
+ </div>
3092
+ </fieldset>
3093
+ <div class="mero-row">
3094
+ <button class="mero-button mero-button-primary" type="submit" disabled>Apply</button>
3095
+ <output class="mero-description mero-form-status" aria-live="polite"></output>
3096
+ </div>
3097
+ </form>
3098
+ </div>
3099
+ ````
3100
+
2998
3101
  # Form
2999
3102
 
3000
- Mero UI 0.7.0 · Forms
3103
+ Mero UI 0.8.0 · Forms
3001
3104
 
3002
3105
  Submit native fields to the server and render an HTML response in place.
3003
3106
 
@@ -3029,9 +3132,163 @@ Template
3029
3132
  </div>
3030
3133
  ````
3031
3134
 
3135
+ ## One-time credential
3136
+
3137
+ Create an API token and keep the page until the person has copied it.
3138
+
3139
+ While the request runs, and while the token is shown, Mero cancels boosted navigation and requests that would replace the token, undoes Back and asks before the page unloads. The token is cleared on I copied it, when a surrounding dialog closes and when the page is hidden. Render the secret only in this response, never in a page the server can send again.
3140
+
3141
+ Page assets
3142
+
3143
+ ```html
3144
+ <link rel="stylesheet" href="/mero.css">
3145
+ <script defer src="/vendor/htmx.min.js"></script>
3146
+ <script defer src="/mero.js"></script>
3147
+ <script defer src="/mero-forms.js"></script>
3148
+ ```
3149
+
3150
+ Template
3151
+
3152
+ ````html
3153
+ <div class="mero-scope" data-mero-scope>
3154
+ <div class="mero-stack">
3155
+ <form class="mero-stack" method="post" action="/demo/catalog/form-credential" hx-post="/demo/catalog/form-credential"
3156
+ hx-target="#api-token-secret" data-mero-form data-mero-hold="Wait for the new token. Leaving now would lose it.">
3157
+ <div class="mero-field">
3158
+ <label class="mero-label" for="api-token-name">Token name</label>
3159
+ <input class="mero-input" id="api-token-name" name="name" required maxlength="40" value="Deploy bot">
3160
+ </div>
3161
+ <p class="mero-field-error" data-mero-form-error role="alert" hidden></p>
3162
+ <div class="mero-row">
3163
+ <button class="mero-button mero-button-primary" type="submit" id="api-token-create">
3164
+ <span class="mero-button-label">Create token</span>
3165
+ <span class="mero-indicator mero-spinner" aria-hidden="true"></span>
3166
+ </button>
3167
+ </div>
3168
+ </form>
3169
+ <div class="mero-stack" id="api-token-secret" data-mero-ephemeral
3170
+ data-mero-hold="Copy the token before you leave. It is shown only once."></div>
3171
+ </div>
3172
+ </div>
3173
+ ````
3174
+
3175
+ ## Action outcome
3176
+
3177
+ Rotate a key and report whether it succeeded, was refused or has an unknown result.
3178
+
3179
+ The submit button gets data-mero-action-state. A 2xx response must contain data-mero-action-expect, otherwise the outcome is unknown and nothing is swapped. An unknown outcome reveals the data-mero-action-unknown panel and never closes the dialog or shows success, including a request aborted after it was sent. data-mero-clear-passwords empties password fields after every response. A retry resubmits the same form, so keep the idempotency key in the markup.
3180
+
3181
+ Page assets
3182
+
3183
+ ```html
3184
+ <link rel="stylesheet" href="/mero.css">
3185
+ <script defer src="/vendor/htmx.min.js"></script>
3186
+ <script defer src="/mero.js"></script>
3187
+ <script defer src="/mero-forms.js"></script>
3188
+ ```
3189
+
3190
+ Template
3191
+
3192
+ ````html
3193
+ <div class="mero-scope" data-mero-scope>
3194
+ <form class="mero-stack" method="post" action="/demo/catalog/form-outcome" hx-post="/demo/catalog/form-outcome"
3195
+ hx-target="#rotate-key-result" hx-headers='{"Idempotency-Key":"rotate-demo-7f3a"}'
3196
+ data-mero-form data-mero-clear-passwords data-mero-action-expect="[data-rotated-key]" data-mero-action-unknown="#rotate-key-unknown">
3197
+ <div class="mero-field">
3198
+ <label class="mero-label" for="rotate-key-outcome">Simulated server response</label>
3199
+ <select class="mero-select" id="rotate-key-outcome" name="outcome">
3200
+ <option value="succeeded">Key rotated</option>
3201
+ <option value="rejected">Refused: wrong password</option>
3202
+ <option value="unknown">Gateway timeout</option>
3203
+ <option value="incomplete">200 without the new key</option>
3204
+ </select>
3205
+ </div>
3206
+ <div class="mero-field">
3207
+ <label class="mero-label" for="rotate-key-password">Your password</label>
3208
+ <input class="mero-input" id="rotate-key-password" name="password" type="password" autocomplete="current-password" required>
3209
+ </div>
3210
+ <p class="mero-field-error" data-mero-form-error role="alert" hidden></p>
3211
+ <div id="rotate-key-unknown" hidden>
3212
+ <div class="mero-alert mero-alert-warning">
3213
+ <strong class="mero-alert-title">The key may have rotated</strong>
3214
+ <p>Check the key list before you try again. A retry sends the same request ID, so the server will not rotate twice.</p>
3215
+ </div>
3216
+ </div>
3217
+ <div class="mero-row">
3218
+ <button class="mero-button mero-button-primary" type="submit">
3219
+ <span class="mero-button-label">Rotate signing key</span>
3220
+ <span class="mero-indicator mero-spinner" aria-hidden="true"></span>
3221
+ </button>
3222
+ </div>
3223
+ <div class="mero-form-status" id="rotate-key-result" role="status"></div>
3224
+ </form>
3225
+ </div>
3226
+ ````
3227
+
3228
+ ## Two columns
3229
+
3230
+ Arrange a longer form in two columns that stack on small screens.
3231
+
3232
+ Put fields in a mero-form-grid. Fields fill two columns in source order, which is also the tab order, and add mero-field-wide to a field that needs the whole row, such as a text area. The grid stacks below 768 px and in containers too narrow for two fields, such as a dialog. Use a fieldset with a legend to name each group of fields.
3233
+
3234
+ Page assets
3235
+
3236
+ ```html
3237
+ <link rel="stylesheet" href="/mero.css">
3238
+ <script defer src="/vendor/htmx.min.js"></script>
3239
+ <script defer src="/mero.js"></script>
3240
+ ```
3241
+
3242
+ Template
3243
+
3244
+ ````html
3245
+ <div class="mero-scope" data-mero-scope>
3246
+ <form class="mero-form" action="/demo/catalog/form" method="get" style="inline-size:min(100%,40rem)"
3247
+ hx-get="/demo/catalog/form" hx-target="#catalog-form-grid-result" hx-swap="innerHTML">
3248
+ <fieldset class="mero-fieldset">
3249
+ <legend class="mero-label">Profile</legend>
3250
+ <div class="mero-form-grid">
3251
+ <div class="mero-field">
3252
+ <label class="mero-label" for="demo-grid-name">Name</label>
3253
+ <input class="mero-input" id="demo-grid-name" name="name" autocomplete="given-name" required maxlength="80" placeholder="Taylor">
3254
+ </div>
3255
+ <div class="mero-field">
3256
+ <label class="mero-label" for="demo-grid-email">Email</label>
3257
+ <input class="mero-input" id="demo-grid-email" name="email" type="email" autocomplete="email" aria-describedby="demo-grid-email-hint">
3258
+ <p class="mero-description" id="demo-grid-email-hint">Used for release notifications.</p>
3259
+ </div>
3260
+ <div class="mero-field">
3261
+ <label class="mero-label" for="demo-grid-team">Team</label>
3262
+ <select class="mero-select" id="demo-grid-team" name="team">
3263
+ <option>Platform</option>
3264
+ <option>Design</option>
3265
+ <option>Support</option>
3266
+ </select>
3267
+ </div>
3268
+ <div class="mero-field">
3269
+ <label class="mero-label" for="demo-grid-region">Region</label>
3270
+ <select class="mero-select" id="demo-grid-region" name="region">
3271
+ <option>Europe West</option>
3272
+ <option>US East</option>
3273
+ </select>
3274
+ </div>
3275
+ <div class="mero-field mero-field-wide">
3276
+ <label class="mero-label" for="demo-grid-notes">Notes</label>
3277
+ <textarea class="mero-textarea" id="demo-grid-notes" name="notes" rows="3"></textarea>
3278
+ </div>
3279
+ </div>
3280
+ </fieldset>
3281
+ <div class="mero-row">
3282
+ <button class="mero-button mero-button-primary" type="submit">Save profile</button>
3283
+ </div>
3284
+ <div class="mero-form-status" id="catalog-form-grid-result" role="status"></div>
3285
+ </form>
3286
+ </div>
3287
+ ````
3288
+
3032
3289
  # Input
3033
3290
 
3034
- Mero UI 0.7.0 · Forms
3291
+ Mero UI 0.8.0 · Forms
3035
3292
 
3036
3293
  A styled native input with browser validation and autocomplete.
3037
3294
 
@@ -3058,7 +3315,7 @@ Template
3058
3315
 
3059
3316
  # Input Group
3060
3317
 
3061
- Mero UI 0.7.0 · Forms
3318
+ Mero UI 0.8.0 · Forms
3062
3319
 
3063
3320
  Combine a control and contextual prefix with a single outline.
3064
3321
 
@@ -3087,7 +3344,7 @@ Template
3087
3344
 
3088
3345
  # Input OTP
3089
3346
 
3090
- Mero UI 0.7.0 · Forms
3347
+ Mero UI 0.8.0 · Forms
3091
3348
 
3092
3349
  Collect a six-digit code in one input with mobile autofill.
3093
3350
 
@@ -3116,7 +3373,7 @@ Template
3116
3373
 
3117
3374
  # Label
3118
3375
 
3119
- Mero UI 0.7.0 · Forms
3376
+ Mero UI 0.8.0 · Forms
3120
3377
 
3121
3378
  Name an input and expand its activation area.
3122
3379
 
@@ -3143,7 +3400,7 @@ Template
3143
3400
 
3144
3401
  # Number Field
3145
3402
 
3146
- Mero UI 0.7.0 · Forms
3403
+ Mero UI 0.8.0 · Forms
3147
3404
 
3148
3405
  Set numeric bounds and increments for a native field.
3149
3406
 
@@ -3170,7 +3427,7 @@ Template
3170
3427
 
3171
3428
  # Radio Group
3172
3429
 
3173
- Mero UI 0.7.0 · Forms
3430
+ Mero UI 0.8.0 · Forms
3174
3431
 
3175
3432
  Choose exactly one option from a labeled set.
3176
3433
 
@@ -3198,7 +3455,7 @@ Template
3198
3455
 
3199
3456
  # Search Field
3200
3457
 
3201
- Mero UI 0.7.0 · Forms
3458
+ Mero UI 0.8.0 · Forms
3202
3459
 
3203
3460
  Use a native search field with the platform’s clear affordance.
3204
3461
 
@@ -3223,9 +3480,51 @@ Template
3223
3480
  </div>
3224
3481
  ````
3225
3482
 
3483
+ ## Filtered list
3484
+
3485
+ Filter a list as you type without losing it when the server fails.
3486
+
3487
+ Choose Archived to see a failed read: the list keeps its previous results, the error explains why and the status select returns to the filter the list shows. Mero also skips a 2xx response without the hx-select region, and loads a redirected response without it as a full page, such as a login page after the session expired.
3488
+
3489
+ Page assets
3490
+
3491
+ ```html
3492
+ <link rel="stylesheet" href="/mero.css">
3493
+ <script defer src="/vendor/htmx.min.js"></script>
3494
+ <script defer src="/mero.js"></script>
3495
+ <script defer src="/mero-forms.js"></script>
3496
+ ```
3497
+
3498
+ Template
3499
+
3500
+ ````html
3501
+ <div class="mero-scope" data-mero-scope>
3502
+ <form class="mero-stack" role="search" action="/demo/catalog/search-results" method="get" data-mero-search
3503
+ hx-get="/demo/catalog/search-results" hx-trigger="input delay:250ms, submit" hx-sync="this:replace"
3504
+ hx-target="#search-demo-results" hx-select="#search-demo-results" hx-swap="outerHTML">
3505
+ <div class="mero-field">
3506
+ <label class="mero-label" for="search-demo-q">Search projects</label>
3507
+ <input class="mero-input" id="search-demo-q" type="search" name="q" autocomplete="off">
3508
+
3509
+ </div>
3510
+ <div class="mero-field">
3511
+ <label class="mero-label" for="search-demo-status">Status</label>
3512
+ <select class="mero-select" id="search-demo-status" name="status">
3513
+ <option value="" selected>Any status</option>
3514
+ <option value="active">Active</option>
3515
+ <option value="paused">Paused</option>
3516
+ <option value="archived">Archived (simulated server error)</option>
3517
+ </select>
3518
+ </div>
3519
+ <p class="mero-field-error" data-mero-search-error role="alert" hidden></p>
3520
+ </form>
3521
+ <ul class="mero-stack" id="search-demo-results" aria-label="Projects"><li>Atlas <span class="mero-badge">active</span></li><li>Beacon <span class="mero-badge">paused</span></li><li>Cobalt <span class="mero-badge">active</span></li><li>Delta <span class="mero-badge">archived</span></li><li>Ember <span class="mero-badge">active</span></li></ul>
3522
+ </div>
3523
+ ````
3524
+
3226
3525
  # Text Area
3227
3526
 
3228
- Mero UI 0.7.0 · Forms
3527
+ Mero UI 0.8.0 · Forms
3229
3528
 
3230
3529
  Let users edit multiple lines of text with an optional autosizing surface.
3231
3530
 
@@ -3251,7 +3550,7 @@ Template
3251
3550
 
3252
3551
  # Text Field
3253
3552
 
3254
- Mero UI 0.7.0 · Forms
3553
+ Mero UI 0.8.0 · Forms
3255
3554
 
3256
3555
  Compose a label, input, and hint into a reusable form field.
3257
3556
 
@@ -3278,7 +3577,7 @@ Template
3278
3577
 
3279
3578
  # Calendar
3280
3579
 
3281
- Mero UI 0.7.0 · Date and time
3580
+ Mero UI 0.8.0 · Date and time
3282
3581
 
3283
3582
  Navigate months and choose a day on an inline calendar rendered by the server.
3284
3583
 
@@ -3382,7 +3681,7 @@ Template
3382
3681
 
3383
3682
  # Date Field
3384
3683
 
3385
- Mero UI 0.7.0 · Date and time
3684
+ Mero UI 0.8.0 · Date and time
3386
3685
 
3387
3686
  Enter a calendar date in the system’s preferred format.
3388
3687
 
@@ -3409,7 +3708,7 @@ Template
3409
3708
 
3410
3709
  # Date Picker
3411
3710
 
3412
- Mero UI 0.7.0 · Date and time
3711
+ Mero UI 0.8.0 · Date and time
3413
3712
 
3414
3713
  Choose a date with the browser’s calendar picker and native constraints.
3415
3714
 
@@ -3438,7 +3737,7 @@ Template
3438
3737
 
3439
3738
  # Date Range Picker
3440
3739
 
3441
- Mero UI 0.7.0 · Date and time
3740
+ Mero UI 0.8.0 · Date and time
3442
3741
 
3443
3742
  Collect the start and end dates of a range.
3444
3743
 
@@ -3477,7 +3776,7 @@ Template
3477
3776
 
3478
3777
  # Range Calendar
3479
3778
 
3480
- Mero UI 0.7.0 · Date and time
3779
+ Mero UI 0.8.0 · Date and time
3481
3780
 
3482
3781
  Build a range with two native calendar controls.
3483
3782
 
@@ -3516,7 +3815,7 @@ Template
3516
3815
 
3517
3816
  # Time Field
3518
3817
 
3519
- Mero UI 0.7.0 · Date and time
3818
+ Mero UI 0.8.0 · Date and time
3520
3819
 
3521
3820
  Choose a wall-clock time without a timezone conversion.
3522
3821
 
@@ -3545,7 +3844,7 @@ Template
3545
3844
 
3546
3845
  # Accordion
3547
3846
 
3548
- Mero UI 0.7.0 · Navigation
3847
+ Mero UI 0.8.0 · Navigation
3549
3848
 
3550
3849
  Disclose one section at a time using grouped native details.
3551
3850
 
@@ -3575,7 +3874,7 @@ Template
3575
3874
 
3576
3875
  # Breadcrumbs
3577
3876
 
3578
- Mero UI 0.7.0 · Navigation
3877
+ Mero UI 0.8.0 · Navigation
3579
3878
 
3580
3879
  Show the user’s current location and its parent pages.
3581
3880
 
@@ -3602,7 +3901,7 @@ Template
3602
3901
 
3603
3902
  # Disclosure
3604
3903
 
3605
- Mero UI 0.7.0 · Navigation
3904
+ Mero UI 0.8.0 · Navigation
3606
3905
 
3607
3906
  Reveal a single block of supplementary information.
3608
3907
 
@@ -3626,7 +3925,7 @@ Template
3626
3925
 
3627
3926
  # Disclosure Group
3628
3927
 
3629
- Mero UI 0.7.0 · Navigation
3928
+ Mero UI 0.8.0 · Navigation
3630
3929
 
3631
3930
  Present a collection of independently expandable sections.
3632
3931
 
@@ -3656,7 +3955,7 @@ Template
3656
3955
 
3657
3956
  # Link
3658
3957
 
3659
- Mero UI 0.7.0 · Navigation
3958
+ Mero UI 0.8.0 · Navigation
3660
3959
 
3661
3960
  Navigate to a real URL with native link semantics.
3662
3961
 
@@ -3677,7 +3976,7 @@ Template
3677
3976
 
3678
3977
  # Pagination
3679
3978
 
3680
- Mero UI 0.7.0 · Navigation
3979
+ Mero UI 0.8.0 · Navigation
3681
3980
 
3682
3981
  Navigate between result pages with server-rendered fragments.
3683
3982
 
@@ -3716,7 +4015,7 @@ Template
3716
4015
 
3717
4016
  # Tabs
3718
4017
 
3719
- Mero UI 0.7.0 · Navigation
4018
+ Mero UI 0.8.0 · Navigation
3720
4019
 
3721
4020
  Switch between labeled panels with mouse or arrow keys.
3722
4021
 
@@ -3778,9 +4077,32 @@ Template
3778
4077
  </div>
3779
4078
  ````
3780
4079
 
4080
+ ## Link tabs
4081
+
4082
+ Switch between views of one page that the URL keeps.
4083
+
4084
+ Use links in a nav when each tab is its own URL, such as a filtered view of a list. The server puts aria-current=page on the current link. Tab and Enter work as on any link, so there is no tablist role, no arrow-key handling and no script. Add a mero-tab-count after the label for an optional count; it is read with the label. The tabs wrap on narrow screens.
4085
+
4086
+ Page assets
4087
+
4088
+ ```html
4089
+ <link rel="stylesheet" href="/mero.css">
4090
+ <script defer src="/mero.js"></script>
4091
+ ```
4092
+
4093
+ Template
4094
+
4095
+ ````html
4096
+ <nav class="mero-tabs-list" aria-label="Operation views">
4097
+ <a class="mero-tab" href="?view=attention" aria-current="page">Needs attention <span class="mero-tab-count">3</span></a>
4098
+ <a class="mero-tab" href="?view=active">In progress <span class="mero-tab-count">12</span></a>
4099
+ <a class="mero-tab" href="?view=closed">Completed</a>
4100
+ </nav>
4101
+ ````
4102
+
3781
4103
  # Alert Dialog
3782
4104
 
3783
- Mero UI 0.7.0 · Overlays
4105
+ Mero UI 0.8.0 · Overlays
3784
4106
 
3785
4107
  Ask for confirmation on a decision that calls for attention.
3786
4108
 
@@ -3815,7 +4137,7 @@ Template
3815
4137
 
3816
4138
  # Typed Confirmation
3817
4139
 
3818
- Mero UI 0.7.0 · Overlays
4140
+ Mero UI 0.8.0 · Overlays
3819
4141
 
3820
4142
  Require an exact phrase before submitting a destructive action.
3821
4143
 
@@ -3974,12 +4296,14 @@ Template
3974
4296
 
3975
4297
  # Drawer
3976
4298
 
3977
- Mero UI 0.7.0 · Overlays
4299
+ Mero UI 0.8.0 · Overlays
3978
4300
 
3979
4301
  Open a full-height edge panel for work that benefits from more room.
3980
4302
 
3981
4303
  ## Default
3982
4304
 
4305
+ The drawer opens from the inline end. Add mero-drawer-start to open it from the start edge.
4306
+
3983
4307
  Page assets
3984
4308
 
3985
4309
  ```html
@@ -4005,9 +4329,89 @@ Template
4005
4329
  </div>
4006
4330
  ````
4007
4331
 
4332
+ ## Start edge
4333
+
4334
+ Open app navigation from the start edge on small screens.
4335
+
4336
+ Add mero-drawer-start to a mero-drawer. It slides in from the left, or from the right in RTL, and rounds its inline-end corners. Give it a visible close button so touch users don't have to find the backdrop; Escape and the backdrop also close it, and focus returns to the opener.
4337
+
4338
+ Page assets
4339
+
4340
+ ```html
4341
+ <link rel="stylesheet" href="/mero.css">
4342
+ <script defer src="/mero.js"></script>
4343
+ ```
4344
+
4345
+ Template
4346
+
4347
+ ````html
4348
+ <div class="mero-scope" data-mero-scope>
4349
+ <button class="mero-button mero-button-outline" type="button" data-mero-open="demo-nav-drawer">Menu</button>
4350
+ <dialog class="mero-dialog mero-drawer mero-drawer-start" id="demo-nav-drawer" aria-labelledby="demo-nav-drawer-title">
4351
+ <div class="mero-dialog-body">
4352
+ <div class="mero-dialog-header">
4353
+ <h2 class="mero-dialog-title" id="demo-nav-drawer-title">Navigation</h2>
4354
+ <button class="mero-button mero-close-button" type="button" aria-label="Close navigation" data-mero-close><span class="mero-dismiss-mark" aria-hidden="true"></span></button>
4355
+ </div>
4356
+ <nav aria-label="Main">
4357
+ <ul class="mero-stack">
4358
+ <li><a class="mero-link" href="/components" aria-current="page">Components</a></li>
4359
+ <li><a class="mero-link" href="/layouts">Layouts</a></li>
4360
+ <li><a class="mero-link" href="/start">Quick start</a></li>
4361
+ </ul>
4362
+ </nav>
4363
+ </div>
4364
+ </dialog>
4365
+ </div>
4366
+ ````
4367
+
4368
+ ## Boosted navigation
4369
+
4370
+ Navigate from a drawer with boosted links that swap only the page region.
4371
+
4372
+ data-mero-boost names the region every boosted page must contain. The newest boosted GET wins and older ones are aborted, never a boosted form that changes data. A response without the region, such as a login page, or a failed GET becomes a full page load. Open dialogs close, and focus moves to the new region unless the person moved it during the load. This demo keeps the URL; in your app, let boosted links push it.
4373
+
4374
+ Page assets
4375
+
4376
+ ```html
4377
+ <link rel="stylesheet" href="/mero.css">
4378
+ <script defer src="/vendor/htmx.min.js"></script>
4379
+ <script defer src="/mero.js"></script>
4380
+ ```
4381
+
4382
+ Template
4383
+
4384
+ ````html
4385
+ <div class="mero-scope" data-mero-scope>
4386
+ <div class="mero-stack" hx-boost:inherited="true" hx-select:inherited="#boost-demo-main" hx-target:inherited="#boost-demo-main"
4387
+ hx-swap:inherited="outerHTML" hx-push-url:inherited="false" data-mero-boost="#boost-demo-main">
4388
+ <button class="mero-button mero-button-outline" type="button" data-mero-open="boost-demo-drawer">Open navigation</button>
4389
+ <dialog class="mero-dialog mero-drawer" id="boost-demo-drawer" aria-labelledby="boost-demo-drawer-title">
4390
+ <div class="mero-dialog-body">
4391
+ <div class="mero-dialog-header">
4392
+ <h2 class="mero-dialog-title" id="boost-demo-drawer-title">Navigation</h2>
4393
+ <button class="mero-button mero-close-button" type="button" aria-label="Close navigation" data-mero-close><span class="mero-dismiss-mark" aria-hidden="true"></span></button>
4394
+ </div>
4395
+ <nav aria-label="Sections">
4396
+ <ul class="mero-stack">
4397
+ <li><a class="mero-link" href="/demo/catalog/boost-page?page=overview">Overview</a></li>
4398
+ <li><a class="mero-link" href="/demo/catalog/boost-page?page=reports">Reports</a></li>
4399
+ <li><a class="mero-link" href="/demo/catalog/boost-page?page=settings">Settings</a></li>
4400
+ </ul>
4401
+ </nav>
4402
+ </div>
4403
+ </dialog>
4404
+ <section class="mero-card" id="boost-demo-main" aria-labelledby="boost-demo-title">
4405
+ <h2 class="mero-card-title" id="boost-demo-title">Overview</h2>
4406
+ <p class="mero-description">Three deployments ran today. All of them succeeded.</p>
4407
+ </section>
4408
+ </div>
4409
+ </div>
4410
+ ````
4411
+
4008
4412
  # Modal
4009
4413
 
4010
- Mero UI 0.7.0 · Overlays
4414
+ Mero UI 0.8.0 · Overlays
4011
4415
 
4012
4416
  Open a centered, named dialog with native focus containment.
4013
4417
 
@@ -4040,7 +4444,7 @@ Template
4040
4444
 
4041
4445
  # Command Menu
4042
4446
 
4043
- Mero UI 0.7.0 · Overlays
4447
+ Mero UI 0.8.0 · Overlays
4044
4448
 
4045
4449
  Press Cmd or Ctrl K to search pages and actions returned by your server.
4046
4450
 
@@ -4085,7 +4489,7 @@ Template
4085
4489
 
4086
4490
  # Popover
4087
4491
 
4088
- Mero UI 0.7.0 · Overlays
4492
+ Mero UI 0.8.0 · Overlays
4089
4493
 
4090
4494
  Display contextual information using the browser’s top layer.
4091
4495
 
@@ -4114,7 +4518,7 @@ Template
4114
4518
 
4115
4519
  # Sheet
4116
4520
 
4117
- Mero UI 0.7.0 · Overlays
4521
+ Mero UI 0.8.0 · Overlays
4118
4522
 
4119
4523
  Present concise secondary content from the bottom edge.
4120
4524
 
@@ -4147,7 +4551,7 @@ Template
4147
4551
 
4148
4552
  # Toast
4149
4553
 
4150
- Mero UI 0.7.0 · Overlays
4554
+ Mero UI 0.8.0 · Overlays
4151
4555
 
4152
4556
  Announce a completed action without interrupting the current task.
4153
4557
 
@@ -4168,7 +4572,7 @@ Template
4168
4572
 
4169
4573
  # Tooltip
4170
4574
 
4171
- Mero UI 0.7.0 · Overlays
4575
+ Mero UI 0.8.0 · Overlays
4172
4576
 
4173
4577
  Show a brief hint on pointer hover or keyboard focus.
4174
4578
 
@@ -4194,7 +4598,7 @@ Template
4194
4598
 
4195
4599
  # Dropdown
4196
4600
 
4197
- Mero UI 0.7.0 · Collections
4601
+ Mero UI 0.8.0 · Collections
4198
4602
 
4199
4603
  Open a compact list of actions or destinations.
4200
4604
 
@@ -4224,7 +4628,7 @@ Template
4224
4628
 
4225
4629
  # Menu Button
4226
4630
 
4227
- Mero UI 0.7.0 · Collections
4631
+ Mero UI 0.8.0 · Collections
4228
4632
 
4229
4633
  Open row actions and move through them with the arrow keys.
4230
4634
 
@@ -4299,9 +4703,43 @@ Template
4299
4703
  </div>
4300
4704
  ````
4301
4705
 
4706
+ ## Groups and danger
4707
+
4708
+ Label groups of actions with a visible heading and set a destructive action apart.
4709
+
4710
+ Give each group role=group and aria-labelledby its mero-menu-heading. The heading is aria-hidden, so screen readers announce it once as the group name, and arrow keys and typeahead skip it. Use mero-menu-item-danger for an action that destroys data, after a separator, and name the action in its text because forced-colors mode drops the colour. Let it open a confirmation instead of acting immediately.
4711
+
4712
+ Page assets
4713
+
4714
+ ```html
4715
+ <link rel="stylesheet" href="/mero.css">
4716
+ <script defer src="/mero.js"></script>
4717
+ ```
4718
+
4719
+ Template
4720
+
4721
+ ````html
4722
+ <div class="mero-scope" data-mero-scope>
4723
+ <button class="mero-button mero-button-outline mero-button-sm" type="button" popovertarget="environment-menu" aria-haspopup="menu" aria-controls="environment-menu" aria-expanded="false">Environment actions</button>
4724
+ <div class="mero-popover mero-menu" id="environment-menu" popover role="menu" aria-label="acme-production actions">
4725
+ <div role="group" aria-labelledby="environment-menu-lifecycle">
4726
+ <div class="mero-menu-heading" id="environment-menu-lifecycle" aria-hidden="true">Lifecycle</div>
4727
+ <button class="mero-menu-item" role="menuitem" type="button" data-mero-toast="Deploy started">Deploy release</button>
4728
+ <button class="mero-menu-item" role="menuitem" type="button" data-mero-toast="Suspend requested">Suspend</button>
4729
+ </div>
4730
+ <div role="group" aria-labelledby="environment-menu-access">
4731
+ <div class="mero-menu-heading" id="environment-menu-access" aria-hidden="true">Access</div>
4732
+ <a class="mero-menu-item" role="menuitem" href="/components/typed-confirmation">Grant support access</a>
4733
+ </div>
4734
+ <hr class="mero-separator">
4735
+ <a class="mero-menu-item mero-menu-item-danger" role="menuitem" href="/components/typed-confirmation">Delete environment…</a>
4736
+ </div>
4737
+ </div>
4738
+ ````
4739
+
4302
4740
  # List Box
4303
4741
 
4304
- Mero UI 0.7.0 · Collections
4742
+ Mero UI 0.8.0 · Collections
4305
4743
 
4306
4744
  Present a selectable collection with arrow-key navigation.
4307
4745
 
@@ -4330,7 +4768,7 @@ Template
4330
4768
 
4331
4769
  # Tag Group
4332
4770
 
4333
- Mero UI 0.7.0 · Collections
4771
+ Mero UI 0.8.0 · Collections
4334
4772
 
4335
4773
  Display a small, labeled collection of metadata tags.
4336
4774
 
@@ -4355,7 +4793,7 @@ Template
4355
4793
 
4356
4794
  # Slider
4357
4795
 
4358
- Mero UI 0.7.0 · Controls
4796
+ Mero UI 0.8.0 · Controls
4359
4797
 
4360
4798
  Choose a value from a bounded range.
4361
4799
 
@@ -4381,7 +4819,7 @@ Template
4381
4819
 
4382
4820
  # Switch
4383
4821
 
4384
- Mero UI 0.7.0 · Controls
4822
+ Mero UI 0.8.0 · Controls
4385
4823
 
4386
4824
  Toggle one setting with a checkbox-backed switch.
4387
4825
 
@@ -4455,7 +4893,7 @@ Template
4455
4893
 
4456
4894
  # Alert
4457
4895
 
4458
- Mero UI 0.7.0 · Feedback
4896
+ Mero UI 0.8.0 · Feedback
4459
4897
 
4460
4898
  Place status or guidance alongside the content it describes.
4461
4899
 
@@ -4477,9 +4915,64 @@ Template
4477
4915
  </div>
4478
4916
  ````
4479
4917
 
4918
+ # Empty State
4919
+
4920
+ Mero UI 0.8.0 · Feedback
4921
+
4922
+ Explain an empty result and give the user a relevant next action.
4923
+
4924
+ ## Default
4925
+
4926
+ Use a heading at the level the page needs, so the empty result appears in the heading outline. Inside a table cell or a list, where a heading would break the outline, use strong instead. Put one action after the description, or several in a mero-row. The glyph is decorative and hidden from screen readers.
4927
+
4928
+ Page assets
4929
+
4930
+ ```html
4931
+ <link rel="stylesheet" href="/mero.css">
4932
+ <script defer src="/mero.js"></script>
4933
+ ```
4934
+
4935
+ Template
4936
+
4937
+ ````html
4938
+ <div class="mero-scope" data-mero-scope>
4939
+ <section class="mero-empty-state" aria-labelledby="empty-environments-title">
4940
+ <span class="mero-empty-glyph" aria-hidden="true"></span>
4941
+ <h2 id="empty-environments-title">No environments yet</h2>
4942
+ <p>Create the first environment to deploy a release to it.</p>
4943
+ <a class="mero-button mero-button-primary mero-button-sm" href="/components/form">New environment</a>
4944
+ </section>
4945
+ </div>
4946
+ ````
4947
+
4948
+ ## No matches
4949
+
4950
+ Explain why a filtered list is empty and how to widen it.
4951
+
4952
+ Use a heading at the level the page needs, so the empty result appears in the heading outline. Inside a table cell or a list, where a heading would break the outline, use strong instead. Put one action after the description, or several in a mero-row. The glyph is decorative and hidden from screen readers.
4953
+
4954
+ Page assets
4955
+
4956
+ ```html
4957
+ <link rel="stylesheet" href="/mero.css">
4958
+ <script defer src="/mero.js"></script>
4959
+ ```
4960
+
4961
+ Template
4962
+
4963
+ ````html
4964
+ <div class="mero-empty-state">
4965
+ <strong>No operations match these filters</strong>
4966
+ <p>Remove a filter or search for another environment.</p>
4967
+ <div class="mero-row">
4968
+ <a class="mero-button mero-button-outline mero-button-sm" href="/components/filter-chips">Clear filters</a>
4969
+ </div>
4970
+ </div>
4971
+ ````
4972
+
4480
4973
  # Meter
4481
4974
 
4482
- Mero UI 0.7.0 · Feedback
4975
+ Mero UI 0.8.0 · Feedback
4483
4976
 
4484
4977
  Show a measurement between known bounds.
4485
4978
 
@@ -4506,7 +4999,7 @@ Template
4506
4999
 
4507
5000
  # Live Progress
4508
5001
 
4509
- Mero UI 0.7.0 · Feedback
5002
+ Mero UI 0.8.0 · Feedback
4510
5003
 
4511
5004
  Follow a deployment through to its final status.
4512
5005
 
@@ -4541,9 +5034,42 @@ Template
4541
5034
  </div>
4542
5035
  ````
4543
5036
 
5037
+ ## Stale status
5038
+
5039
+ Keep showing the last confirmed status, with its time, while reads fail.
5040
+
5041
+ This demo endpoint fails every read after the first. data-mero-live-error fills {time} with the time of the last good read, in the browser's locale. data-mero-live-follow hands an error response with HX-Redirect, HX-Location or HX-Refresh to htmx and stops polling, so an expired session answered with 401 and HX-Redirect: /login goes to the login page instead of retrying forever.
5042
+
5043
+ Page assets
5044
+
5045
+ ```html
5046
+ <link rel="stylesheet" href="/mero.css">
5047
+ <script defer src="/vendor/htmx.min.js"></script>
5048
+ <script defer src="/mero.js"></script>
5049
+ <script defer src="/mero-live.js"></script>
5050
+ ```
5051
+
5052
+ Template
5053
+
5054
+ ````html
5055
+ <div class="mero-scope" data-mero-scope>
5056
+ <section class="mero-card mero-live" aria-labelledby="stale-deployment-title" tabindex="-1" data-mero-live="3000" data-mero-live-follow
5057
+ hx-get="/demo/catalog/live-progress?outage=1" hx-trigger="mero:refresh"
5058
+ hx-target="find [data-mero-live-status]" hx-swap="innerHTML" hx-include="find input">
5059
+ <h2 class="mero-card-title" id="stale-deployment-title">Production deployment</h2>
5060
+ <div class="mero-live-status" data-mero-live-status role="status" aria-atomic="true">
5061
+ <span class="mero-badge mero-badge-dot">Queued</span>
5062
+ <input type="hidden" name="started" value="">
5063
+ </div>
5064
+ <p class="mero-form-status" role="status" data-mero-live-error="Couldn't refresh. This is the status from {time}. Retrying…"></p>
5065
+ <button type="button" class="mero-button mero-button-secondary" data-mero-live-retry hidden>Retry now</button>
5066
+ </section>
5067
+ </div>
5068
+ ````
5069
+
4544
5070
  # Progress Bar
4545
5071
 
4546
- Mero UI 0.7.0 · Feedback
5072
+ Mero UI 0.8.0 · Feedback
4547
5073
 
4548
5074
  Report measurable progress toward completion.
4549
5075
 
@@ -4569,7 +5095,7 @@ Template
4569
5095
 
4570
5096
  # Progress Circle
4571
5097
 
4572
- Mero UI 0.7.0 · Feedback
5098
+ Mero UI 0.8.0 · Feedback
4573
5099
 
4574
5100
  Show a completion value in a compact circular display.
4575
5101
 
@@ -4591,7 +5117,7 @@ Template
4591
5117
 
4592
5118
  # Skeleton
4593
5119
 
4594
- Mero UI 0.7.0 · Feedback
5120
+ Mero UI 0.8.0 · Feedback
4595
5121
 
4596
5122
  Reserve space for content while its HTML is loading.
4597
5123
 
@@ -4616,7 +5142,7 @@ Template
4616
5142
 
4617
5143
  # Spinner
4618
5144
 
4619
- Mero UI 0.7.0 · Feedback
5145
+ Mero UI 0.8.0 · Feedback
4620
5146
 
4621
5147
  Indicate that work is underway when the completion time is unknown.
4622
5148
 
@@ -4640,12 +5166,14 @@ Template
4640
5166
 
4641
5167
  # Card
4642
5168
 
4643
- Mero UI 0.7.0 · Layout
5169
+ Mero UI 0.8.0 · Layout
4644
5170
 
4645
5171
  Group related content and an action into one compact surface.
4646
5172
 
4647
5173
  ## Default
4648
5174
 
5175
+ Put a title and optional description in mero-card-header. Use a section with aria-labelledby on the title when the card is a page region.
5176
+
4649
5177
  Page assets
4650
5178
 
4651
5179
  ```html
@@ -4663,9 +5191,130 @@ Template
4663
5191
  </article>
4664
5192
  ````
4665
5193
 
5194
+ ## Header actions and table
5195
+
5196
+ Give a card actions at the end of its header and let a table reach its edges.
5197
+
5198
+ Put actions in mero-card-actions as the header's last child; they stay at the inline end and wrap under the title on narrow cards. Wrap a table in mero-card-flush so its rows and borders run to the card's edges while the first and last cells keep the card's padding. Below 768 px, a mero-table-cards table inside the flush body returns to the card padding and shows labelled cards. If you change the card padding, set --mero-panel-padding instead so the flush body follows.
5199
+
5200
+ Page assets
5201
+
5202
+ ```html
5203
+ <link rel="stylesheet" href="/mero.css">
5204
+ <script defer src="/mero.js"></script>
5205
+ ```
5206
+
5207
+ Template
5208
+
5209
+ ````html
5210
+ <div class="mero-scope" data-mero-scope>
5211
+ <section class="mero-card" aria-labelledby="card-releases-title">
5212
+ <header class="mero-card-header">
5213
+ <h2 class="mero-card-title" id="card-releases-title">Recent releases</h2>
5214
+ <div class="mero-card-actions">
5215
+ <a class="mero-button mero-button-ghost mero-button-sm" href="/components/sortable-table">View all</a>
5216
+ <button class="mero-button mero-button-outline mero-button-sm" type="button" data-mero-toast="Release draft created">New release</button>
5217
+ </div>
5218
+ </header>
5219
+ <div class="mero-card-flush">
5220
+ <div class="mero-table-wrap mero-table-cards">
5221
+ <table class="mero-table" role="table" aria-labelledby="card-releases-title">
5222
+ <thead role="rowgroup"><tr role="row"><th role="columnheader" scope="col">Version</th><th role="columnheader" scope="col">Environment</th><th role="columnheader" scope="col">Status</th></tr></thead>
5223
+ <tbody role="rowgroup">
5224
+ <tr role="row">
5225
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Version</span><a class="mero-link" href="/components/sortable-table">v1.4.0</a></th>
5226
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Environment</span>Staging</td>
5227
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-warning">Review</span></td>
5228
+ </tr>
5229
+ <tr role="row">
5230
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Version</span><a class="mero-link" href="/components/sortable-table">v1.3.0</a></th>
5231
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Environment</span>Production</td>
5232
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Live</span></td>
5233
+ </tr>
5234
+ <tr role="row">
5235
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Version</span><a class="mero-link" href="/components/sortable-table">v1.2.2</a></th>
5236
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Environment</span>Production</td>
5237
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge">Retired</span></td>
5238
+ </tr>
5239
+ </tbody>
5240
+ </table>
5241
+ </div>
5242
+ </div>
5243
+ </section>
5244
+ </div>
5245
+ ````
5246
+
5247
+ # Page Header
5248
+
5249
+ Mero UI 0.8.0 · Layout
5250
+
5251
+ Open a page with its title, a short description and the page’s main actions.
5252
+
5253
+ ## Default
5254
+
5255
+ Use one per page, with the page’s h1. The description is a p inside the heading block. Actions sit at the end of the first row and wrap under the heading below 768 px. The layouts module uses the same class for its app pages.
5256
+
5257
+ Page assets
5258
+
5259
+ ```html
5260
+ <link rel="stylesheet" href="/mero.css">
5261
+ <script defer src="/mero.js"></script>
5262
+ ```
5263
+
5264
+ Template
5265
+
5266
+ ````html
5267
+ <header class="mero-page-head">
5268
+ <div>
5269
+ <h1>Environments</h1>
5270
+ <p>Every customer environment and the release it runs.</p>
5271
+ </div>
5272
+ <div class="mero-page-head-actions">
5273
+ <a class="mero-button mero-button-primary" href="/components/form">New environment</a>
5274
+ </div>
5275
+ </header>
5276
+ ````
5277
+
5278
+ ## Record
5279
+
5280
+ Show where a record sits, its current status and what you can do with it.
5281
+
5282
+ Put Breadcrumbs first; they take the whole first row. Wrap the h1 and its status badge in mero-page-head-title so the badge follows the title and wraps with it. Keep the badge outside the h1 so the heading’s name stays the record’s name. The meta line is the p after the title row.
5283
+
5284
+ Page assets
5285
+
5286
+ ```html
5287
+ <link rel="stylesheet" href="/mero.css">
5288
+ <script defer src="/mero.js"></script>
5289
+ ```
5290
+
5291
+ Template
5292
+
5293
+ ````html
5294
+ <header class="mero-page-head">
5295
+ <nav class="mero-breadcrumbs" aria-label="Breadcrumb">
5296
+ <ol>
5297
+ <li><a href="/components">Environments</a></li>
5298
+ <li aria-current="page">acme-production</li>
5299
+ </ol>
5300
+ </nav>
5301
+ <div>
5302
+ <div class="mero-page-head-title">
5303
+ <h1>acme-production</h1>
5304
+ <span class="mero-badge mero-badge-success">Live</span>
5305
+ </div>
5306
+ <p>Acme Corporation · Europe West · Updated 4 minutes ago</p>
5307
+ </div>
5308
+ <div class="mero-page-head-actions">
5309
+ <button class="mero-button mero-button-outline" type="button" data-mero-toast="Suspend requested">Suspend</button>
5310
+ <a class="mero-button mero-button-primary" href="/components/typed-confirmation">Deploy release</a>
5311
+ </div>
5312
+ </header>
5313
+ ````
5314
+
4666
5315
  # Separator
4667
5316
 
4668
- Mero UI 0.7.0 · Layout
5317
+ Mero UI 0.8.0 · Layout
4669
5318
 
4670
5319
  Separate related content sections using a semantic rule.
4671
5320
 
@@ -4690,7 +5339,7 @@ Template
4690
5339
 
4691
5340
  # Surface
4692
5341
 
4693
- Mero UI 0.7.0 · Layout
5342
+ Mero UI 0.8.0 · Layout
4694
5343
 
4695
5344
  Give related content a tonal background with shared theme tokens.
4696
5345
 
@@ -4714,7 +5363,7 @@ Template
4714
5363
 
4715
5364
  # Toolbar
4716
5365
 
4717
- Mero UI 0.7.0 · Layout
5366
+ Mero UI 0.8.0 · Layout
4718
5367
 
4719
5368
  Keep nearby actions aligned and grouped by purpose.
4720
5369
 
@@ -4741,7 +5390,7 @@ Template
4741
5390
 
4742
5391
  # Avatar
4743
5392
 
4744
- Mero UI 0.7.0 · Media
5393
+ Mero UI 0.8.0 · Media
4745
5394
 
4746
5395
  Represent a person with initials and an accessible name.
4747
5396
 
@@ -4765,7 +5414,7 @@ Template
4765
5414
 
4766
5415
  # Avatar Group
4767
5416
 
4768
- Mero UI 0.7.0 · Media
5417
+ Mero UI 0.8.0 · Media
4769
5418
 
4770
5419
  Show a compact cluster of people associated with a workspace.
4771
5420
 
@@ -4790,7 +5439,7 @@ Template
4790
5439
 
4791
5440
  # Autocomplete
4792
5441
 
4793
- Mero UI 0.7.0 · Pickers
5442
+ Mero UI 0.8.0 · Pickers
4794
5443
 
4795
5444
  Request matching options from the server as a user types.
4796
5445
 
@@ -4870,7 +5519,7 @@ Template
4870
5519
 
4871
5520
  # Combo Box
4872
5521
 
4873
- Mero UI 0.7.0 · Pickers
5522
+ Mero UI 0.8.0 · Pickers
4874
5523
 
4875
5524
  Filter and select from suggestions already on the page.
4876
5525
 
@@ -4910,7 +5559,7 @@ Template
4910
5559
 
4911
5560
  # Select
4912
5561
 
4913
- Mero UI 0.7.0 · Pickers
5562
+ Mero UI 0.8.0 · Pickers
4914
5563
 
4915
5564
  Choose one of a fixed set of values using the platform’s picker.
4916
5565
 
@@ -4940,7 +5589,7 @@ Template
4940
5589
 
4941
5590
  # Kbd
4942
5591
 
4943
- Mero UI 0.7.0 · Typography
5592
+ Mero UI 0.8.0 · Typography
4944
5593
 
4945
5594
  Format a keyboard shortcut with native semantics.
4946
5595
 
@@ -4959,9 +5608,40 @@ Template
4959
5608
  <p class="mero-text">Use <kbd class="mero-kbd">Tab</kbd> to move to the next control.</p>
4960
5609
  ````
4961
5610
 
5611
+ ## Keyboard shortcuts
5612
+
5613
+ Act on single keys and two-key sequences, with a switch to turn them off.
5614
+
5615
+ Shortcuts are ignored while the person types in a field, works in a menu, list, tab list or grid, or holds Ctrl, Cmd or Alt. A field takes focus; anything else is clicked. A two-key sequence such as g r must be finished within 1.5 seconds. WCAG 2.1.4 requires a way to turn single-key shortcuts off: the data-mero-shortcuts-toggle control does that for every page in this browser, and Mero updates aria-keyshortcuts to match.
5616
+
5617
+ Page assets
5618
+
5619
+ ```html
5620
+ <link rel="stylesheet" href="/mero.css">
5621
+ <script defer src="/mero.js"></script>
5622
+ ```
5623
+
5624
+ Template
5625
+
5626
+ ````html
5627
+ <div class="mero-scope" data-mero-scope>
5628
+ <div class="mero-stack">
5629
+ <div class="mero-field">
5630
+ <label class="mero-label" for="shortcut-demo-search">Search <kbd class="mero-kbd">/</kbd></label>
5631
+ <input class="mero-input" id="shortcut-demo-search" type="search" data-mero-shortcut="/">
5632
+ </div>
5633
+ <div class="mero-row">
5634
+ <button class="mero-button mero-button-secondary" type="button" data-mero-shortcut="n" data-mero-toast="New draft started">New draft <kbd class="mero-kbd">N</kbd></button>
5635
+ <button class="mero-button mero-button-secondary" type="button" data-mero-shortcut="g r" data-mero-toast="Opened reports">Reports <kbd class="mero-kbd">G</kbd> <kbd class="mero-kbd">R</kbd></button>
5636
+ </div>
5637
+ <label class="mero-row"><input class="mero-checkbox" type="checkbox" data-mero-shortcuts-toggle checked> Single-key shortcuts</label>
5638
+ </div>
5639
+ </div>
5640
+ ````
5641
+
4962
5642
  # Typography
4963
5643
 
4964
- Mero UI 0.7.0 · Typography
5644
+ Mero UI 0.8.0 · Typography
4965
5645
 
4966
5646
  Apply the type scale to semantic content.
4967
5647
 
@@ -4984,9 +5664,32 @@ Template
4984
5664
  </article>
4985
5665
  ````
4986
5666
 
5667
+ ## Local time
5668
+
5669
+ Show server timestamps in the reader’s locale and time zone.
5670
+
5671
+ Render the UTC time as text so the page reads correctly without scripts. Mero rewrites the text from datetime: absolute shows the date and time, date and time show one part, and relative shows how long ago or until, refreshed every minute, with the full date in the title. After a swap or morph Mero formats the new elements again.
5672
+
5673
+ Page assets
5674
+
5675
+ ```html
5676
+ <link rel="stylesheet" href="/mero.css">
5677
+ <script defer src="/mero.js"></script>
5678
+ ```
5679
+
5680
+ Template
5681
+
5682
+ ````html
5683
+ <dl class="mero-stack">
5684
+ <div><dt class="mero-label">Deployed</dt><dd><time datetime="2026-11-23T09:41:00Z" data-mero-time="relative">2026-11-23 09:41 UTC</time></dd></div>
5685
+ <div><dt class="mero-label">Created</dt><dd><time datetime="2026-11-21T16:05:00Z" data-mero-time="absolute">2026-11-21 16:05 UTC</time></dd></div>
5686
+ <div><dt class="mero-label">Expires</dt><dd><time datetime="2026-12-23T00:00:00Z" data-mero-time="date">2026-12-23 UTC</time></dd></div>
5687
+ </dl>
5688
+ ````
5689
+
4987
5690
  # Badge
4988
5691
 
4989
- Mero UI 0.7.0 · Data display
5692
+ Mero UI 0.8.0 · Data display
4990
5693
 
4991
5694
  Label a status using text and a semantic tone.
4992
5695
 
@@ -5011,7 +5714,7 @@ Template
5011
5714
 
5012
5715
  # Chip
5013
5716
 
5014
- Mero UI 0.7.0 · Data display
5717
+ Mero UI 0.8.0 · Data display
5015
5718
 
5016
5719
  Display a lightweight label for an attribute or filter value.
5017
5720
 
@@ -5030,14 +5733,45 @@ Template
5030
5733
  <span class="mero-chip">Europe West</span>
5031
5734
  ````
5032
5735
 
5736
+ # Description List
5737
+
5738
+ Mero UI 0.8.0 · Data display
5739
+
5740
+ Show a record’s fields as label and value pairs.
5741
+
5742
+ ## Default
5743
+
5744
+ Wrap each dt and its dd in a div. Labels and values share a row from 768 px and stack below it. Put identifiers, hashes and keys in code for a monospace value; long values wrap instead of widening the page. Values can hold badges, links and other inline components.
5745
+
5746
+ Page assets
5747
+
5748
+ ```html
5749
+ <link rel="stylesheet" href="/mero.css">
5750
+ <script defer src="/mero.js"></script>
5751
+ ```
5752
+
5753
+ Template
5754
+
5755
+ ````html
5756
+ <dl class="mero-description-list">
5757
+ <div><dt>Environment</dt><dd>Production</dd></div>
5758
+ <div><dt>Status</dt><dd><span class="mero-badge mero-badge-success">Live</span></dd></div>
5759
+ <div><dt>Release</dt><dd><code>rel_01HZX3K9Q4F7WM2D8B6N</code></dd></div>
5760
+ <div><dt>Region</dt><dd>Europe West</dd></div>
5761
+ <div><dt>Owner</dt><dd><a class="mero-link" href="/components/sortable-table">Studio North</a></dd></div>
5762
+ </dl>
5763
+ ````
5764
+
5033
5765
  # Table
5034
5766
 
5035
- Mero UI 0.7.0 · Data display
5767
+ Mero UI 0.8.0 · Data display
5036
5768
 
5037
5769
  Show comparable records in a native table with column headers.
5038
5770
 
5039
5771
  ## Default
5040
5772
 
5773
+ Use scope on the headers. The wrapper scrolls a wide table sideways instead of widening the page.
5774
+
5041
5775
  Page assets
5042
5776
 
5043
5777
  ```html
@@ -5060,9 +5794,64 @@ Template
5060
5794
  </div>
5061
5795
  ````
5062
5796
 
5797
+ ## Cards on phones
5798
+
5799
+ Show rows as labelled cards on phones, with numbers aligned for comparison.
5800
+
5801
+ Add mero-table-cards to the wrapper for cards below 768 px, keep the table roles so screen readers still navigate rows and cells, and start each cell with its data-mero-cell-label. Put data-mero-card-hidden on a column's header and cells to leave it out of the cards. Give numeric headers and cells mero-table-num so they end-align with tabular figures in the table; in a card the value follows its label.
5802
+
5803
+ Page assets
5804
+
5805
+ ```html
5806
+ <link rel="stylesheet" href="/mero.css">
5807
+ <script defer src="/mero.js"></script>
5808
+ ```
5809
+
5810
+ Template
5811
+
5812
+ ````html
5813
+ <div class="mero-table-wrap mero-table-cards">
5814
+ <table class="mero-table" role="table">
5815
+ <caption>Environments</caption>
5816
+ <thead role="rowgroup">
5817
+ <tr role="row">
5818
+ <th role="columnheader" scope="col">Environment</th>
5819
+ <th role="columnheader" scope="col" data-mero-card-hidden>Region</th>
5820
+ <th role="columnheader" scope="col">Status</th>
5821
+ <th role="columnheader" scope="col" class="mero-table-num">Deploys</th>
5822
+ <th role="columnheader" scope="col" class="mero-table-num">Error rate</th>
5823
+ </tr>
5824
+ </thead>
5825
+ <tbody role="rowgroup">
5826
+ <tr role="row">
5827
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>acme-production</th>
5828
+ <td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>Europe West</td>
5829
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Live</span></td>
5830
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>1,284</td>
5831
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>0.02%</td>
5832
+ </tr>
5833
+ <tr role="row">
5834
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>acme-staging</th>
5835
+ <td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>Europe West</td>
5836
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-warning">Review</span></td>
5837
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>96</td>
5838
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>1.40%</td>
5839
+ </tr>
5840
+ <tr role="row">
5841
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>globex-production</th>
5842
+ <td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>US East</td>
5843
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Live</span></td>
5844
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>12</td>
5845
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>0.00%</td>
5846
+ </tr>
5847
+ </tbody>
5848
+ </table>
5849
+ </div>
5850
+ ````
5851
+
5063
5852
  # Sortable Table
5064
5853
 
5065
- Mero UI 0.7.0 · Data display
5854
+ Mero UI 0.8.0 · Data display
5066
5855
 
5067
5856
  Sort server-rendered rows from the column headers and open a row from anywhere in it.
5068
5857
 
@@ -5364,7 +6153,7 @@ Template
5364
6153
 
5365
6154
  # Filter Chips
5366
6155
 
5367
- Mero UI 0.7.0 · Data display
6156
+ Mero UI 0.8.0 · Data display
5368
6157
 
5369
6158
  Add filters from a menu, see them as chips and remove them one at a time. The URL keeps the state.
5370
6159
 
@@ -5512,7 +6301,7 @@ Template
5512
6301
 
5513
6302
  # Color Area
5514
6303
 
5515
- Mero UI 0.7.0 · Colors
6304
+ Mero UI 0.8.0 · Colors
5516
6305
 
5517
6306
  Open a browser-managed color surface and submit the selected color.
5518
6307
 
@@ -5541,7 +6330,7 @@ Template
5541
6330
 
5542
6331
  # Color Field
5543
6332
 
5544
- Mero UI 0.7.0 · Colors
6333
+ Mero UI 0.8.0 · Colors
5545
6334
 
5546
6335
  Enter a six-digit hex value directly in a text field.
5547
6336
 
@@ -5570,7 +6359,7 @@ Template
5570
6359
 
5571
6360
  # Color Picker
5572
6361
 
5573
- Mero UI 0.7.0 · Colors
6362
+ Mero UI 0.8.0 · Colors
5574
6363
 
5575
6364
  Choose a color using the native picker UI.
5576
6365
 
@@ -5597,7 +6386,7 @@ Template
5597
6386
 
5598
6387
  # Color Slider
5599
6388
 
5600
- Mero UI 0.7.0 · Colors
6389
+ Mero UI 0.8.0 · Colors
5601
6390
 
5602
6391
  Adjust a hue along the color spectrum.
5603
6392
 
@@ -5627,7 +6416,7 @@ Template
5627
6416
 
5628
6417
  # Color Swatch
5629
6418
 
5630
- Mero UI 0.7.0 · Colors
6419
+ Mero UI 0.8.0 · Colors
5631
6420
 
5632
6421
  Show a color with its human-readable label.
5633
6422
 
@@ -5652,7 +6441,7 @@ Template
5652
6441
 
5653
6442
  # Scroll Shadow
5654
6443
 
5655
- Mero UI 0.7.0 · Utilities
6444
+ Mero UI 0.8.0 · Utilities
5656
6445
 
5657
6446
  Expose a scrollable region with a visual cue that more content is available.
5658
6447
 
@@ -5680,9 +6469,35 @@ Template
5680
6469
  </div>
5681
6470
  ````
5682
6471
 
6472
+ # Visually Hidden
6473
+
6474
+ Mero UI 0.8.0 · Utilities
6475
+
6476
+ Give screen readers context that the visible text leaves implied.
6477
+
6478
+ ## Default
6479
+
6480
+ Put the hidden words inside the element they describe, with a leading space, so the accessible name reads as one phrase: Copy release ID. The text stays in the accessibility tree and in copied text, takes no space and never widens a scrolling container. Don't hide focusable elements this way.
6481
+
6482
+ Page assets
6483
+
6484
+ ```html
6485
+ <link rel="stylesheet" href="/mero.css">
6486
+ <script defer src="/mero.js"></script>
6487
+ ```
6488
+
6489
+ Template
6490
+
6491
+ ````html
6492
+ <div class="mero-row">
6493
+ <button class="mero-button mero-button-outline mero-button-sm" type="button" data-mero-toast="Release ID copied">Copy<span class="mero-sr-only"> release ID</span></button>
6494
+ <span class="mero-badge mero-badge-warning">3<span class="mero-sr-only"> environments need attention</span></span>
6495
+ </div>
6496
+ ````
6497
+
5683
6498
  # Join
5684
6499
 
5685
- Mero UI 0.7.0 · Composition
6500
+ Mero UI 0.8.0 · Composition
5686
6501
 
5687
6502
  Connect related controls with a shared outline.
5688
6503
 
@@ -5705,7 +6520,7 @@ Template
5705
6520
 
5706
6521
  # Menu
5707
6522
 
5708
- Mero UI 0.7.0 · Composition
6523
+ Mero UI 0.8.0 · Composition
5709
6524
 
5710
6525
  Group destinations with an active page and section labels.
5711
6526
 
@@ -5728,7 +6543,7 @@ Template
5728
6543
 
5729
6544
  # Hero
5730
6545
 
5731
- Mero UI 0.7.0 · Composition
6546
+ Mero UI 0.8.0 · Composition
5732
6547
 
5733
6548
  Pair a product introduction with a single destination.
5734
6549
 
@@ -5753,7 +6568,7 @@ Template
5753
6568
 
5754
6569
  # Footer
5755
6570
 
5756
- Mero UI 0.7.0 · Composition
6571
+ Mero UI 0.8.0 · Composition
5757
6572
 
5758
6573
  Close a workspace with a small group of navigation links.
5759
6574
 
@@ -5776,7 +6591,7 @@ Template
5776
6591
 
5777
6592
  # Theme Controller
5778
6593
 
5779
- Mero UI 0.7.0 · Composition
6594
+ Mero UI 0.8.0 · Composition
5780
6595
 
5781
6596
  Set a theme inside one section of a page.
5782
6597
 
@@ -5799,7 +6614,7 @@ Template
5799
6614
 
5800
6615
  # Validator
5801
6616
 
5802
- Mero UI 0.7.0 · Composition
6617
+ Mero UI 0.8.0 · Composition
5803
6618
 
5804
6619
  Show a native field constraint and its correction.
5805
6620
 
@@ -5824,7 +6639,7 @@ Template
5824
6639
 
5825
6640
  # Aura
5826
6641
 
5827
- Mero UI 0.7.0 · Display utilities
6642
+ Mero UI 0.8.0 · Display utilities
5828
6643
 
5829
6644
  Frame an interactive surface with a subtle moving highlight.
5830
6645
 
@@ -5847,7 +6662,7 @@ Template
5847
6662
 
5848
6663
  # Countdown
5849
6664
 
5850
- Mero UI 0.7.0 · Display utilities
6665
+ Mero UI 0.8.0 · Display utilities
5851
6666
 
5852
6667
  Show the time remaining until the next daily shipping cutoff.
5853
6668
 
@@ -5872,7 +6687,7 @@ Template
5872
6687
 
5873
6688
  # Indicator
5874
6689
 
5875
- Mero UI 0.7.0 · Display utilities
6690
+ Mero UI 0.8.0 · Display utilities
5876
6691
 
5877
6692
  Anchor a quantity to an icon or action.
5878
6693
 
@@ -5895,7 +6710,7 @@ Template
5895
6710
 
5896
6711
  # Mask
5897
6712
 
5898
- Mero UI 0.7.0 · Display utilities
6713
+ Mero UI 0.8.0 · Display utilities
5899
6714
 
5900
6715
  Crop an image while keeping its alternative text.
5901
6716
 
@@ -5920,7 +6735,7 @@ Template
5920
6735
 
5921
6736
  # Stack
5922
6737
 
5923
- Mero UI 0.7.0 · Display utilities
6738
+ Mero UI 0.8.0 · Display utilities
5924
6739
 
5925
6740
  Layer related previews while keeping the current item legible.
5926
6741
 
@@ -5945,7 +6760,7 @@ Template
5945
6760
 
5946
6761
  # Status
5947
6762
 
5948
- Mero UI 0.7.0 · Display utilities
6763
+ Mero UI 0.8.0 · Display utilities
5949
6764
 
5950
6765
  Show system status with a label and a visual marker.
5951
6766
 
@@ -5968,7 +6783,7 @@ Template
5968
6783
 
5969
6784
  # Swap
5970
6785
 
5971
- Mero UI 0.7.0 · Display utilities
6786
+ Mero UI 0.8.0 · Display utilities
5972
6787
 
5973
6788
  Switch between two labels or icons on a native control.
5974
6789
 
@@ -5991,7 +6806,7 @@ Template
5991
6806
 
5992
6807
  # Text Rotate
5993
6808
 
5994
- Mero UI 0.7.0 · Display utilities
6809
+ Mero UI 0.8.0 · Display utilities
5995
6810
 
5996
6811
  Rotate through short messages with explicit playback controls.
5997
6812
 
@@ -6014,7 +6829,7 @@ Template
6014
6829
 
6015
6830
  # Browser Mockup
6016
6831
 
6017
- Mero UI 0.7.0 · Mockups
6832
+ Mero UI 0.8.0 · Mockups
6018
6833
 
6019
6834
  Present a site preview inside a compact browser frame.
6020
6835
 
@@ -6039,7 +6854,7 @@ Template
6039
6854
 
6040
6855
  # Phone Mockup
6041
6856
 
6042
- Mero UI 0.7.0 · Mockups
6857
+ Mero UI 0.8.0 · Mockups
6043
6858
 
6044
6859
  Frame a mobile product screen.
6045
6860
 
@@ -6064,7 +6879,7 @@ Template
6064
6879
 
6065
6880
  # Window Mockup
6066
6881
 
6067
- Mero UI 0.7.0 · Mockups
6882
+ Mero UI 0.8.0 · Mockups
6068
6883
 
6069
6884
  Place a desktop tool inside a labelled window.
6070
6885
 
@@ -6087,7 +6902,7 @@ Template
6087
6902
 
6088
6903
  # Code Mockup
6089
6904
 
6090
- Mero UI 0.7.0 · Mockups
6905
+ Mero UI 0.8.0 · Mockups
6091
6906
 
6092
6907
  Present a terminal command and its output.
6093
6908