@adia-ai/web-components 0.6.6 → 0.6.8

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 (103) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/USAGE.md +286 -5
  3. package/bin/doc.mjs +379 -0
  4. package/components/accordion/accordion.examples.md +49 -0
  5. package/components/action-list/action-list.examples.md +33 -0
  6. package/components/agent-artifact/agent-artifact.examples.md +28 -0
  7. package/components/agent-feedback-bar/agent-feedback-bar.examples.md +24 -0
  8. package/components/agent-questions/agent-questions.examples.md +13 -0
  9. package/components/agent-reasoning/agent-reasoning.examples.md +28 -0
  10. package/components/agent-suggestions/agent-suggestions.examples.md +19 -0
  11. package/components/agent-trace/agent-trace.examples.md +19 -0
  12. package/components/alert/alert.examples.md +19 -0
  13. package/components/aside/aside.examples.md +38 -0
  14. package/components/avatar/avatar.examples.md +19 -0
  15. package/components/badge/badge.examples.md +19 -0
  16. package/components/block/block.examples.md +29 -0
  17. package/components/breadcrumb/breadcrumb.examples.md +32 -0
  18. package/components/button/button.examples.md +19 -0
  19. package/components/calendar-picker/calendar-picker.examples.md +23 -0
  20. package/components/canvas/canvas.examples.md +49 -0
  21. package/components/card/card.examples.md +25 -0
  22. package/components/chart/chart.examples.md +19 -0
  23. package/components/chart-legend/chart-legend.examples.md +22 -0
  24. package/components/chat-thread/chat-thread.examples.md +35 -0
  25. package/components/check/check.examples.md +19 -0
  26. package/components/code/code.examples.md +31 -0
  27. package/components/col/col.examples.md +11 -0
  28. package/components/color-input/color-input.examples.md +19 -0
  29. package/components/color-picker/color-picker.examples.md +19 -0
  30. package/components/command/command.examples.md +58 -0
  31. package/components/demo-toggle/demo-toggle.examples.md +19 -0
  32. package/components/description-list/description-list.examples.md +37 -0
  33. package/components/divider/divider.examples.md +31 -0
  34. package/components/drawer/drawer.examples.md +63 -0
  35. package/components/embed/embed.examples.md +19 -0
  36. package/components/empty-state/empty-state.examples.md +21 -0
  37. package/components/feed/feed.examples.md +19 -0
  38. package/components/field/field.examples.md +29 -0
  39. package/components/fields/fields.examples.md +58 -0
  40. package/components/footer/footer.examples.md +18 -0
  41. package/components/grid/grid.examples.md +21 -0
  42. package/components/header/header.examples.md +32 -0
  43. package/components/heatmap/heatmap.examples.md +19 -0
  44. package/components/icon/icon.examples.md +19 -0
  45. package/components/image/image.examples.md +19 -0
  46. package/components/input/input.examples.md +21 -0
  47. package/components/inspector/inspector.examples.md +27 -0
  48. package/components/kbd/kbd.examples.md +29 -0
  49. package/components/link/link.examples.md +25 -0
  50. package/components/list/list.examples.md +33 -0
  51. package/components/menu/menu.examples.md +37 -0
  52. package/components/modal/modal.examples.md +43 -0
  53. package/components/nav/nav.examples.md +39 -0
  54. package/components/nav-group/nav-group.examples.md +35 -0
  55. package/components/nav-item/nav-item.examples.md +25 -0
  56. package/components/noodles/noodles.examples.md +30 -0
  57. package/components/option-card/option-card.examples.md +47 -0
  58. package/components/otp-input/otp-input.examples.md +19 -0
  59. package/components/page/page.examples.md +46 -0
  60. package/components/pagination/pagination.examples.md +19 -0
  61. package/components/pane/pane.examples.md +40 -0
  62. package/components/pipeline-status/pipeline-status.examples.md +19 -0
  63. package/components/popover/popover.examples.md +34 -0
  64. package/components/progress/progress.examples.md +19 -0
  65. package/components/progress-row/progress-row.examples.md +19 -0
  66. package/components/radio/radio.examples.md +19 -0
  67. package/components/range/range.examples.md +19 -0
  68. package/components/rating/rating.examples.md +19 -0
  69. package/components/richtext/richtext.examples.md +19 -0
  70. package/components/row/row.examples.md +11 -0
  71. package/components/search/search.examples.md +19 -0
  72. package/components/section/section.examples.md +37 -0
  73. package/components/segment/segment.examples.md +32 -0
  74. package/components/segmented/segmented.examples.md +31 -0
  75. package/components/select/select.examples.md +49 -0
  76. package/components/skeleton/skeleton.examples.md +19 -0
  77. package/components/slider/slider.examples.md +21 -0
  78. package/components/stack/stack.examples.md +10 -0
  79. package/components/stat/stat.examples.md +19 -0
  80. package/components/step-progress/step-progress.examples.md +19 -0
  81. package/components/stepper/stepper.examples.md +37 -0
  82. package/components/stream/stream.examples.md +19 -0
  83. package/components/swatch/swatch.examples.md +23 -0
  84. package/components/swiper/swiper.examples.md +139 -0
  85. package/components/switch/switch.examples.md +19 -0
  86. package/components/table/table.examples.md +19 -0
  87. package/components/table-toolbar/table-toolbar.examples.md +12 -0
  88. package/components/tabs/tabs.examples.md +49 -0
  89. package/components/tag/tag.examples.md +19 -0
  90. package/components/text/text.examples.md +19 -0
  91. package/components/textarea/textarea.examples.md +23 -0
  92. package/components/timeline/timeline.examples.md +35 -0
  93. package/components/toast/toast.examples.md +19 -0
  94. package/components/toggle-group/toggle-group.examples.md +33 -0
  95. package/components/toggle-scheme/toggle-scheme.examples.md +19 -0
  96. package/components/toolbar/toolbar.examples.md +46 -0
  97. package/components/tooltip/tooltip.examples.md +25 -0
  98. package/components/tree/tree.examples.md +57 -0
  99. package/components/upload/upload.examples.md +19 -0
  100. package/core/template.js +236 -7
  101. package/core/template.test.js +294 -0
  102. package/custom-elements.json +9012 -0
  103. package/package.json +7 -1
