@rubenlangeweg/mero-ui 0.0.0-stage → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -0
- package/LICENSE +21 -0
- package/README.md +141 -2
- package/agent-docs/components/accordion.md +31 -0
- package/agent-docs/components/action-bar.md +45 -0
- package/agent-docs/components/action-button.md +42 -0
- package/agent-docs/components/agenda.md +38 -0
- package/agent-docs/components/alert-dialog.md +36 -0
- package/agent-docs/components/alert.md +25 -0
- package/agent-docs/components/app-layout.md +36 -0
- package/agent-docs/components/area-chart.md +36 -0
- package/agent-docs/components/aura.md +24 -0
- package/agent-docs/components/autocomplete.md +81 -0
- package/agent-docs/components/avatar-group.md +26 -0
- package/agent-docs/components/avatar.md +25 -0
- package/agent-docs/components/badge.md +26 -0
- package/agent-docs/components/bar-chart.md +36 -0
- package/agent-docs/components/breadcrumbs.md +28 -0
- package/agent-docs/components/browser-mockup.md +26 -0
- package/agent-docs/components/button-group.md +26 -0
- package/agent-docs/components/button.md +75 -0
- package/agent-docs/components/calendar.md +105 -0
- package/agent-docs/components/card.md +26 -0
- package/agent-docs/components/carousel.md +78 -0
- package/agent-docs/components/cell-color-picker.md +32 -0
- package/agent-docs/components/cell-select.md +32 -0
- package/agent-docs/components/cell-slider.md +32 -0
- package/agent-docs/components/cell-switch.md +32 -0
- package/agent-docs/components/chain-of-thought.md +26 -0
- package/agent-docs/components/chart-tooltip.md +36 -0
- package/agent-docs/components/chat-attachment.md +26 -0
- package/agent-docs/components/chat-conversation.md +61 -0
- package/agent-docs/components/chat-list-view.md +25 -0
- package/agent-docs/components/chat-loader.md +24 -0
- package/agent-docs/components/chat-message-actions.md +25 -0
- package/agent-docs/components/chat-message.md +24 -0
- package/agent-docs/components/chat-source.md +24 -0
- package/agent-docs/components/chat-tool.md +41 -0
- package/agent-docs/components/checkbox-button-group.md +29 -0
- package/agent-docs/components/checkbox-group.md +29 -0
- package/agent-docs/components/checkbox.md +25 -0
- package/agent-docs/components/chip.md +22 -0
- package/agent-docs/components/close-button.md +33 -0
- package/agent-docs/components/code-block.md +24 -0
- package/agent-docs/components/code-mockup.md +25 -0
- package/agent-docs/components/color-area.md +30 -0
- package/agent-docs/components/color-field.md +30 -0
- package/agent-docs/components/color-picker.md +28 -0
- package/agent-docs/components/color-slider.md +31 -0
- package/agent-docs/components/color-swatch.md +26 -0
- package/agent-docs/components/combo-box.md +41 -0
- package/agent-docs/components/command-menu.md +46 -0
- package/agent-docs/components/command.md +38 -0
- package/agent-docs/components/composed-chart.md +36 -0
- package/agent-docs/components/context-menu.md +31 -0
- package/agent-docs/components/countdown.md +26 -0
- package/agent-docs/components/data-grid.md +159 -0
- package/agent-docs/components/date-field.md +28 -0
- package/agent-docs/components/date-picker.md +30 -0
- package/agent-docs/components/date-range-picker.md +40 -0
- package/agent-docs/components/description.md +28 -0
- package/agent-docs/components/diff.md +43 -0
- package/agent-docs/components/disclosure-group.md +31 -0
- package/agent-docs/components/disclosure.md +25 -0
- package/agent-docs/components/dock.md +26 -0
- package/agent-docs/components/drawer.md +34 -0
- package/agent-docs/components/drop-zone.md +34 -0
- package/agent-docs/components/dropdown.md +31 -0
- package/agent-docs/components/emoji-picker.md +31 -0
- package/agent-docs/components/emoji-reaction-button.md +26 -0
- package/agent-docs/components/empty-state.md +24 -0
- package/agent-docs/components/error-message.md +25 -0
- package/agent-docs/components/fab.md +26 -0
- package/agent-docs/components/field-error.md +30 -0
- package/agent-docs/components/fieldset.md +38 -0
- package/agent-docs/components/file-input.md +32 -0
- package/agent-docs/components/file-tree.md +24 -0
- package/agent-docs/components/filter-chips.md +149 -0
- package/agent-docs/components/floating-toc.md +24 -0
- package/agent-docs/components/footer.md +24 -0
- package/agent-docs/components/form.md +35 -0
- package/agent-docs/components/hero.md +26 -0
- package/agent-docs/components/holo-card.md +33 -0
- package/agent-docs/components/hover-card.md +26 -0
- package/agent-docs/components/hover-gallery.md +78 -0
- package/agent-docs/components/indicator.md +24 -0
- package/agent-docs/components/inline-select.md +26 -0
- package/agent-docs/components/input-group.md +30 -0
- package/agent-docs/components/input-otp.md +30 -0
- package/agent-docs/components/input.md +28 -0
- package/agent-docs/components/item-card-group.md +24 -0
- package/agent-docs/components/item-card.md +24 -0
- package/agent-docs/components/join.md +24 -0
- package/agent-docs/components/joined-filter.md +28 -0
- package/agent-docs/components/kanban.md +26 -0
- package/agent-docs/components/kbd.md +22 -0
- package/agent-docs/components/kpi-group.md +24 -0
- package/agent-docs/components/kpi.md +24 -0
- package/agent-docs/components/label.md +28 -0
- package/agent-docs/components/line-chart.md +64 -0
- package/agent-docs/components/link.md +22 -0
- package/agent-docs/components/list-box.md +30 -0
- package/agent-docs/components/list-view.md +24 -0
- package/agent-docs/components/live-progress.md +38 -0
- package/agent-docs/components/map.md +26 -0
- package/agent-docs/components/markdown.md +36 -0
- package/agent-docs/components/mask.md +26 -0
- package/agent-docs/components/megamenu.md +26 -0
- package/agent-docs/components/menu-button.md +78 -0
- package/agent-docs/components/menu.md +24 -0
- package/agent-docs/components/meter.md +28 -0
- package/agent-docs/components/modal.md +34 -0
- package/agent-docs/components/native-select.md +26 -0
- package/agent-docs/components/navbar.md +24 -0
- package/agent-docs/components/number-field.md +28 -0
- package/agent-docs/components/number-stepper.md +31 -0
- package/agent-docs/components/number-value.md +26 -0
- package/agent-docs/components/pagination.md +40 -0
- package/agent-docs/components/phone-mockup.md +26 -0
- package/agent-docs/components/pie-chart.md +36 -0
- package/agent-docs/components/popover.md +30 -0
- package/agent-docs/components/pressable-feedback.md +24 -0
- package/agent-docs/components/progress-bar.md +27 -0
- package/agent-docs/components/progress-circle.md +23 -0
- package/agent-docs/components/prompt-input.md +32 -0
- package/agent-docs/components/prompt-suggestion.md +32 -0
- package/agent-docs/components/radar-chart.md +36 -0
- package/agent-docs/components/radial-chart.md +36 -0
- package/agent-docs/components/radio-button-group.md +28 -0
- package/agent-docs/components/radio-group.md +29 -0
- package/agent-docs/components/range-calendar.md +40 -0
- package/agent-docs/components/rating.md +26 -0
- package/agent-docs/components/resizable.md +55 -0
- package/agent-docs/components/rich-text-editor.md +35 -0
- package/agent-docs/components/scroll-shadow.md +31 -0
- package/agent-docs/components/search-field.md +28 -0
- package/agent-docs/components/segment.md +28 -0
- package/agent-docs/components/select.md +31 -0
- package/agent-docs/components/separator.md +26 -0
- package/agent-docs/components/sheet.md +34 -0
- package/agent-docs/components/sidebar.md +36 -0
- package/agent-docs/components/skeleton.md +26 -0
- package/agent-docs/components/slider.md +27 -0
- package/agent-docs/components/sortable-table.md +303 -0
- package/agent-docs/components/spinner.md +25 -0
- package/agent-docs/components/stack.md +26 -0
- package/agent-docs/components/status.md +24 -0
- package/agent-docs/components/stepper.md +32 -0
- package/agent-docs/components/surface.md +25 -0
- package/agent-docs/components/swap.md +24 -0
- package/agent-docs/components/switch.md +75 -0
- package/agent-docs/components/table.md +31 -0
- package/agent-docs/components/tabs.md +65 -0
- package/agent-docs/components/tag-group.md +26 -0
- package/agent-docs/components/text-area.md +27 -0
- package/agent-docs/components/text-field.md +28 -0
- package/agent-docs/components/text-rotate.md +24 -0
- package/agent-docs/components/text-shimmer.md +24 -0
- package/agent-docs/components/theme-controller.md +24 -0
- package/agent-docs/components/time-field.md +30 -0
- package/agent-docs/components/timeline.md +24 -0
- package/agent-docs/components/toast.md +22 -0
- package/agent-docs/components/toggle-button-group.md +31 -0
- package/agent-docs/components/toggle-button.md +24 -0
- package/agent-docs/components/toolbar.md +28 -0
- package/agent-docs/components/tooltip.md +27 -0
- package/agent-docs/components/trend-chip.md +24 -0
- package/agent-docs/components/typed-confirmation.md +160 -0
- package/agent-docs/components/typography.md +26 -0
- package/agent-docs/components/validator.md +26 -0
- package/agent-docs/components/widget.md +24 -0
- package/agent-docs/components/window-mockup.md +24 -0
- package/agent-docs/llms-components.txt +5881 -0
- package/agent-docs/llms-full.txt +6110 -0
- package/agent-docs/llms-patterns.txt +230 -0
- package/agent-docs/llms.txt +261 -0
- package/package.json +48 -4
- package/ui/insight-charts.mjs +124 -0
- package/ui/insight-markdown.mjs +46 -0
- package/ui/mero-collections.css +146 -0
- package/ui/mero-collections.js +272 -0
- package/ui/mero-composition.css +342 -0
- package/ui/mero-composition.js +79 -0
- package/ui/mero-forms.js +223 -0
- package/ui/mero-gallery.css +122 -0
- package/ui/mero-gallery.js +193 -0
- package/ui/mero-insights.css +168 -0
- package/ui/mero-insights.js +188 -0
- package/ui/mero-inventory.css +182 -0
- package/ui/mero-inventory.js +56 -0
- package/ui/mero-layouts.css +73 -0
- package/ui/mero-live.js +120 -0
- package/ui/mero-workspace.css +152 -0
- package/ui/mero-workspace.js +590 -0
- package/ui/mero.css +922 -0
- package/ui/mero.js +868 -0
- package/ui/studio-lamp.webp +0 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Autocomplete
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Pickers
|
|
4
|
+
|
|
5
|
+
Request matching options from the server as a user types.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
HTMX replaces the options with a server-rendered fragment. Use the arrow keys and Enter to select a result. Escape clears the active option. Arrow Down requests current results again if you dismissed a pending search. An empty search result leaves the message visible.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
18
|
+
<script defer src="/mero.js"></script>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Template
|
|
22
|
+
|
|
23
|
+
````html
|
|
24
|
+
<div class="mero-scope" data-mero-scope>
|
|
25
|
+
<div class="mero-field">
|
|
26
|
+
<label class="mero-label" for="demo-autocomplete">Workspace</label>
|
|
27
|
+
<div class="mero-combo" data-mero-combo data-mero-combo-remote>
|
|
28
|
+
<input class="mero-input" id="demo-autocomplete" name="q" type="text" role="combobox"
|
|
29
|
+
aria-expanded="false" aria-controls="demo-autocomplete-options" aria-autocomplete="list"
|
|
30
|
+
autocomplete="off" placeholder="Find a workspace…"
|
|
31
|
+
hx-get="/demo/catalog/autocomplete" hx-trigger="input changed delay:180ms, mero:query"
|
|
32
|
+
hx-target="next [role=listbox]" hx-swap="innerHTML" hx-sync="this:replace">
|
|
33
|
+
<ul class="mero-listbox mero-combo-list" id="demo-autocomplete-options" role="listbox" aria-label="Workspaces" hidden>
|
|
34
|
+
<li class="mero-option" id="demo-autocomplete-atlas" role="option" aria-selected="false">Atlas</li>
|
|
35
|
+
<li class="mero-option" id="demo-autocomplete-beacon" role="option" aria-selected="false">Beacon</li>
|
|
36
|
+
<li class="mero-option" id="demo-autocomplete-cobalt" role="option" aria-selected="false">Cobalt</li>
|
|
37
|
+
<li class="mero-option" id="demo-autocomplete-drift" role="option" aria-selected="false">Drift</li>
|
|
38
|
+
<li class="mero-option" id="demo-autocomplete-iris" role="option" aria-selected="false">Iris</li>
|
|
39
|
+
<li class="mero-option" id="demo-autocomplete-lumen" role="option" aria-selected="false">Lumen</li>
|
|
40
|
+
<li class="mero-option" id="demo-autocomplete-studio-north" role="option" aria-selected="false">Studio North</li>
|
|
41
|
+
</ul>
|
|
42
|
+
<span class="mero-description" data-mero-combo-status role="status"></span>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
````
|
|
47
|
+
|
|
48
|
+
## Local shortlist
|
|
49
|
+
|
|
50
|
+
Filter a short list of pinned workspaces already on the page.
|
|
51
|
+
|
|
52
|
+
Type to narrow the three choices. Use the arrow keys to move through matches and Enter to choose a workspace.
|
|
53
|
+
|
|
54
|
+
Page assets
|
|
55
|
+
|
|
56
|
+
```html
|
|
57
|
+
<link rel="stylesheet" href="/mero.css">
|
|
58
|
+
<script defer src="/mero.js"></script>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Template
|
|
62
|
+
|
|
63
|
+
````html
|
|
64
|
+
<div class="mero-scope" data-mero-scope>
|
|
65
|
+
<div class="mero-field">
|
|
66
|
+
<label class="mero-label" for="shortlist">Pinned workspace</label>
|
|
67
|
+
<div class="mero-combo" data-mero-combo>
|
|
68
|
+
<input class="mero-input" id="shortlist" name="q" type="text" role="combobox"
|
|
69
|
+
aria-expanded="false" aria-controls="shortlist-options" aria-autocomplete="list"
|
|
70
|
+
autocomplete="off" placeholder="Find a workspace…">
|
|
71
|
+
<ul class="mero-listbox mero-combo-list" id="shortlist-options" role="listbox" aria-label="Workspaces" hidden>
|
|
72
|
+
<li class="mero-option" id="shortlist-studio-north" role="option" aria-selected="false">Studio North</li>
|
|
73
|
+
<li class="mero-option" id="shortlist-atlas" role="option" aria-selected="false">Atlas</li>
|
|
74
|
+
<li class="mero-option" id="shortlist-beacon" role="option" aria-selected="false">Beacon</li>
|
|
75
|
+
<li class="mero-option" role="option" aria-disabled="true" data-mero-empty-option hidden>No matches</li>
|
|
76
|
+
</ul>
|
|
77
|
+
<span class="mero-description" data-mero-combo-status role="status"></span>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Avatar Group
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Media
|
|
4
|
+
|
|
5
|
+
Show a compact cluster of people associated with a workspace.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<div class="mero-avatar-group" role="group" aria-label="Collaborators">
|
|
22
|
+
<span class="mero-avatar" role="img" aria-label="Sam Rivera" style="background:#b9a5ff;color:#201630">SR</span>
|
|
23
|
+
<span class="mero-avatar" role="img" aria-label="Mila Khan" style="background:#95e2c0;color:#201630">MK</span>
|
|
24
|
+
<span class="mero-avatar" role="img" aria-label="Alex Lee" style="background:#f5ca9d;color:#201630">AL</span>
|
|
25
|
+
</div>
|
|
26
|
+
````
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Avatar
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Media
|
|
4
|
+
|
|
5
|
+
Represent a person with initials and an accessible name.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<div class="mero-row">
|
|
22
|
+
<span class="mero-avatar" role="img" aria-label="Sam Rivera">SR</span>
|
|
23
|
+
<span>Workspace owner</span>
|
|
24
|
+
</div>
|
|
25
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Badge
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Data display
|
|
4
|
+
|
|
5
|
+
Label a status using text and a semantic tone.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<div class="mero-row">
|
|
22
|
+
<span class="mero-badge mero-badge-success">Published</span>
|
|
23
|
+
<span class="mero-badge mero-badge-warning">In review</span>
|
|
24
|
+
<span class="mero-badge mero-badge-accent">Draft</span>
|
|
25
|
+
</div>
|
|
26
|
+
````
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Bar Chart
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Charts
|
|
4
|
+
|
|
5
|
+
Compare adjacent categories on a shared linear scale.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
Optional server helper: `ui/insight-charts.mjs`.
|
|
10
|
+
|
|
11
|
+
## Default
|
|
12
|
+
|
|
13
|
+
The SVG and data table share one dataset. Tab into the chart once. Arrow left and right inspect categories. Arrow up and down change series. The next Tab reaches the data table. The optional insight-charts.mjs helper renders this HTML on your server.
|
|
14
|
+
|
|
15
|
+
Page assets
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<link rel="stylesheet" href="/mero.css">
|
|
19
|
+
<link rel="stylesheet" href="/mero-insights.css">
|
|
20
|
+
<script defer src="/mero.js"></script>
|
|
21
|
+
<script defer src="/mero-insights.js"></script>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Template
|
|
25
|
+
|
|
26
|
+
````html
|
|
27
|
+
<figure class="mero-plot" data-mero-chart="bar">
|
|
28
|
+
<figcaption><strong>Weekly dispatch plan</strong><span>Studio dispatch · sample week</span></figcaption>
|
|
29
|
+
<ul class="mero-plot-legend" aria-label="Series"><li><i class="mero-plot-tone-0" aria-hidden="true"></i>Shipped</li><li><i class="mero-plot-tone-1" aria-hidden="true"></i>Planned</li></ul>
|
|
30
|
+
<svg viewBox="0 0 495 188" role="group" aria-label="Weekly dispatch plan"><desc>Use the arrow keys to explore values. Open the data table for all values.</desc><line class="mero-plot-grid" x1="42" x2="480" y1="155" y2="155"/><text class="mero-plot-axis" x="35" y="159" text-anchor="end">0</text><line class="mero-plot-grid" x1="42" x2="480" y1="85.5" y2="85.5"/><text class="mero-plot-axis" x="35" y="89.5" text-anchor="end">28</text><line class="mero-plot-grid" x1="42" x2="480" y1="16" y2="16"/><text class="mero-plot-axis" x="35" y="20" text-anchor="end">56</text><text class="mero-plot-axis" x="73.29" y="179" text-anchor="middle">Mon</text><text class="mero-plot-axis" x="135.86" y="179" text-anchor="middle">Tue</text><text class="mero-plot-axis" x="198.43" y="179" text-anchor="middle">Wed</text><text class="mero-plot-axis" x="261" y="179" text-anchor="middle">Thu</text><text class="mero-plot-axis" x="323.57" y="179" text-anchor="middle">Fri</text><text class="mero-plot-axis" x="386.14" y="179" text-anchor="middle">Sat</text><text class="mero-plot-axis" x="448.71" y="179" text-anchor="middle">Sun</text><g class="mero-plot-point mero-plot-tone-0" tabindex="0" role="img" aria-label="Mon · Shipped: 32" data-mero-series="0" data-mero-plot-value="Mon · Shipped: 32"><rect x="55.15" y="75.57" width="16.88" height="79.43" rx="2"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Tue · Shipped: 39" data-mero-series="0" data-mero-plot-value="Tue · Shipped: 39"><rect x="117.72" y="58.2" width="16.88" height="96.8" rx="2"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Wed · Shipped: 33" data-mero-series="0" data-mero-plot-value="Wed · Shipped: 33"><rect x="180.29" y="73.09" width="16.88" height="81.91" rx="2"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Thu · Shipped: 46" data-mero-series="0" data-mero-plot-value="Thu · Shipped: 46"><rect x="242.86" y="40.82" width="16.88" height="114.18" rx="2"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Fri · Shipped: 56" data-mero-series="0" data-mero-plot-value="Fri · Shipped: 56"><rect x="305.44" y="16" width="16.88" height="139" rx="2"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Sat · Shipped: 38" data-mero-series="0" data-mero-plot-value="Sat · Shipped: 38"><rect x="368.01" y="60.68" width="16.88" height="94.32" rx="2"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Sun · Shipped: 40" data-mero-series="0" data-mero-plot-value="Sun · Shipped: 40"><rect x="430.58" y="55.71" width="16.88" height="99.29" rx="2"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Mon · Planned: 35" data-mero-series="1" data-mero-plot-value="Mon · Planned: 35"><rect x="74.55" y="68.13" width="16.88" height="86.88" rx="2"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Tue · Planned: 41" data-mero-series="1" data-mero-plot-value="Tue · Planned: 41"><rect x="137.12" y="53.23" width="16.88" height="101.77" rx="2"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Wed · Planned: 32" data-mero-series="1" data-mero-plot-value="Wed · Planned: 32"><rect x="199.69" y="75.57" width="16.88" height="79.43" rx="2"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Thu · Planned: 48" data-mero-series="1" data-mero-plot-value="Thu · Planned: 48"><rect x="262.26" y="35.86" width="16.88" height="119.14" rx="2"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Fri · Planned: 52" data-mero-series="1" data-mero-plot-value="Fri · Planned: 52"><rect x="324.83" y="25.93" width="16.88" height="129.07" rx="2"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Sat · Planned: 36" data-mero-series="1" data-mero-plot-value="Sat · Planned: 36"><rect x="387.4" y="65.64" width="16.88" height="89.36" rx="2"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Sun · Planned: 42" data-mero-series="1" data-mero-plot-value="Sun · Planned: 42"><rect x="449.98" y="50.75" width="16.88" height="104.25" rx="2"/></g></svg>
|
|
31
|
+
<span class="mero-plot-tooltip" data-mero-plot-tooltip aria-hidden="true" hidden></span>
|
|
32
|
+
<div class="mero-plot-readout" data-mero-plot-readout>Inspect a point or use the arrow keys</div>
|
|
33
|
+
<details class="mero-plot-data"><summary>View chart data</summary><div><table class="mero-table"><caption>Weekly dispatch plan</caption><thead><tr><th scope="col">Category</th><th scope="col">Shipped</th><th scope="col">Planned</th></tr></thead>
|
|
34
|
+
<tbody><tr><th scope="row">Mon</th><td>32</td><td>35</td></tr><tr><th scope="row">Tue</th><td>39</td><td>41</td></tr><tr><th scope="row">Wed</th><td>33</td><td>32</td></tr><tr><th scope="row">Thu</th><td>46</td><td>48</td></tr><tr><th scope="row">Fri</th><td>56</td><td>52</td></tr><tr><th scope="row">Sat</th><td>38</td><td>36</td></tr><tr><th scope="row">Sun</th><td>40</td><td>42</td></tr></tbody></table></div></details>
|
|
35
|
+
</figure>
|
|
36
|
+
````
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Breadcrumbs
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Navigation
|
|
4
|
+
|
|
5
|
+
Show the user’s current location and its parent pages.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<nav class="mero-breadcrumbs" aria-label="Breadcrumb">
|
|
22
|
+
<ol>
|
|
23
|
+
<li><a href="/">Mero UI</a></li>
|
|
24
|
+
<li><a href="/components">Components</a></li>
|
|
25
|
+
<li aria-current="page">Breadcrumbs</li>
|
|
26
|
+
</ol>
|
|
27
|
+
</nav>
|
|
28
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Browser Mockup
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Mockups
|
|
4
|
+
|
|
5
|
+
Present a site preview inside a compact browser frame.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Serve studio-lamp.webp for the sample image.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-composition.css">
|
|
18
|
+
<script defer src="/mero.js"></script>
|
|
19
|
+
<script defer src="/mero-composition.js"></script>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Template
|
|
23
|
+
|
|
24
|
+
````html
|
|
25
|
+
<figure class="mero-device mero-device-browser"><figcaption>studio.local / collection</figcaption><img src="/studio-lamp.webp" width="1120" height="747" alt="Arc Task Lamp in warm ivory" loading="lazy"></figure>
|
|
26
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Button Group
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Buttons
|
|
4
|
+
|
|
5
|
+
Keep related actions together while preserving each button’s own label and focus.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<div class="mero-button-group" role="group" aria-label="Document actions">
|
|
22
|
+
<button class="mero-button mero-button-outline" type="button" data-mero-toast="Document copied">Copy</button>
|
|
23
|
+
<button class="mero-button mero-button-outline" type="button" data-mero-toast="Export requested">Export</button>
|
|
24
|
+
<button class="mero-button mero-button-outline" type="button" data-mero-toast="Link ready">Share</button>
|
|
25
|
+
</div>
|
|
26
|
+
````
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Button
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Buttons
|
|
4
|
+
|
|
5
|
+
Trigger an action with a consistent hierarchy of visual emphasis.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<div class="mero-row">
|
|
22
|
+
<button class="mero-button mero-button-primary" type="button" data-mero-toast="Draft saved" data-mero-tone="success">Save draft</button>
|
|
23
|
+
<button class="mero-button mero-button-secondary" type="button" data-mero-toast="Draft kept">Cancel</button>
|
|
24
|
+
<button class="mero-button mero-button-ghost" type="button" disabled>Unavailable</button>
|
|
25
|
+
</div>
|
|
26
|
+
````
|
|
27
|
+
|
|
28
|
+
## Compact actions
|
|
29
|
+
|
|
30
|
+
Page assets
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<link rel="stylesheet" href="/mero.css">
|
|
34
|
+
<script defer src="/mero.js"></script>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Template
|
|
38
|
+
|
|
39
|
+
````html
|
|
40
|
+
<div class="mero-button-group" role="group" aria-label="Draft actions">
|
|
41
|
+
<button class="mero-button mero-button-sm mero-button-secondary" type="button" data-mero-toast="Draft saved">Save draft</button>
|
|
42
|
+
<button class="mero-button mero-button-sm mero-button-outline" type="button" data-mero-toast="Draft copied">Copy</button>
|
|
43
|
+
</div>
|
|
44
|
+
````
|
|
45
|
+
|
|
46
|
+
## Pending request
|
|
47
|
+
|
|
48
|
+
Check current stock. While the request runs, the button shows a spinner and blocks a second submission.
|
|
49
|
+
|
|
50
|
+
The server returns an HTML fragment for the live output. After a failed request the form shows an inline error and enables the button for a retry.
|
|
51
|
+
|
|
52
|
+
Page assets
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<link rel="stylesheet" href="/mero.css">
|
|
56
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
57
|
+
<script defer src="/mero.js"></script>
|
|
58
|
+
<script defer src="/mero-forms.js"></script>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Template
|
|
62
|
+
|
|
63
|
+
````html
|
|
64
|
+
<form class="mero-stack" method="get" action="/demo/stock-summary" data-mero-form
|
|
65
|
+
hx-get="/demo/stock-summary" hx-target="find output">
|
|
66
|
+
<div class="mero-row">
|
|
67
|
+
<button class="mero-button mero-button-primary" type="submit">
|
|
68
|
+
<span class="mero-button-label">Check inventory</span>
|
|
69
|
+
<span class="mero-indicator mero-spinner" aria-hidden="true"></span>
|
|
70
|
+
</button>
|
|
71
|
+
<output class="mero-description mero-form-status" aria-live="polite"></output>
|
|
72
|
+
</div>
|
|
73
|
+
<p class="mero-field-error" data-mero-form-error role="alert" hidden></p>
|
|
74
|
+
</form>
|
|
75
|
+
````
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Calendar
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Date and time
|
|
4
|
+
|
|
5
|
+
Navigate months and choose a day on an inline calendar rendered by the server.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
HTMX sends the displayed month and selected date. The server returns the same calendar markup with the updated state.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
18
|
+
<script defer src="/mero.js"></script>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Template
|
|
22
|
+
|
|
23
|
+
````html
|
|
24
|
+
<div class="mero-scope" data-mero-scope>
|
|
25
|
+
<div id="demo-calendar" class="mero-calendar">
|
|
26
|
+
<div class="mero-toolbar">
|
|
27
|
+
<button class="mero-button mero-button-sm mero-button-ghost mero-button-icon" type="button" id="calendar-prev"
|
|
28
|
+
aria-label="Previous month" hx-get="/demo/catalog/calendar?month=2026-10" hx-target="closest .mero-calendar" hx-swap="outerHTML">‹</button>
|
|
29
|
+
<strong id="demo-calendar-month">November 2026</strong>
|
|
30
|
+
<button class="mero-button mero-button-sm mero-button-ghost mero-button-icon" type="button" id="calendar-next"
|
|
31
|
+
aria-label="Next month" hx-get="/demo/catalog/calendar?month=2026-12" hx-target="closest .mero-calendar" hx-swap="outerHTML">›</button>
|
|
32
|
+
</div>
|
|
33
|
+
<table class="mero-calendar-table" aria-labelledby="demo-calendar-month">
|
|
34
|
+
<thead><tr><th scope="col">Mon</th><th scope="col">Tue</th><th scope="col">Wed</th><th scope="col">Thu</th><th scope="col">Fri</th><th scope="col">Sat</th><th scope="col">Sun</th></tr></thead>
|
|
35
|
+
<tbody><tr><td></td><td></td><td></td><td></td><td></td><td></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
36
|
+
id="calendar-day-1" aria-label="Sunday, November 1, 2026" aria-pressed="false"
|
|
37
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-01" hx-target="closest .mero-calendar" hx-swap="outerHTML">1</button></td></tr>
|
|
38
|
+
<tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
39
|
+
id="calendar-day-2" aria-label="Monday, November 2, 2026" aria-pressed="false"
|
|
40
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-02" hx-target="closest .mero-calendar" hx-swap="outerHTML">2</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
41
|
+
id="calendar-day-3" aria-label="Tuesday, November 3, 2026" aria-pressed="false"
|
|
42
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-03" hx-target="closest .mero-calendar" hx-swap="outerHTML">3</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
43
|
+
id="calendar-day-4" aria-label="Wednesday, November 4, 2026" aria-pressed="false"
|
|
44
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-04" hx-target="closest .mero-calendar" hx-swap="outerHTML">4</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
45
|
+
id="calendar-day-5" aria-label="Thursday, November 5, 2026" aria-pressed="false"
|
|
46
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-05" hx-target="closest .mero-calendar" hx-swap="outerHTML">5</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
47
|
+
id="calendar-day-6" aria-label="Friday, November 6, 2026" aria-pressed="false"
|
|
48
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-06" hx-target="closest .mero-calendar" hx-swap="outerHTML">6</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
49
|
+
id="calendar-day-7" aria-label="Saturday, November 7, 2026" aria-pressed="false"
|
|
50
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-07" hx-target="closest .mero-calendar" hx-swap="outerHTML">7</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
51
|
+
id="calendar-day-8" aria-label="Sunday, November 8, 2026" aria-pressed="false"
|
|
52
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-08" hx-target="closest .mero-calendar" hx-swap="outerHTML">8</button></td></tr>
|
|
53
|
+
<tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
54
|
+
id="calendar-day-9" aria-label="Monday, November 9, 2026" aria-pressed="false"
|
|
55
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-09" hx-target="closest .mero-calendar" hx-swap="outerHTML">9</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
56
|
+
id="calendar-day-10" aria-label="Tuesday, November 10, 2026" aria-pressed="false"
|
|
57
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-10" hx-target="closest .mero-calendar" hx-swap="outerHTML">10</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
58
|
+
id="calendar-day-11" aria-label="Wednesday, November 11, 2026" aria-pressed="false"
|
|
59
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-11" hx-target="closest .mero-calendar" hx-swap="outerHTML">11</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
60
|
+
id="calendar-day-12" aria-label="Thursday, November 12, 2026" aria-pressed="false"
|
|
61
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-12" hx-target="closest .mero-calendar" hx-swap="outerHTML">12</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
62
|
+
id="calendar-day-13" aria-label="Friday, November 13, 2026" aria-pressed="false"
|
|
63
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-13" hx-target="closest .mero-calendar" hx-swap="outerHTML">13</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
64
|
+
id="calendar-day-14" aria-label="Saturday, November 14, 2026" aria-pressed="false"
|
|
65
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-14" hx-target="closest .mero-calendar" hx-swap="outerHTML">14</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
66
|
+
id="calendar-day-15" aria-label="Sunday, November 15, 2026" aria-pressed="false"
|
|
67
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-15" hx-target="closest .mero-calendar" hx-swap="outerHTML">15</button></td></tr>
|
|
68
|
+
<tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
69
|
+
id="calendar-day-16" aria-label="Monday, November 16, 2026" aria-pressed="false"
|
|
70
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-16" hx-target="closest .mero-calendar" hx-swap="outerHTML">16</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
71
|
+
id="calendar-day-17" aria-label="Tuesday, November 17, 2026" aria-pressed="false"
|
|
72
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-17" hx-target="closest .mero-calendar" hx-swap="outerHTML">17</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
73
|
+
id="calendar-day-18" aria-label="Wednesday, November 18, 2026" aria-pressed="false"
|
|
74
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-18" hx-target="closest .mero-calendar" hx-swap="outerHTML">18</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
75
|
+
id="calendar-day-19" aria-label="Thursday, November 19, 2026" aria-pressed="false"
|
|
76
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-19" hx-target="closest .mero-calendar" hx-swap="outerHTML">19</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
77
|
+
id="calendar-day-20" aria-label="Friday, November 20, 2026" aria-pressed="false"
|
|
78
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-20" hx-target="closest .mero-calendar" hx-swap="outerHTML">20</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
79
|
+
id="calendar-day-21" aria-label="Saturday, November 21, 2026" aria-pressed="false"
|
|
80
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-21" hx-target="closest .mero-calendar" hx-swap="outerHTML">21</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
81
|
+
id="calendar-day-22" aria-label="Sunday, November 22, 2026" aria-pressed="false"
|
|
82
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-22" hx-target="closest .mero-calendar" hx-swap="outerHTML">22</button></td></tr>
|
|
83
|
+
<tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
84
|
+
id="calendar-day-23" aria-label="Monday, November 23, 2026" aria-pressed="false" aria-current="date"
|
|
85
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-23" hx-target="closest .mero-calendar" hx-swap="outerHTML">23</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
86
|
+
id="calendar-day-24" aria-label="Tuesday, November 24, 2026" aria-pressed="false"
|
|
87
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-24" hx-target="closest .mero-calendar" hx-swap="outerHTML">24</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
88
|
+
id="calendar-day-25" aria-label="Wednesday, November 25, 2026" aria-pressed="false"
|
|
89
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-25" hx-target="closest .mero-calendar" hx-swap="outerHTML">25</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
90
|
+
id="calendar-day-26" aria-label="Thursday, November 26, 2026" aria-pressed="false"
|
|
91
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-26" hx-target="closest .mero-calendar" hx-swap="outerHTML">26</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
92
|
+
id="calendar-day-27" aria-label="Friday, November 27, 2026" aria-pressed="false"
|
|
93
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-27" hx-target="closest .mero-calendar" hx-swap="outerHTML">27</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
94
|
+
id="calendar-day-28" aria-label="Saturday, November 28, 2026" aria-pressed="false"
|
|
95
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-28" hx-target="closest .mero-calendar" hx-swap="outerHTML">28</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
96
|
+
id="calendar-day-29" aria-label="Sunday, November 29, 2026" aria-pressed="false"
|
|
97
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-29" hx-target="closest .mero-calendar" hx-swap="outerHTML">29</button></td></tr>
|
|
98
|
+
<tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
|
|
99
|
+
id="calendar-day-30" aria-label="Monday, November 30, 2026" aria-pressed="false"
|
|
100
|
+
hx-get="/demo/catalog/calendar?month=2026-11&selected=2026-11-30" hx-target="closest .mero-calendar" hx-swap="outerHTML">30</button></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></tbody>
|
|
101
|
+
</table>
|
|
102
|
+
<p class="mero-description" role="status">Choose a day.</p>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Card
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Layout
|
|
4
|
+
|
|
5
|
+
Group related content and an action into one compact surface.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<article class="mero-card mero-stack">
|
|
22
|
+
<strong>Starter workspace</strong>
|
|
23
|
+
<p class="mero-description">A place to plan and ship the next release.</p>
|
|
24
|
+
<a class="mero-button mero-button-secondary" href="/playground">Open playground</a>
|
|
25
|
+
</article>
|
|
26
|
+
````
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Carousel
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Media galleries
|
|
4
|
+
|
|
5
|
+
Browse product photography with native scroll snap, thumbnails and keyboard controls.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Use the arrow keys, Home or End on the strip. Touch and trackpad use native scrolling. For your own photographs, place an img in each slide and give it a descriptive alt.
|
|
12
|
+
|
|
13
|
+
Serve studio-lamp.webp for the sample image.
|
|
14
|
+
|
|
15
|
+
Page assets
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<link rel="stylesheet" href="/mero.css">
|
|
19
|
+
<link rel="stylesheet" href="/mero-gallery.css">
|
|
20
|
+
<script defer src="/mero.js"></script>
|
|
21
|
+
<script defer src="/mero-gallery.js"></script>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Template
|
|
25
|
+
|
|
26
|
+
````html
|
|
27
|
+
<mero-gallery class="mero-media-card" role="region" aria-label="Product finishes" aria-roledescription="carousel">
|
|
28
|
+
<ol class="mero-gallery-track" tabindex="0" aria-label="Product photographs">
|
|
29
|
+
<li data-mero-slide="ivory" data-label="Soft ivory">
|
|
30
|
+
<span class="mero-lamp-photo" data-finish="ivory" data-view="profile">
|
|
31
|
+
<img src="/studio-lamp.webp" alt="Arc Task Lamp, Soft ivory" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
32
|
+
</span>
|
|
33
|
+
</li>
|
|
34
|
+
<li data-mero-slide="sand" data-label="Warm sand">
|
|
35
|
+
<span class="mero-lamp-photo" data-finish="sand" data-view="profile">
|
|
36
|
+
<img src="/studio-lamp.webp" alt="Arc Task Lamp, Warm sand" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
37
|
+
</span>
|
|
38
|
+
</li>
|
|
39
|
+
<li data-mero-slide="graphite" data-label="Graphite">
|
|
40
|
+
<span class="mero-lamp-photo" data-finish="graphite" data-view="profile">
|
|
41
|
+
<img src="/studio-lamp.webp" alt="Arc Task Lamp, Graphite" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
42
|
+
</span>
|
|
43
|
+
</li>
|
|
44
|
+
</ol>
|
|
45
|
+
<div class="mero-media-caption">
|
|
46
|
+
<div><strong>Arc Task Lamp</strong><output data-mero-gallery-label aria-live="polite">Soft ivory</output></div>
|
|
47
|
+
<div class="mero-gallery-arrows">
|
|
48
|
+
<button type="button" data-mero-prev aria-label="Previous image" aria-disabled="true"><span aria-hidden="true">←</span></button>
|
|
49
|
+
<button type="button" data-mero-next aria-label="Next image"><span aria-hidden="true">→</span></button>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<form class="mero-gallery-choices">
|
|
53
|
+
<fieldset><legend>Finish</legend>
|
|
54
|
+
<label>
|
|
55
|
+
<input type="radio" name="view" data-mero-gallery-choice value="ivory" checked>
|
|
56
|
+
<span class="mero-gallery-thumb"><span class="mero-lamp-photo" data-finish="ivory" data-view="profile">
|
|
57
|
+
<img src="/studio-lamp.webp" alt="" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
58
|
+
</span></span>
|
|
59
|
+
<span>Soft ivory</span>
|
|
60
|
+
</label>
|
|
61
|
+
<label>
|
|
62
|
+
<input type="radio" name="view" data-mero-gallery-choice value="sand">
|
|
63
|
+
<span class="mero-gallery-thumb"><span class="mero-lamp-photo" data-finish="sand" data-view="profile">
|
|
64
|
+
<img src="/studio-lamp.webp" alt="" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
65
|
+
</span></span>
|
|
66
|
+
<span>Warm sand</span>
|
|
67
|
+
</label>
|
|
68
|
+
<label>
|
|
69
|
+
<input type="radio" name="view" data-mero-gallery-choice value="graphite">
|
|
70
|
+
<span class="mero-gallery-thumb"><span class="mero-lamp-photo" data-finish="graphite" data-view="profile">
|
|
71
|
+
<img src="/studio-lamp.webp" alt="" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
72
|
+
</span></span>
|
|
73
|
+
<span>Graphite</span>
|
|
74
|
+
</label>
|
|
75
|
+
</fieldset>
|
|
76
|
+
</form>
|
|
77
|
+
</mero-gallery>
|
|
78
|
+
````
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Cell Color Picker
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Workspace forms
|
|
4
|
+
|
|
5
|
+
Change one preference and receive inline confirmation from the server.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
The local endpoint validates the value and returns a status fragment. Persist it in your own settings handler.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-workspace.css">
|
|
18
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
19
|
+
<script defer src="/mero.js"></script>
|
|
20
|
+
<script defer src="/mero-workspace.js"></script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Template
|
|
24
|
+
|
|
25
|
+
````html
|
|
26
|
+
<form class="mero-ws-cell" hx-post="/demo/workspace/cell/color" hx-trigger="change" hx-target="find output" hx-sync="this:replace">
|
|
27
|
+
<label class="mero-ws-cell-row"><span><strong>Workspace accent</strong><small>Used for team labels and highlights.</small></span>
|
|
28
|
+
<input class="mero-ws-color" type="color" name="value" value="#56846f" aria-label="Workspace accent">
|
|
29
|
+
</label>
|
|
30
|
+
<output role="status" class="mero-ws-status"></output>
|
|
31
|
+
</form>
|
|
32
|
+
````
|