motionary 10.1.0 → 10.3.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 (290) hide show
  1. package/AGENTS.md +61 -0
  2. package/CHANGELOG.md +36 -0
  3. package/README.md +69 -0
  4. package/dist/chunks/{keyframes-CyH_abhI.js → keyframes-DVAC5sQI.js} +2 -2
  5. package/dist/chunks/{keyframes-CyH_abhI.js.map → keyframes-DVAC5sQI.js.map} +1 -1
  6. package/dist/chunks/{keyframes-cUdsXSXQ.cjs → keyframes-Dw9zwVQa.cjs} +2 -2
  7. package/dist/chunks/{keyframes-cUdsXSXQ.cjs.map → keyframes-Dw9zwVQa.cjs.map} +1 -1
  8. package/dist/chunks/{registry-jF8VIA_9.js → registry-46AAzyeC.js} +2 -2
  9. package/dist/chunks/{registry-jF8VIA_9.js.map → registry-46AAzyeC.js.map} +1 -1
  10. package/dist/chunks/{registry-C0xLNq3-.cjs → registry-CSVil2qJ.cjs} +2 -2
  11. package/dist/chunks/{registry-C0xLNq3-.cjs.map → registry-CSVil2qJ.cjs.map} +1 -1
  12. package/dist/chunks/ticker-COOYAyQy.js +70 -0
  13. package/dist/chunks/ticker-COOYAyQy.js.map +1 -0
  14. package/dist/chunks/ticker-gHv6pNfx.cjs +72 -0
  15. package/dist/chunks/ticker-gHv6pNfx.cjs.map +1 -0
  16. package/dist/chunks/{tween-JEthWrjo.cjs → tween-CFN0WcOb.cjs} +16 -73
  17. package/dist/chunks/tween-CFN0WcOb.cjs.map +1 -0
  18. package/dist/chunks/{tween-DDObu9iA.js → tween-CGyolmzB.js} +16 -72
  19. package/dist/chunks/tween-CGyolmzB.js.map +1 -0
  20. package/dist/components/core.cjs +106 -0
  21. package/dist/components/core.cjs.map +1 -1
  22. package/dist/components/core.d.cts +44 -2
  23. package/dist/components/core.d.ts +44 -2
  24. package/dist/components/core.js +105 -1
  25. package/dist/components/core.js.map +1 -1
  26. package/dist/components/widgets.cjs +602 -198
  27. package/dist/components/widgets.cjs.map +1 -1
  28. package/dist/components/widgets.d.cts +186 -2
  29. package/dist/components/widgets.d.ts +186 -2
  30. package/dist/components/widgets.js +598 -199
  31. package/dist/components/widgets.js.map +1 -1
  32. package/dist/llms-full.txt +194 -1
  33. package/dist/llms.txt +10 -2
  34. package/dist/manifest.json +492 -1
  35. package/dist/runtime/format-css.cjs +4 -3
  36. package/dist/runtime/format-css.cjs.map +1 -1
  37. package/dist/runtime/format-css.js +4 -3
  38. package/dist/runtime/format-css.js.map +1 -1
  39. package/dist/runtime/format-motion.cjs +4 -3
  40. package/dist/runtime/format-motion.cjs.map +1 -1
  41. package/dist/runtime/format-motion.js +4 -3
  42. package/dist/runtime/format-motion.js.map +1 -1
  43. package/dist/runtime/format-sprite.cjs +225 -0
  44. package/dist/runtime/format-sprite.cjs.map +1 -0
  45. package/dist/runtime/format-sprite.d.cts +224 -0
  46. package/dist/runtime/format-sprite.d.ts +224 -0
  47. package/dist/runtime/format-sprite.iife.js +2 -0
  48. package/dist/runtime/format-sprite.iife.js.map +1 -0
  49. package/dist/runtime/format-sprite.js +215 -0
  50. package/dist/runtime/format-sprite.js.map +1 -0
  51. package/dist/runtime/format-svg.cjs +457 -0
  52. package/dist/runtime/format-svg.cjs.map +1 -0
  53. package/dist/runtime/format-svg.d.cts +214 -0
  54. package/dist/runtime/format-svg.d.ts +214 -0
  55. package/dist/runtime/format-svg.iife.js +2 -0
  56. package/dist/runtime/format-svg.iife.js.map +1 -0
  57. package/dist/runtime/format-svg.js +446 -0
  58. package/dist/runtime/format-svg.js.map +1 -0
  59. package/dist/runtime/scroll.cjs +301 -0
  60. package/dist/runtime/scroll.cjs.map +1 -0
  61. package/dist/runtime/scroll.d.cts +236 -0
  62. package/dist/runtime/scroll.d.ts +236 -0
  63. package/dist/runtime/scroll.iife.js +2 -0
  64. package/dist/runtime/scroll.iife.js.map +1 -0
  65. package/dist/runtime/scroll.js +292 -0
  66. package/dist/runtime/scroll.js.map +1 -0
  67. package/dist/runtime/text.cjs +147 -0
  68. package/dist/runtime/text.cjs.map +1 -0
  69. package/dist/runtime/text.d.cts +65 -0
  70. package/dist/runtime/text.d.ts +65 -0
  71. package/dist/runtime/text.iife.js +2 -0
  72. package/dist/runtime/text.iife.js.map +1 -0
  73. package/dist/runtime/text.js +143 -0
  74. package/dist/runtime/text.js.map +1 -0
  75. package/dist/runtime.cjs +5 -4
  76. package/dist/runtime.cjs.map +1 -1
  77. package/dist/runtime.d.cts +9 -2
  78. package/dist/runtime.d.ts +9 -2
  79. package/dist/runtime.iife.js +1 -1
  80. package/dist/runtime.iife.js.map +1 -1
  81. package/dist/runtime.js +5 -4
  82. package/dist/runtime.js.map +1 -1
  83. package/dist/widgets.umd.js +1 -1
  84. package/dist/widgets.umd.js.map +1 -1
  85. package/docs/ROADMAP.md +2 -2
  86. package/docs/ai-prompt-guide.md +54 -0
  87. package/docs/components/README.md +255 -0
  88. package/docs/components/usa-accordion.md +38 -0
  89. package/docs/components/usa-acrylic.md +38 -0
  90. package/docs/components/usa-add-to-cart.md +40 -0
  91. package/docs/components/usa-ambient.md +32 -0
  92. package/docs/components/usa-anim-icon.md +34 -0
  93. package/docs/components/usa-audio.md +38 -0
  94. package/docs/components/usa-aurora.md +36 -0
  95. package/docs/components/usa-auto-animate.md +44 -0
  96. package/docs/components/usa-auto-skeleton.md +38 -0
  97. package/docs/components/usa-avatar-stack.md +38 -0
  98. package/docs/components/usa-back-to-top.md +32 -0
  99. package/docs/components/usa-badge-wall.md +39 -0
  100. package/docs/components/usa-badge.md +36 -0
  101. package/docs/components/usa-bar-chart.md +33 -0
  102. package/docs/components/usa-bg-generator.md +32 -0
  103. package/docs/components/usa-blobs.md +32 -0
  104. package/docs/components/usa-bottom-sheet.md +32 -0
  105. package/docs/components/usa-button.md +78 -0
  106. package/docs/components/usa-card-stack.md +40 -0
  107. package/docs/components/usa-card.md +94 -0
  108. package/docs/components/usa-carousel-3d.md +40 -0
  109. package/docs/components/usa-carousel.md +40 -0
  110. package/docs/components/usa-cart-drawer.md +33 -0
  111. package/docs/components/usa-chapter-nav.md +40 -0
  112. package/docs/components/usa-chat-composer.md +33 -0
  113. package/docs/components/usa-check.md +32 -0
  114. package/docs/components/usa-checkbox.md +32 -0
  115. package/docs/components/usa-click.md +36 -0
  116. package/docs/components/usa-clock-control.md +37 -0
  117. package/docs/components/usa-code-export.md +36 -0
  118. package/docs/components/usa-color-picker.md +32 -0
  119. package/docs/components/usa-command-palette.md +39 -0
  120. package/docs/components/usa-compare.md +38 -0
  121. package/docs/components/usa-countdown.md +32 -0
  122. package/docs/components/usa-counter.md +32 -0
  123. package/docs/components/usa-cube-gallery.md +40 -0
  124. package/docs/components/usa-cube.md +36 -0
  125. package/docs/components/usa-cursor.md +32 -0
  126. package/docs/components/usa-date-picker.md +32 -0
  127. package/docs/components/usa-depth.md +44 -0
  128. package/docs/components/usa-dialog.md +40 -0
  129. package/docs/components/usa-disclosure.md +38 -0
  130. package/docs/components/usa-distort.md +36 -0
  131. package/docs/components/usa-dock.md +40 -0
  132. package/docs/components/usa-dot-network.md +32 -0
  133. package/docs/components/usa-double-tap.md +36 -0
  134. package/docs/components/usa-draggable.md +38 -0
  135. package/docs/components/usa-draw.md +36 -0
  136. package/docs/components/usa-drawer.md +34 -0
  137. package/docs/components/usa-equalizer.md +33 -0
  138. package/docs/components/usa-fab.md +40 -0
  139. package/docs/components/usa-festival-banner.md +32 -0
  140. package/docs/components/usa-field.md +34 -0
  141. package/docs/components/usa-file-drop.md +35 -0
  142. package/docs/components/usa-fullpage.md +38 -0
  143. package/docs/components/usa-fx.md +851 -0
  144. package/docs/components/usa-gauge.md +32 -0
  145. package/docs/components/usa-gen-art.md +32 -0
  146. package/docs/components/usa-gesture-fx.md +36 -0
  147. package/docs/components/usa-gesture-sticker.md +36 -0
  148. package/docs/components/usa-glitch.md +32 -0
  149. package/docs/components/usa-globe.md +33 -0
  150. package/docs/components/usa-gradient-text.md +32 -0
  151. package/docs/components/usa-grain.md +36 -0
  152. package/docs/components/usa-grid-glow.md +36 -0
  153. package/docs/components/usa-gyro-card.md +38 -0
  154. package/docs/components/usa-handwriting.md +32 -0
  155. package/docs/components/usa-hero-video.md +38 -0
  156. package/docs/components/usa-hold.md +32 -0
  157. package/docs/components/usa-hud-panel.md +38 -0
  158. package/docs/components/usa-hydrate.md +42 -0
  159. package/docs/components/usa-icon-morph.md +34 -0
  160. package/docs/components/usa-install-button.md +32 -0
  161. package/docs/components/usa-kanban.md +46 -0
  162. package/docs/components/usa-keyframe-editor.md +37 -0
  163. package/docs/components/usa-kpi.md +32 -0
  164. package/docs/components/usa-leaderboard.md +41 -0
  165. package/docs/components/usa-like.md +32 -0
  166. package/docs/components/usa-liquid-nav.md +36 -0
  167. package/docs/components/usa-liquid.md +36 -0
  168. package/docs/components/usa-loading-bar.md +35 -0
  169. package/docs/components/usa-location-card.md +34 -0
  170. package/docs/components/usa-lottie-icon.md +34 -0
  171. package/docs/components/usa-lottie.md +32 -0
  172. package/docs/components/usa-lyrics.md +38 -0
  173. package/docs/components/usa-magnetic.md +32 -0
  174. package/docs/components/usa-marquee.md +38 -0
  175. package/docs/components/usa-mask-reveal.md +36 -0
  176. package/docs/components/usa-masonry-flow.md +42 -0
  177. package/docs/components/usa-masonry.md +38 -0
  178. package/docs/components/usa-menu-toggle.md +34 -0
  179. package/docs/components/usa-menu.md +44 -0
  180. package/docs/components/usa-message-list.md +39 -0
  181. package/docs/components/usa-milestones.md +40 -0
  182. package/docs/components/usa-modal.md +42 -0
  183. package/docs/components/usa-morph.md +34 -0
  184. package/docs/components/usa-motion-inspector.md +32 -0
  185. package/docs/components/usa-motion-prefs.md +32 -0
  186. package/docs/components/usa-motion-spec.md +32 -0
  187. package/docs/components/usa-motion-switch.md +34 -0
  188. package/docs/components/usa-motion-theme.md +40 -0
  189. package/docs/components/usa-motion.md +42 -0
  190. package/docs/components/usa-music-player.md +36 -0
  191. package/docs/components/usa-native-preview.md +36 -0
  192. package/docs/components/usa-nav-morph.md +40 -0
  193. package/docs/components/usa-navbar.md +36 -0
  194. package/docs/components/usa-notification-bell.md +37 -0
  195. package/docs/components/usa-odometer.md +34 -0
  196. package/docs/components/usa-organic-card.md +36 -0
  197. package/docs/components/usa-otp.md +33 -0
  198. package/docs/components/usa-overscroll.md +36 -0
  199. package/docs/components/usa-pack.md +111 -0
  200. package/docs/components/usa-pagination.md +32 -0
  201. package/docs/components/usa-panorama.md +32 -0
  202. package/docs/components/usa-particles.md +32 -0
  203. package/docs/components/usa-pause-all.md +32 -0
  204. package/docs/components/usa-perf-monitor.md +32 -0
  205. package/docs/components/usa-pinch-zoom.md +36 -0
  206. package/docs/components/usa-player.md +38 -0
  207. package/docs/components/usa-plugin-card.md +61 -0
  208. package/docs/components/usa-plugin-store.md +36 -0
  209. package/docs/components/usa-popover.md +38 -0
  210. package/docs/components/usa-post-fx.md +36 -0
  211. package/docs/components/usa-presence.md +36 -0
  212. package/docs/components/usa-press.md +32 -0
  213. package/docs/components/usa-prize-wheel.md +32 -0
  214. package/docs/components/usa-product-gallery.md +40 -0
  215. package/docs/components/usa-progress-ring.md +38 -0
  216. package/docs/components/usa-progress.md +34 -0
  217. package/docs/components/usa-prop-panel.md +34 -0
  218. package/docs/components/usa-pull-cord.md +32 -0
  219. package/docs/components/usa-pull-refresh.md +37 -0
  220. package/docs/components/usa-radar.md +32 -0
  221. package/docs/components/usa-reactions.md +32 -0
  222. package/docs/components/usa-red-envelope.md +32 -0
  223. package/docs/components/usa-retro-button.md +34 -0
  224. package/docs/components/usa-reveal.md +36 -0
  225. package/docs/components/usa-ripple.md +32 -0
  226. package/docs/components/usa-route-transition.md +38 -0
  227. package/docs/components/usa-scene.md +38 -0
  228. package/docs/components/usa-scramble.md +32 -0
  229. package/docs/components/usa-scroll-highlight.md +34 -0
  230. package/docs/components/usa-scroll-progress.md +36 -0
  231. package/docs/components/usa-scroll-scene.md +66 -0
  232. package/docs/components/usa-scrolly.md +40 -0
  233. package/docs/components/usa-segmented.md +40 -0
  234. package/docs/components/usa-shader.md +74 -0
  235. package/docs/components/usa-sheet.md +42 -0
  236. package/docs/components/usa-shimmer-text.md +32 -0
  237. package/docs/components/usa-shortcut.md +34 -0
  238. package/docs/components/usa-skeleton-reveal.md +42 -0
  239. package/docs/components/usa-skeleton.md +36 -0
  240. package/docs/components/usa-sketch-chart.md +32 -0
  241. package/docs/components/usa-slider.md +32 -0
  242. package/docs/components/usa-sparkline.md +32 -0
  243. package/docs/components/usa-spatial-card.md +40 -0
  244. package/docs/components/usa-spinner.md +34 -0
  245. package/docs/components/usa-splash.md +36 -0
  246. package/docs/components/usa-split-text.md +32 -0
  247. package/docs/components/usa-spotlight.md +40 -0
  248. package/docs/components/usa-spring.md +42 -0
  249. package/docs/components/usa-stagger.md +40 -0
  250. package/docs/components/usa-star-rating.md +34 -0
  251. package/docs/components/usa-stepper.md +42 -0
  252. package/docs/components/usa-sticky-stack.md +40 -0
  253. package/docs/components/usa-sticky-wall.md +40 -0
  254. package/docs/components/usa-stories.md +38 -0
  255. package/docs/components/usa-story.md +80 -0
  256. package/docs/components/usa-suggestion-chips.md +32 -0
  257. package/docs/components/usa-swipe-deck.md +40 -0
  258. package/docs/components/usa-swipeable.md +36 -0
  259. package/docs/components/usa-switch.md +32 -0
  260. package/docs/components/usa-tab-bar.md +46 -0
  261. package/docs/components/usa-tabs.md +40 -0
  262. package/docs/components/usa-terminal.md +38 -0
  263. package/docs/components/usa-text-rotate.md +32 -0
  264. package/docs/components/usa-text-splitter.md +60 -0
  265. package/docs/components/usa-theme-surface.md +36 -0
  266. package/docs/components/usa-theme-switcher.md +32 -0
  267. package/docs/components/usa-tilt.md +36 -0
  268. package/docs/components/usa-timeline.md +40 -0
  269. package/docs/components/usa-tip.md +44 -0
  270. package/docs/components/usa-toast-stack.md +36 -0
  271. package/docs/components/usa-toaster.md +36 -0
  272. package/docs/components/usa-typewriter.md +32 -0
  273. package/docs/components/usa-upload-progress.md +33 -0
  274. package/docs/components/usa-video-card.md +40 -0
  275. package/docs/components/usa-view-switch.md +38 -0
  276. package/docs/components/usa-voice-button.md +33 -0
  277. package/docs/components/usa-volume-knob.md +32 -0
  278. package/docs/components/usa-water-ripple.md +36 -0
  279. package/docs/components/usa-wave-text.md +32 -0
  280. package/docs/components/usa-weather-card.md +32 -0
  281. package/docs/components/usa-worker-canvas.md +32 -0
  282. package/docs/components/usa-xp-bar.md +33 -0
  283. package/docs/components.md +95 -0
  284. package/docs/runtime/format-sprite.md +60 -0
  285. package/docs/runtime/format-svg.md +62 -0
  286. package/docs/runtime/scroll.md +61 -0
  287. package/docs/runtime/text.md +59 -0
  288. package/package.json +45 -3
  289. package/dist/chunks/tween-DDObu9iA.js.map +0 -1
  290. package/dist/chunks/tween-JEthWrjo.cjs.map +0 -1