@@ -0,0 +1,29 @@
1
+ # field — Examples
2
+
3
+ ## Default layout
4
+
5
+ ```html
6
+ <field-ui label="Email">
7
+ <input-ui type="email" placeholder="you@example.com"></input-ui>
8
+ </field-ui>
9
+ ```
10
+
11
+ ## Inline layout
12
+
13
+ ```html
14
+ <field-ui inline label="Search">
15
+ <input-ui type="search" placeholder="Type a command…"></input-ui>
16
+ </field-ui>
17
+ ```
18
+
19
+ ## Any form control
20
+
21
+ ```html
22
+ <field-ui label="Priority">
23
+ <select-ui>
24
+ <option value="low">Low</option>
25
+ <option value="med" selected>Medium</option>
26
+ <option value="high">High</option>
27
+ </select-ui>
28
+ </field-ui>
29
+ ```
@@ -0,0 +1,58 @@
1
+ # fields — Examples
2
+
3
+ ## default — stacked
4
+
5
+ ```html
6
+ <fields-ui>
7
+ <field-ui label="Name">
8
+ <input-ui type="text" placeholder="Jane Doe"></input-ui>
9
+ </field-ui>
10
+ <field-ui label="Email">
11
+ <input-ui type="email" placeholder="jane@example.com"></input-ui>
12
+ </field-ui>
13
+ </fields-ui>
14
+ ```
15
+
16
+ ## rows — 3-up
17
+
18
+ ```html
19
+ <fields-ui>
20
+ <field-ui label="Status" rows="2">
21
+ <select-ui value="todo">
22
+ <option value="todo">To do</option>
23
+ <option value="doing">Doing</option>
24
+ <option value="done">Done</option>
25
+ </select-ui>
26
+ </field-ui>
27
+ <field-ui label="Priority" rows="2">
28
+ <select-ui value="0">
29
+ <option value="0">Normal</option>
30
+ <option value="1">High</option>
31
+ <option value="2">Urgent</option>
32
+ </select-ui>
33
+ </field-ui>
34
+ <field-ui label="Group" rows="2">
35
+ <select-ui value="alpha">
36
+ <option value="alpha">Alpha</option>
37
+ <option value="beta">Beta</option>
38
+ </select-ui>
39
+ </field-ui>
40
+ </fields-ui>
41
+ ```
42
+
43
+ ## inline
44
+
45
+ ```html
46
+ <fields-ui inline>
47
+ <field-ui label="Search">
48
+ <input-ui type="search" placeholder="Type to search…"></input-ui>
49
+ </field-ui>
50
+ <field-ui label="Kind">
51
+ <select-ui value="all">
52
+ <option value="all">All</option>
53
+ <option value="docs">Docs</option>
54
+ <option value="components">Components</option>
55
+ </select-ui>
56
+ </field-ui>
57
+ </fields-ui>
58
+ ```
@@ -0,0 +1,18 @@
1
+ # footer — Examples
2
+
3
+ ## Basic usage
4
+
5
+ ```html
6
+ <modal-ui open>
7
+ <header-ui>
8
+ <text-ui variant="title">Confirm action</text-ui>
9
+ </header-ui>
10
+ <section-ui>
11
+ <text-ui>Are you sure?</text-ui>
12
+ </section-ui>
13
+ <footer-ui justify="end">
14
+ <button-ui text="Cancel" variant="ghost"></button-ui>
15
+ <button-ui text="Confirm" variant="solid"></button-ui>
16
+ </footer-ui>
17
+ </modal-ui>
18
+ ```
@@ -0,0 +1,21 @@
1
+ # grid — Examples
2
+
3
+ ## Basic usage
4
+
5
+ ```html
6
+ <grid-ui columns="3" gap="4">
7
+ <card-ui>…</card-ui>
8
+ <card-ui>…</card-ui>
9
+ <card-ui>…</card-ui>
10
+ </grid-ui>
11
+ ```
12
+
13
+ ## Asymmetric layouts via [span]
14
+
15
+ ```html
16
+ <!-- 2:1 split -->
17
+ <grid-ui columns="3" gap="4">
18
+ <card-ui span="2">Main panel</card-ui>
19
+ <card-ui>Side panel</card-ui>
20
+ </grid-ui>
21
+ ```
@@ -0,0 +1,32 @@
1
+ # header — Examples
2
+
3
+ ## Basic usage
4
+
5
+ ```html
6
+ <card-ui>
7
+ <header-ui>
8
+ <text-ui variant="title">Card title</text-ui>
9
+ <button-ui slot="action" icon="dots-three" variant="ghost" size="sm"></button-ui>
10
+ </header-ui>
11
+ <section-ui>
12
+ <text-ui>Card body content.</text-ui>
13
+ </section-ui>
14
+ </card-ui>
15
+ ```
16
+
17
+ ## Inside different container parents
18
+
19
+ ```html
20
+ <!-- Card: padded, bordered bottom -->
21
+ <card-ui>
22
+ <header-ui>…</header-ui>
23
+ </card-ui>
24
+ <!-- Drawer: padded, sticky -->
25
+ <drawer-ui open>
26
+ <header-ui>…</header-ui>
27
+ </drawer-ui>
28
+ <!-- Page: prose-aligned, optional sticky-header sentinel -->
29
+ <page-ui sticky-header>
30
+ <header-ui>…</header-ui>
31
+ </page-ui>
32
+ ```
@@ -0,0 +1,19 @@
1
+ # heatmap — Examples
2
+
3
+ ## day-grid (GitHub contributions)
4
+
5
+ ```html
6
+ <heatmap-ui id="hm-days" type="day-grid" rows="7" cols="52" start-date="2025-01-01" color-scheme="data-ramp"></heatmap-ui>
7
+ ```
8
+
9
+ ## matrix
10
+
11
+ ```html
12
+ <heatmap-ui id="hm-matrix" type="matrix" rows="7" cols="12" color-scheme="accent"></heatmap-ui>
13
+ ```
14
+
15
+ ## Data stream (data-stream-*)
16
+
17
+ ```html
18
+ <heatmap-ui type="matrix" rows="5" cols="4" color-scheme="accent" aria-label="Commit activity from activity.json" data-stream-src="/site/mock/activity.json"></heatmap-ui>
19
+ ```
@@ -0,0 +1,19 @@
1
+ # icon — Examples
2
+
3
+ ## name
4
+
5
+ ```html
6
+ <icon-ui name="gear"></icon-ui>
7
+ ```
8
+
9
+ ## size
10
+
11
+ ```html
12
+ <icon-ui name="star" size="xs"></icon-ui>
13
+ ```
14
+
15
+ ## label
16
+
17
+ ```html
18
+ <icon-ui name="bell" label="Notifications"></icon-ui>
19
+ ```
@@ -0,0 +1,19 @@
1
+ # image — Examples
2
+
3
+ ## Default
4
+
5
+ ```html
6
+ <image-ui src="https://picsum.photos/seed/img-demo/300/200" alt="Sample landscape" width="300" height="200"></image-ui>
7
+ ```
8
+
9
+ ## radius
10
+
11
+ ```html
12
+ <image-ui src="https://picsum.photos/seed/r-sm/150/150" alt="Small radius" width="150" height="150" radius="sm"></image-ui>
13
+ ```
14
+
15
+ ## fit
16
+
17
+ ```html
18
+ <image-ui src="https://picsum.photos/seed/fit-cover/400/200" alt="Cover" width="200" height="200" fit="cover" radius="md"></image-ui>
19
+ ```
@@ -0,0 +1,21 @@
1
+ # input — Examples
2
+
3
+ ## label
4
+
5
+ ```html
6
+ <input-ui label="Label" placeholder="Input value"></input-ui>
7
+ ```
8
+
9
+ ## size
10
+
11
+ ```html
12
+ <field-ui label="Small">
13
+ <input-ui size="sm" placeholder="Enter a value"></input-ui>
14
+ </field-ui>
15
+ ```
16
+
17
+ ## placeholder
18
+
19
+ ```html
20
+ <input-ui placeholder="Search..."></input-ui>
21
+ ```
@@ -0,0 +1,27 @@
1
+ # inspector — Examples
2
+
3
+ ## default
4
+
5
+ ```html
6
+ <inspector-ui>{
7
+ "name": "Alex",
8
+ "role": "admin",
9
+ "active": true
10
+ }</inspector-ui>
11
+ ```
12
+
13
+ ## nested
14
+
15
+ ```html
16
+ <inspector-ui>{
17
+ "user": { "id": 1, "name": "Jane" },
18
+ "settings": { "theme": "dark", "notifications": true },
19
+ "tags": ["admin", "beta"]
20
+ }</inspector-ui>
21
+ ```
22
+
23
+ ## value
24
+
25
+ ```html
26
+ <inspector-ui value="catalog"></inspector-ui>
27
+ ```
@@ -0,0 +1,29 @@
1
+ # kbd — Examples
2
+
3
+ ## Single Keys
4
+
5
+ ```html
6
+ <kbd-ui>&#8984;</kbd-ui>
7
+ ```
8
+
9
+ ## Combinations
10
+
11
+ ```html
12
+ <span style="display:inline-flex; gap:var(--a-space-1); align-items:center;">
13
+ <kbd-ui>&#8984;</kbd-ui>
14
+ <kbd-ui>K</kbd-ui>
15
+ </span>
16
+ ```
17
+
18
+ ## In-Context
19
+
20
+ ```html
21
+ <p style="margin:0;">
22
+ Press
23
+ <kbd-ui>&#8984;</kbd-ui>
24
+ <kbd-ui>K</kbd-ui>
25
+ to open the command palette, or
26
+ <kbd-ui>&#9099;</kbd-ui>
27
+ to close it.
28
+ </p>
29
+ ```
@@ -0,0 +1,25 @@
1
+ # link — Examples
2
+
3
+ ## variant
4
+
5
+ ```html
6
+ <link-ui text="Default" href="#"></link-ui>
7
+ ```
8
+
9
+ ## inline in prose
10
+
11
+ ```html
12
+ <text-ui>
13
+ I agree to the
14
+ <link-ui text="Terms of Service" href="#terms"></link-ui>
15
+ and
16
+ <link-ui text="Privacy Policy" href="#privacy"></link-ui>
17
+ .
18
+ </text-ui>
19
+ ```
20
+
21
+ ## target
22
+
23
+ ```html
24
+ <link-ui text="External link" href="https://example.com" target="_blank"></link-ui>
25
+ ```
@@ -0,0 +1,33 @@
1
+ # list — Examples
2
+
3
+ ## basic
4
+
5
+ ```html
6
+ <list-ui>
7
+ <list-item-ui text="Dashboard"></list-item-ui>
8
+ <list-item-ui text="Settings"></list-item-ui>
9
+ <list-item-ui text="Profile"></list-item-ui>
10
+ <list-item-ui text="Log out"></list-item-ui>
11
+ </list-ui>
12
+ ```
13
+
14
+ ## with icons
15
+
16
+ ```html
17
+ <list-ui>
18
+ <list-item-ui icon="house" text="Home"></list-item-ui>
19
+ <list-item-ui icon="gear" text="Settings"></list-item-ui>
20
+ <list-item-ui icon="user" text="Profile"></list-item-ui>
21
+ <list-item-ui icon="sign-out" text="Log out"></list-item-ui>
22
+ </list-ui>
23
+ ```
24
+
25
+ ## with descriptions
26
+
27
+ ```html
28
+ <list-ui>
29
+ <list-item-ui icon="envelope" text="Email" description="Receive notifications via email"></list-item-ui>
30
+ <list-item-ui icon="bell" text="Push" description="Browser push notifications"></list-item-ui>
31
+ <list-item-ui icon="chat-circle" text="SMS" description="Text message alerts"></list-item-ui>
32
+ </list-ui>
33
+ ```
@@ -0,0 +1,37 @@
1
+ # menu — Examples
2
+
3
+ ## basic
4
+
5
+ ```html
6
+ <menu-ui>
7
+ <button-ui slot="trigger" text="Actions" variant="outline"></button-ui>
8
+ <menu-item-ui text="Edit" value="edit"></menu-item-ui>
9
+ <menu-item-ui text="Duplicate" value="duplicate"></menu-item-ui>
10
+ <menu-item-ui text="Archive" value="archive"></menu-item-ui>
11
+ </menu-ui>
12
+ ```
13
+
14
+ ## with icons
15
+
16
+ ```html
17
+ <menu-ui>
18
+ <button-ui slot="trigger" icon="dots-three-vertical" variant="ghost"></button-ui>
19
+ <menu-item-ui icon="pencil" text="Edit" value="edit"></menu-item-ui>
20
+ <menu-item-ui icon="copy" text="Duplicate" value="duplicate"></menu-item-ui>
21
+ <menu-item-ui icon="download" text="Download" value="download"></menu-item-ui>
22
+ </menu-ui>
23
+ ```
24
+
25
+ ## with divider
26
+
27
+ ```html
28
+ <menu-ui>
29
+ <button-ui slot="trigger" text="File" variant="outline"></button-ui>
30
+ <menu-item-ui icon="file-plus" text="New" value="new"></menu-item-ui>
31
+ <menu-item-ui icon="folder-open" text="Open" value="open"></menu-item-ui>
32
+ <menu-item-ui icon="floppy-disk" text="Save" value="save"></menu-item-ui>
33
+ <menu-divider-ui></menu-divider-ui>
34
+ <menu-item-ui icon="export" text="Export" value="export"></menu-item-ui>
35
+ <menu-item-ui icon="printer" text="Print" value="print"></menu-item-ui>
36
+ </menu-ui>
37
+ ```
@@ -0,0 +1,43 @@
1
+ # modal — Examples
2
+
3
+ ## basic
4
+
5
+ ```html
6
+ <button-ui text="Open Modal" variant="outline" onclick="this.nextElementSibling.open=true"></button-ui>
7
+ <modal-ui text="Confirm Action">
8
+ <p>Are you sure you want to proceed? This action requires your confirmation.</p>
9
+ <div slot="footer" style="display:flex; gap:var(--a-space-2); justify-content:flex-end;">
10
+ <button-ui text="Cancel" variant="ghost" onclick="this.closest('modal-ui').open=false"></button-ui>
11
+ <button-ui text="Confirm" variant="primary" onclick="this.closest('modal-ui').open=false"></button-ui>
12
+ </div>
13
+ </modal-ui>
14
+ ```
15
+
16
+ ## size
17
+
18
+ ```html
19
+ <button-ui text="Small" variant="outline" onclick="this.nextElementSibling.open=true"></button-ui>
20
+ <modal-ui text="Small Modal" size="sm">
21
+ <p>A compact modal for simple confirmations.</p>
22
+ </modal-ui>
23
+ ```
24
+
25
+ ## text
26
+
27
+ ```html
28
+ <button-ui text="With Title" variant="outline" onclick="this.nextElementSibling.open=true"></button-ui>
29
+ <modal-ui text="Edit Profile">
30
+ <div style="display:flex; flex-direction:column; gap:var(--a-space-3);">
31
+ <field-ui label="Name">
32
+ <input-ui placeholder="Your name"></input-ui>
33
+ </field-ui>
34
+ <field-ui label="Email">
35
+ <input-ui placeholder="you@example.com"></input-ui>
36
+ </field-ui>
37
+ </div>
38
+ <div slot="footer" style="display:flex; gap:var(--a-space-2); justify-content:flex-end;">
39
+ <button-ui text="Cancel" variant="ghost" onclick="this.closest('modal-ui').open=false"></button-ui>
40
+ <button-ui text="Save" variant="primary" onclick="this.closest('modal-ui').open=false"></button-ui>
41
+ </div>
42
+ </modal-ui>
43
+ ```
@@ -0,0 +1,39 @@
1
+ # nav — Examples
2
+
3
+ ## variant — primary
4
+
5
+ ```html
6
+ <nav-ui style="width:240px;height:280px;border:1px solid var(--a-border);border-radius:var(--a-radius-md);padding:var(--a-space-2);">
7
+ <nav-item-ui text="Dashboard" icon="house" value="dashboard" selected></nav-item-ui>
8
+ <nav-item-ui text="Reports" icon="chart-bar" value="reports"></nav-item-ui>
9
+ <nav-group-ui text="Settings" icon="gear">
10
+ <nav-item-ui text="Profile" value="settings/profile"></nav-item-ui>
11
+ <nav-item-ui text="Billing" value="settings/billing"></nav-item-ui>
12
+ <nav-item-ui text="Team" value="settings/team"></nav-item-ui>
13
+ </nav-group-ui>
14
+ </nav-ui>
15
+ ```
16
+
17
+ ## variant — section
18
+
19
+ ```html
20
+ <nav-ui variant="section" heading="Documentation" style="width:240px;">
21
+ <nav-item-ui text="Overview" value="docs/overview" selected></nav-item-ui>
22
+ <nav-item-ui text="Quickstart" value="docs/quickstart"></nav-item-ui>
23
+ <nav-item-ui text="API reference" value="docs/api"></nav-item-ui>
24
+ <nav-item-ui text="Examples" value="docs/examples"></nav-item-ui>
25
+ </nav-ui>
26
+ ```
27
+
28
+ ## collapsed
29
+
30
+ ```html
31
+ <nav-ui collapsed style="width:64px;height:280px;border:1px solid var(--a-border);border-radius:var(--a-radius-md);padding:var(--a-space-2);">
32
+ <nav-item-ui text="Dashboard" icon="house" value="dashboard" selected></nav-item-ui>
33
+ <nav-item-ui text="Reports" icon="chart-bar" value="reports"></nav-item-ui>
34
+ <nav-group-ui text="Settings" icon="gear">
35
+ <nav-item-ui text="Profile" value="settings/profile"></nav-item-ui>
36
+ <nav-item-ui text="Billing" value="settings/billing"></nav-item-ui>
37
+ </nav-group-ui>
38
+ </nav-ui>
39
+ ```
@@ -0,0 +1,35 @@
1
+ # nav-group — Examples
2
+
3
+ ## text + icon
4
+
5
+ ```html
6
+ <nav-ui style="width:240px;border:1px solid var(--a-border);border-radius:var(--a-radius-md);padding:var(--a-space-2);">
7
+ <nav-group-ui text="Settings" icon="gear">
8
+ <nav-item-ui text="Profile" value="settings/profile"></nav-item-ui>
9
+ <nav-item-ui text="Billing" value="settings/billing"></nav-item-ui>
10
+ </nav-group-ui>
11
+ </nav-ui>
12
+ ```
13
+
14
+ ## badge
15
+
16
+ ```html
17
+ <nav-ui style="width:240px;border:1px solid var(--a-border);border-radius:var(--a-radius-md);padding:var(--a-space-2);">
18
+ <nav-group-ui text="Notifications" icon="bell" badge="3" open>
19
+ <nav-item-ui text="Mentions" value="notif/mentions"></nav-item-ui>
20
+ <nav-item-ui text="Follows" value="notif/follows"></nav-item-ui>
21
+ </nav-group-ui>
22
+ </nav-ui>
23
+ ```
24
+
25
+ ## variant — section
26
+
27
+ ```html
28
+ <nav-ui variant="section" style="width:240px;">
29
+ <nav-group-ui text="Reference" variant="section">
30
+ <nav-item-ui text="Components" value="ref/components"></nav-item-ui>
31
+ <nav-item-ui text="Tokens" value="ref/tokens"></nav-item-ui>
32
+ <nav-item-ui text="Patterns" value="ref/patterns"></nav-item-ui>
33
+ </nav-group-ui>
34
+ </nav-ui>
35
+ ```
@@ -0,0 +1,25 @@
1
+ # nav-item — Examples
2
+
3
+ ## text + icon
4
+
5
+ ```html
6
+ <nav-ui style="width:200px;">
7
+ <nav-item-ui text="Dashboard" value="dashboard"></nav-item-ui>
8
+ </nav-ui>
9
+ ```
10
+
11
+ ## selected
12
+
13
+ ```html
14
+ <nav-ui style="width:200px;">
15
+ <nav-item-ui text="Inbox" icon="envelope" value="inbox" selected></nav-item-ui>
16
+ </nav-ui>
17
+ ```
18
+
19
+ ## disabled
20
+
21
+ ```html
22
+ <nav-ui style="width:200px;">
23
+ <nav-item-ui text="Archived" icon="archive" value="archived" disabled></nav-item-ui>
24
+ </nav-ui>
25
+ ```
@@ -0,0 +1,30 @@
1
+ # noodles — Examples
2
+
3
+ ## curve
4
+
5
+ ```html
6
+ <noodles-ui id="noodle-bezier" style="position:relative; width:400px; height:200px; border:1px solid var(--a-border-subtle); border-radius:var(--a-radius-md);">
7
+ <div data-noodle-port="right" style="position:absolute; left:20px; top:30px; padding:var(--a-space-2) var(--a-space-3); background:var(--a-canvas-2); border:1px solid var(--a-border-subtle); border-radius:var(--a-radius-sm);">Node A</div>
8
+ <div data-noodle-port="left right" style="position:absolute; left:160px; top:90px; padding:var(--a-space-2) var(--a-space-3); background:var(--a-canvas-2); border:1px solid var(--a-border-subtle); border-radius:var(--a-radius-sm);">Node B</div>
9
+ <div data-noodle-port="left" style="position:absolute; left:300px; top:40px; padding:var(--a-space-2) var(--a-space-3); background:var(--a-canvas-2); border:1px solid var(--a-border-subtle); border-radius:var(--a-radius-sm);">Node C</div>
10
+ </noodles-ui>
11
+ ```
12
+
13
+ ## editable + show-ports
14
+
15
+ ```html
16
+ <noodles-ui id="noodle-editable" editable show-ports style="position:relative; width:400px; height:200px; border:1px solid var(--a-border-subtle); border-radius:var(--a-radius-md);">
17
+ <div data-noodle-port="right bottom" style="position:absolute; left:20px; top:30px; padding:var(--a-space-2) var(--a-space-3); background:var(--a-canvas-2); border:1px solid var(--a-border-subtle); border-radius:var(--a-radius-sm);">Source</div>
18
+ <div data-noodle-port="left right top" style="position:absolute; left:160px; top:100px; padding:var(--a-space-2) var(--a-space-3); background:var(--a-canvas-2); border:1px solid var(--a-border-subtle); border-radius:var(--a-radius-sm);">Middle</div>
19
+ <div data-noodle-port="left top" style="position:absolute; left:300px; top:40px; padding:var(--a-space-2) var(--a-space-3); background:var(--a-canvas-2); border:1px solid var(--a-border-subtle); border-radius:var(--a-radius-sm);">Target</div>
20
+ </noodles-ui>
21
+ ```
22
+
23
+ ## animated
24
+
25
+ ```html
26
+ <noodles-ui id="noodle-animated" animated style="position:relative; width:400px; height:160px; border:1px solid var(--a-border-subtle); border-radius:var(--a-radius-md);">
27
+ <div data-noodle-port="right" style="position:absolute; left:20px; top:50px; padding:var(--a-space-2) var(--a-space-3); background:var(--a-canvas-2); border:1px solid var(--a-border-subtle); border-radius:var(--a-radius-sm);">Start</div>
28
+ <div data-noodle-port="left" style="position:absolute; left:280px; top:50px; padding:var(--a-space-2) var(--a-space-3); background:var(--a-canvas-2); border:1px solid var(--a-border-subtle); border-radius:var(--a-radius-sm);">End</div>
29
+ </noodles-ui>
30
+ ```
@@ -0,0 +1,47 @@
1
+ # option-card — Examples
2
+
3
+ ## Default
4
+
5
+ ```html
6
+ <col-ui gap="2" role="radiogroup" aria-label="Demo">
7
+ <option-card-ui name="demo-1" value="build" checked heading="I'm building a product" description="Spinning up a new project — design, ship, iterate."></option-card-ui>
8
+ <option-card-ui name="demo-1" value="explore" heading="I'm exploring the product" description="Kicking the tires before bringing a team along."></option-card-ui>
9
+ <option-card-ui name="demo-1" value="migrate" heading="I'm migrating from another tool" description="Moving an existing workspace and want a smooth port."></option-card-ui>
10
+ </col-ui>
11
+ ```
12
+
13
+ ## Rich heading slot
14
+
15
+ ```html
16
+ <col-ui gap="2" role="radiogroup" aria-label="Plan">
17
+ <option-card-ui name="demo-plan" value="free" description="Up to 5 members · 10 projects · community support">
18
+ <span slot="heading">
19
+ Free
20
+ <text-ui color="subtle" size="sm">· $0/mo</text-ui>
21
+ </span>
22
+ </option-card-ui>
23
+ <option-card-ui name="demo-plan" value="pro" checked description="Unlimited members · advanced charts · 100 GB storage">
24
+ <span slot="heading">
25
+ Pro
26
+ <text-ui color="subtle" size="sm">· $49/mo</text-ui>
27
+ <badge-ui text="14-day trial" variant="accent"></badge-ui>
28
+ </span>
29
+ </option-card-ui>
30
+ <option-card-ui name="demo-plan" value="team" description="Everything in Pro · SSO · audit log · 1 TB storage">
31
+ <span slot="heading">
32
+ Team
33
+ <text-ui color="subtle" size="sm">· $129/mo</text-ui>
34
+ </span>
35
+ </option-card-ui>
36
+ </col-ui>
37
+ ```
38
+
39
+ ## With leading icon
40
+
41
+ ```html
42
+ <col-ui gap="2" role="radiogroup" aria-label="Storage">
43
+ <option-card-ui name="demo-icon" value="local" icon="hard-drive" checked heading="Local storage" description="Files stay on this device. No sync, no upload."></option-card-ui>
44
+ <option-card-ui name="demo-icon" value="cloud" icon="cloud-arrow-up" heading="Cloud storage" description="Files sync across devices and backup automatically."></option-card-ui>
45
+ <option-card-ui name="demo-icon" value="hybrid" icon="arrows-clockwise" heading="Hybrid" description="Cache locally, sync changes to the cloud in the background."></option-card-ui>
46
+ </col-ui>
47
+ ```
@@ -0,0 +1,19 @@
1
+ # otp-input — Examples
2
+
3
+ ## length
4
+
5
+ ```html
6
+ <otp-input-ui></otp-input-ui>
7
+ ```
8
+
9
+ ## disabled
10
+
11
+ ```html
12
+ <otp-input-ui disabled></otp-input-ui>
13
+ ```
14
+
15
+ ## name
16
+
17
+ ```html
18
+ <otp-input-ui name="otp"></otp-input-ui>
19
+ ```