@@ -0,0 +1,34 @@
1
+ # `<usa-scroll-highlight>` — Scroll highlight
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ Words light up one by one as you read down the page, or a highlighter marker sweeps behind the text.
6
+
7
+ - **Category:** text
8
+ - **Import:** `import { defineScrollHighlight } from 'motionary/components/text'` then `defineScrollHighlight();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>`
10
+ - **Attributes:** `mode`, `text`
11
+ - **Events:** —
12
+ - **Slots:** —
13
+ - **Methods:** `mount()`
14
+ - **Source:** [src/components/text/text-fx.ts](../../src/components/text/text-fx.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-scroll-highlight>Every word lights up as you scroll.</usa-scroll-highlight>
20
+ <usa-scroll-highlight mode="marker">Important</usa-scroll-highlight>
21
+ ```
22
+
23
+ ## ES module
24
+
25
+ ```js
26
+ import { defineScrollHighlight } from 'motionary/components/text';
27
+
28
+ defineScrollHighlight(); // registers <usa-scroll-highlight>
29
+
30
+ /* then use it in your HTML:
31
+ <usa-scroll-highlight>Every word lights up as you scroll.</usa-scroll-highlight>
32
+ <usa-scroll-highlight mode="marker">Important</usa-scroll-highlight>
33
+ */
34
+ ```
@@ -0,0 +1,36 @@
1
+ # `<usa-scroll-progress>` — Scroll progress bar
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ Reading progress of the page or of one article. Compositor-only scaleX, role="progressbar".
6
+
7
+ - **Category:** reveal
8
+ - **Import:** `import { defineScrollProgress } from 'motionary/components/reveal'` then `defineScrollProgress();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>`
10
+ - **Attributes:** `target`, `label`
11
+ - **Events:** `usa:progress`
12
+ - **Slots:** —
13
+ - **Methods:** `update()`
14
+ - **Source:** [src/components/reveal/scroll-progress.ts](../../src/components/reveal/scroll-progress.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-scroll-progress></usa-scroll-progress>
20
+ <!-- or for one article -->
21
+ <usa-scroll-progress target="#post" position="bottom"></usa-scroll-progress>
22
+ ```
23
+
24
+ ## ES module
25
+
26
+ ```js
27
+ import { defineScrollProgress } from 'motionary/components/reveal';
28
+
29
+ defineScrollProgress(); // registers <usa-scroll-progress>
30
+
31
+ /* then use it in your HTML:
32
+ <usa-scroll-progress></usa-scroll-progress>
33
+ <!-- or for one article -->
34
+ <usa-scroll-progress target="#post" position="bottom"></usa-scroll-progress>
35
+ */
36
+ ```
@@ -0,0 +1,66 @@
1
+ # `<usa-scroll-scene>` — Scroll scene
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ 10.2: a scroll-linked scene — children with data-scrub="opacity: 0 -> 1; x: -80 -> 0" are tweened as you scroll, scrubbed directly or smoothed (scrub="120"), with optional pin, markers and stagger. Requires motionary/runtime/scroll — npm i motionary, then use(scroll) before the scene mounts.
6
+
7
+ - **Category:** reveal · **since** 10.2
8
+ - **Import:** `import { defineScrollScene } from 'motionary/components/widgets'` then `defineScrollScene();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>`
10
+ - **Attributes:** `start`, `end`, `scrub`, `pin`, `markers`, `stagger`, `toggle-class`, `preview`
11
+ - **Events:** `usa:enter`, `usa:leave`, `usa:progress`, `usa:runtime-missing`
12
+ - **Slots:** —
13
+ - **Methods:** `refresh()`, `timeline()`
14
+ - **Source:** [src/components/widgets/scroll-scene.ts](../../src/components/widgets/scroll-scene.ts)
15
+
16
+ ## Prerequisites — Requires: motionary/runtime/scroll
17
+
18
+ 1. **Install:** `npm i motionary`
19
+ 2. **Import order & registration:** Register the core first, then the module: use(scroll) also registers the core. CDN: load runtime.iife.js, then runtime/scroll.iife.js (it registers itself).
20
+
21
+ ```js
22
+ import { use } from 'motionary/runtime';
23
+ import { scroll } from 'motionary/runtime/scroll';
24
+ import { defineScrollScene } from 'motionary/components/widgets';
25
+
26
+ use(scroll);
27
+ defineScrollScene(); // registers <usa-scroll-scene> — after the prerequisites
28
+ ```
29
+
30
+ 3. **CDN:**
31
+
32
+ ```html
33
+ <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
34
+ <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/scroll.iife.js"></script>
35
+ <!-- then the component bundles -->
36
+ <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
37
+ <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
38
+ ```
39
+
40
+ ## Minimal example
41
+
42
+ ```html
43
+ <usa-scroll-scene start="top 80%" end="bottom 20%" scrub="120" stagger="120">
44
+ <h2 data-scrub="x: -80 -> 0; opacity: 0 -> 1">Scroll</h2>
45
+ <p data-scrub="y: 40 -> 0; opacity: 0 -> 1">and it follows.</p>
46
+ </usa-scroll-scene>
47
+ ```
48
+
49
+ ## ES module
50
+
51
+ ```js
52
+ import { use } from 'motionary/runtime';
53
+ import { scroll } from 'motionary/runtime/scroll';
54
+
55
+ use(scroll);
56
+ import { defineScrollScene } from 'motionary/components/widgets';
57
+
58
+ defineScrollScene(); // registers <usa-scroll-scene>
59
+
60
+ /* then use it in your HTML:
61
+ <usa-scroll-scene start="top 80%" end="bottom 20%" scrub="120" stagger="120">
62
+ <h2 data-scrub="x: -80 -> 0; opacity: 0 -> 1">Scroll</h2>
63
+ <p data-scrub="y: 40 -> 0; opacity: 0 -> 1">and it follows.</p>
64
+ </usa-scroll-scene>
65
+ */
66
+ ```
@@ -0,0 +1,40 @@
1
+ # `<usa-scrolly>` — Sticky scrollytelling
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ A pinned graphic while [data-step] blocks scroll past; the active step drives the graphic via attributes, a CSS variable and events.
6
+
7
+ - **Category:** reveal
8
+ - **Import:** `import { defineScrolly } from 'motionary/components/reveal'` then `defineScrolly();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>`
10
+ - **Attributes:** `offset`
11
+ - **Events:** `usa:step`
12
+ - **Slots:** —
13
+ - **Methods:** —
14
+ - **Source:** [src/components/reveal/scrolly.ts](../../src/components/reveal/scrolly.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-scrolly>
20
+ <figure data-sticky>…</figure>
21
+ <section data-step="intro">…</section>
22
+ <section data-step="detail">…</section>
23
+ </usa-scrolly>
24
+ ```
25
+
26
+ ## ES module
27
+
28
+ ```js
29
+ import { defineScrolly } from 'motionary/components/reveal';
30
+
31
+ defineScrolly(); // registers <usa-scrolly>
32
+
33
+ /* then use it in your HTML:
34
+ <usa-scrolly>
35
+ <figure data-sticky>…</figure>
36
+ <section data-step="intro">…</section>
37
+ <section data-step="detail">…</section>
38
+ </usa-scrolly>
39
+ */
40
+ ```
@@ -0,0 +1,40 @@
1
+ # `<usa-segmented>` — Segmented control
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ 6.7: an iOS-style thumb slides under the chosen segment with a spring and stretches while it travels. A real radio group: arrow keys, Home / End. iOS, pill or outline.
6
+
7
+ - **Category:** ui · **since** 6.7
8
+ - **Import:** `import { defineSegmented } from 'motionary/components/widgets'` then `defineSegmented();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>`
10
+ - **Attributes:** `variant`
11
+ - **Events:** `usa:change`
12
+ - **Slots:** —
13
+ - **Methods:** —
14
+ - **Source:** [src/components/widgets/segmented.ts](../../src/components/widgets/segmented.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-segmented variant="ios" label="View">
20
+ <button>Day</button>
21
+ <button>Week</button>
22
+ <button>Month</button>
23
+ </usa-segmented>
24
+ ```
25
+
26
+ ## ES module
27
+
28
+ ```js
29
+ import { defineSegmented } from 'motionary/components/widgets';
30
+
31
+ defineSegmented(); // registers <usa-segmented>
32
+
33
+ /* then use it in your HTML:
34
+ <usa-segmented variant="ios" label="View">
35
+ <button>Day</button>
36
+ <button>Week</button>
37
+ <button>Month</button>
38
+ </usa-segmented>
39
+ */
40
+ ```
@@ -0,0 +1,74 @@
1
+ # `<usa-shader>` — Shader background
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ A GPU shader behind your content: gradient, plasma, waves or aurora presets — or your own fragment shader in a <script type="x-shader/x-fragment">. Falls back to the CSS background.
6
+
7
+ - **Category:** webgl
8
+ - **Import:** `import { defineShader } from 'motionary/components/webgl'` then `defineShader();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>`
10
+ - **Attributes:** —
11
+ - **Events:** —
12
+ - **Slots:** —
13
+ - **Methods:** —
14
+ - **Source:** [src/components/webgl/elements.ts](../../src/components/webgl/elements.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-shader preset="aurora" speed="1">
20
+ <h1>Hero title</h1>
21
+ </usa-shader>
22
+
23
+ <usa-shader>
24
+ <script type="x-shader/x-fragment">
25
+ void main() { gl_FragColor = vec4(v_uv, 0.5 + 0.5 * sin(u_time), 1.0); }
26
+ </script>
27
+ </usa-shader>
28
+ ```
29
+
30
+ ## ES module
31
+
32
+ ```js
33
+ import { defineShader } from 'motionary/components/webgl';
34
+
35
+ defineShader(); // registers <usa-shader>
36
+
37
+ /* then use it in your HTML:
38
+ <usa-shader preset="aurora" speed="1">
39
+ <h1>Hero title</h1>
40
+ </usa-shader>
41
+
42
+ <usa-shader>
43
+ </usa-shader>
44
+ */
45
+ ```
46
+
47
+ ## Variants
48
+
49
+ ### Shader background
50
+
51
+ A GPU shader behind your content: gradient, plasma, waves or aurora presets — or your own fragment shader in a <script type="x-shader/x-fragment">. Falls back to the CSS background.
52
+
53
+ ```html
54
+ <usa-shader preset="aurora" speed="1">
55
+ <h1>Hero title</h1>
56
+ </usa-shader>
57
+
58
+ <usa-shader>
59
+ <script type="x-shader/x-fragment">
60
+ void main() { gl_FragColor = vec4(v_uv, 0.5 + 0.5 * sin(u_time), 1.0); }
61
+ </script>
62
+ </usa-shader>
63
+ ```
64
+
65
+ ### GPU particles
66
+
67
+ Particle presets (4.8) on the same single quad — snow, fireflies, a warp starfield, bokeh and rain — computed procedurally in the shader (no buffers, no per-particle JS). Adaptive: resolution steps down when fps drops, frame rate is capped on battery saver.
68
+
69
+ ```html
70
+ <usa-shader preset="snow">
71
+ <h1>Winter sale</h1>
72
+ </usa-shader>
73
+ <!-- fireflies · stars · bokeh · rain; quality="high" disables adaptive quality -->
74
+ ```
@@ -0,0 +1,42 @@
1
+ # `<usa-sheet>` — Drawer / bottom sheet
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ 6.3: a side sheet from the right, left, top or bottom with a blurred backdrop; the bottom sheet can be dragged down to dismiss and springs back otherwise. Native <dialog> underneath.
6
+
7
+ - **Category:** transitions · **since** 6.3
8
+ - **Import:** `import { defineSheet } from 'motionary/components/widgets'` then `defineSheet();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>`
10
+ - **Attributes:** —
11
+ - **Events:** —
12
+ - **Slots:** —
13
+ - **Methods:** —
14
+ - **Source:** [undefined](../../undefined)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <button data-usa-open="cart">Cart</button>
20
+ <usa-sheet id="cart" side="right" label="Cart">
21
+ <h2>Your cart</h2>
22
+ …
23
+ <button data-usa-close>Close</button>
24
+ </usa-sheet>
25
+ ```
26
+
27
+ ## ES module
28
+
29
+ ```js
30
+ import { defineSheet } from 'motionary/components/widgets';
31
+
32
+ defineSheet(); // registers <usa-sheet>
33
+
34
+ /* then use it in your HTML:
35
+ <button data-usa-open="cart">Cart</button>
36
+ <usa-sheet id="cart" side="right" label="Cart">
37
+ <h2>Your cart</h2>
38
+ …
39
+ <button data-usa-close>Close</button>
40
+ </usa-sheet>
41
+ */
42
+ ```
@@ -0,0 +1,32 @@
1
+ # `<usa-shimmer-text>` — Shimmer text
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ A light sweep across gradient-filled text. CSS only; colours and speed via attributes or custom properties.
6
+
7
+ - **Category:** text
8
+ - **Import:** `import { defineShimmerText } from 'motionary/components/text'` then `defineShimmerText();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>`
10
+ - **Attributes:** `duration`, `color`, `shine`, `angle`
11
+ - **Events:** —
12
+ - **Slots:** —
13
+ - **Methods:** —
14
+ - **Source:** [src/components/text/shimmer-text.ts](../../src/components/text/shimmer-text.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-shimmer-text shine="#fff">Premium</usa-shimmer-text>
20
+ ```
21
+
22
+ ## ES module
23
+
24
+ ```js
25
+ import { defineShimmerText } from 'motionary/components/text';
26
+
27
+ defineShimmerText(); // registers <usa-shimmer-text>
28
+
29
+ /* then use it in your HTML:
30
+ <usa-shimmer-text shine="#fff">Premium</usa-shimmer-text>
31
+ */
32
+ ```
@@ -0,0 +1,34 @@
1
+ # `<usa-shortcut>` — Shortcut hint
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ 7.9: keyboard-shortcut hints as keycaps (⌘ on Apple, Ctrl elsewhere); press the combination anywhere and the caps press down one after another and usa:trigger fires.
6
+
7
+ - **Category:** ui · **since** 7.9
8
+ - **Import:** `import { defineShortcut } from 'motionary/components/widgets'` then `defineShortcut();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>`
10
+ - **Attributes:** `keys`, `label`, `listen`, `for`
11
+ - **Events:** `usa:trigger`
12
+ - **Slots:** —
13
+ - **Methods:** `press()`
14
+ - **Source:** [src/components/widgets/shortcut.ts](../../src/components/widgets/shortcut.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-shortcut keys="mod+k" label="Search"></usa-shortcut>
20
+ <usa-shortcut keys="mod+shift+p" for="palette-button"></usa-shortcut>
21
+ ```
22
+
23
+ ## ES module
24
+
25
+ ```js
26
+ import { defineShortcut } from 'motionary/components/widgets';
27
+
28
+ defineShortcut(); // registers <usa-shortcut>
29
+
30
+ /* then use it in your HTML:
31
+ <usa-shortcut keys="mod+k" label="Search"></usa-shortcut>
32
+ <usa-shortcut keys="mod+shift+p" for="palette-button"></usa-shortcut>
33
+ */
34
+ ```
@@ -0,0 +1,42 @@
1
+ # `<usa-skeleton-reveal>` — Skeleton → content reveal
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ 6.4: the skeleton is generated from the real content — one bar per rendered text line, blocks for images and marked elements — with one synchronized shimmer (wave, pulse or glow). Remove loading and the bars dissolve top-to-bottom while the content fades in from a blur.
6
+
7
+ - **Category:** feedback · **since** 6.4
8
+ - **Import:** `import { defineSkeletonReveal } from 'motionary/components/widgets'` then `defineSkeletonReveal();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>`
10
+ - **Attributes:** `loading`, `variant`
11
+ - **Events:** `usa:reveal`
12
+ - **Slots:** —
13
+ - **Methods:** `reveal()`
14
+ - **Source:** [src/components/widgets/skeleton-reveal.ts](../../src/components/widgets/skeleton-reveal.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-skeleton-reveal loading variant="wave">
20
+ <img src="avatar.jpg" alt="" data-skeleton="circle">
21
+ <h3>Ada Lovelace</h3>
22
+ <p>…</p>
23
+ </usa-skeleton-reveal>
24
+ <!-- el.loading = false (or el.reveal()) when the data arrived -->
25
+ ```
26
+
27
+ ## ES module
28
+
29
+ ```js
30
+ import { defineSkeletonReveal } from 'motionary/components/widgets';
31
+
32
+ defineSkeletonReveal(); // registers <usa-skeleton-reveal>
33
+
34
+ /* then use it in your HTML:
35
+ <usa-skeleton-reveal loading variant="wave">
36
+ <img src="avatar.jpg" alt="" data-skeleton="circle">
37
+ <h3>Ada Lovelace</h3>
38
+ <p>…</p>
39
+ </usa-skeleton-reveal>
40
+ <!-- el.loading = false (or el.reveal()) when the data arrived -->
41
+ */
42
+ ```
@@ -0,0 +1,36 @@
1
+ # `<usa-skeleton>` — Skeleton
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ Shimmering placeholders while loading; remove loading and the real content fades in. aria-busy included.
6
+
7
+ - **Category:** feedback
8
+ - **Import:** `import { defineSkeleton } from 'motionary/components/feedback'` then `defineSkeleton();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>`
10
+ - **Attributes:** `loading`, `lines`, `width`, `height`, `circle`, `avatar`, `radius`
11
+ - **Events:** `usa:loaded`
12
+ - **Slots:** —
13
+ - **Methods:** —
14
+ - **Source:** [src/components/feedback/skeleton.ts](../../src/components/feedback/skeleton.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-skeleton loading avatar lines="3">
20
+ <article>…</article>
21
+ </usa-skeleton>
22
+ ```
23
+
24
+ ## ES module
25
+
26
+ ```js
27
+ import { defineSkeleton } from 'motionary/components/feedback';
28
+
29
+ defineSkeleton(); // registers <usa-skeleton>
30
+
31
+ /* then use it in your HTML:
32
+ <usa-skeleton loading avatar lines="3">
33
+ <article>…</article>
34
+ </usa-skeleton>
35
+ */
36
+ ```
@@ -0,0 +1,32 @@
1
+ # `<usa-sketch-chart>` — Sketch chart
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ 8.5: a hand-drawn chart — wobbly pencil axes with hatched bars or a sketchy line, sketched in stroke by stroke when it scrolls into view.
6
+
7
+ - **Category:** ui · **since** 8.5
8
+ - **Import:** `import { defineSketchChart } from 'motionary/components/widgets'` then `defineSketchChart();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>`
10
+ - **Attributes:** `values`, `labels`, `type`, `color`, `label`
11
+ - **Events:** `usa:drawn`
12
+ - **Slots:** —
13
+ - **Methods:** `setValues()`, `redraw()`
14
+ - **Source:** [src/components/widgets/sketch-chart.ts](../../src/components/widgets/sketch-chart.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-sketch-chart values="3,7,5,9" labels="Q1,Q2,Q3,Q4" label="Revenue"></usa-sketch-chart>
20
+ ```
21
+
22
+ ## ES module
23
+
24
+ ```js
25
+ import { defineSketchChart } from 'motionary/components/widgets';
26
+
27
+ defineSketchChart(); // registers <usa-sketch-chart>
28
+
29
+ /* then use it in your HTML:
30
+ <usa-sketch-chart values="3,7,5,9" labels="Q1,Q2,Q3,Q4" label="Revenue"></usa-sketch-chart>
31
+ */
32
+ ```
@@ -0,0 +1,32 @@
1
+ # `<usa-slider>` — Slider
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ A form-associated range slider: spring-following thumb, value bubble, full keyboard support (arrows, Page Up/Down, Home/End).
6
+
7
+ - **Category:** ui
8
+ - **Import:** `import { defineSlider } from 'motionary/components/ui'` then `defineSlider();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>`
10
+ - **Attributes:** `min`, `max`, `disabled`, `label`
11
+ - **Events:** `usa:input`, `usa:change`
12
+ - **Slots:** —
13
+ - **Methods:** —
14
+ - **Source:** [src/components/ui/slider.ts](../../src/components/ui/slider.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-slider name="volume" value="40" bubble label="Volume"></usa-slider>
20
+ ```
21
+
22
+ ## ES module
23
+
24
+ ```js
25
+ import { defineSlider } from 'motionary/components/ui';
26
+
27
+ defineSlider(); // registers <usa-slider>
28
+
29
+ /* then use it in your HTML:
30
+ <usa-slider name="volume" value="40" bubble label="Volume"></usa-slider>
31
+ */
32
+ ```
@@ -0,0 +1,32 @@
1
+ # `<usa-sparkline>` — Sparkline
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ 7.2: a tiny inline trend — draws itself on first view, a soft area fades in, the last point pulses and new data morphs the line point by point. line | area | bars; hover shows the value.
6
+
7
+ - **Category:** ui · **since** 7.2
8
+ - **Import:** `import { defineSparkline } from 'motionary/components/widgets'` then `defineSparkline();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>`
10
+ - **Attributes:** `variant`, `color`
11
+ - **Events:** —
12
+ - **Slots:** —
13
+ - **Methods:** —
14
+ - **Source:** [src/components/widgets/sparkline.ts](../../src/components/widgets/sparkline.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-sparkline values="3,5,4,8,6,9,12" variant="area"></usa-sparkline>
20
+ ```
21
+
22
+ ## ES module
23
+
24
+ ```js
25
+ import { defineSparkline } from 'motionary/components/widgets';
26
+
27
+ defineSparkline(); // registers <usa-sparkline>
28
+
29
+ /* then use it in your HTML:
30
+ <usa-sparkline values="3,5,4,8,6,9,12" variant="area"></usa-sparkline>
31
+ */
32
+ ```
@@ -0,0 +1,40 @@
1
+ # `<usa-spatial-card>` — Spatial card
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ 8.8: a spatial-computing window — frosted glass floating in depth, a soft gaze highlight that follows the pointer, layered content and an ornament bar; it eases towards you on hover and sinks on press.
6
+
7
+ - **Category:** ui · **since** 8.8
8
+ - **Import:** `import { defineSpatialCard } from 'motionary/components/widgets'` then `defineSpatialCard();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>`
10
+ - **Attributes:** —
11
+ - **Events:** `usa:focus-depth`
12
+ - **Slots:** —
13
+ - **Methods:** —
14
+ - **Source:** [src/components/widgets/spatial-card.ts](../../src/components/widgets/spatial-card.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-spatial-card>
20
+ <h3 data-depth="2">Photos</h3>
21
+ <p data-depth="1">Spatial window</p>
22
+ <nav slot="ornament"><button>⟲</button><button>♡</button></nav>
23
+ </usa-spatial-card>
24
+ ```
25
+
26
+ ## ES module
27
+
28
+ ```js
29
+ import { defineSpatialCard } from 'motionary/components/widgets';
30
+
31
+ defineSpatialCard(); // registers <usa-spatial-card>
32
+
33
+ /* then use it in your HTML:
34
+ <usa-spatial-card>
35
+ <h3 data-depth="2">Photos</h3>
36
+ <p data-depth="1">Spatial window</p>
37
+ <nav slot="ornament"><button>⟲</button><button>♡</button></nav>
38
+ </usa-spatial-card>
39
+ */
40
+ ```
@@ -0,0 +1,34 @@
1
+ # `<usa-spinner>` — Spinners
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ Six indeterminate indicators: the WinUI progress ring, the Windows 10 orbiting dots, ring, typing dots, pulse and bars.
6
+
7
+ - **Category:** feedback
8
+ - **Import:** `import { defineSpinner } from 'motionary/components/feedback'` then `defineSpinner();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>`
10
+ - **Attributes:** `kind`, `size`, `label`
11
+ - **Events:** —
12
+ - **Slots:** —
13
+ - **Methods:** —
14
+ - **Source:** [src/components/feedback/spinner.ts](../../src/components/feedback/spinner.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-spinner kind="fluent"></usa-spinner>
20
+ <usa-spinner kind="windows" size="40"></usa-spinner>
21
+ ```
22
+
23
+ ## ES module
24
+
25
+ ```js
26
+ import { defineSpinner } from 'motionary/components/feedback';
27
+
28
+ defineSpinner(); // registers <usa-spinner>
29
+
30
+ /* then use it in your HTML:
31
+ <usa-spinner kind="fluent"></usa-spinner>
32
+ <usa-spinner kind="windows" size="40"></usa-spinner>
33
+ */
34
+ ```