{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "shimmer-button",
  "type": "registry:item",
  "title": "Shimmer Button",
  "description": "A primary button with a band of light sweeping across it, for the one action that should draw the eye. A native <button> (or a link with `href`), so forms and keyboards work; the sweep pauses on hover and stops under reduced motion.",
  "dependencies": [
    "@zubra/runtime@^5.13.1"
  ],
  "categories": [
    "motion"
  ],
  "registryDependencies": [
    "https://zubra-js.github.io/zubra-ui/r/theme.json"
  ],
  "files": [
    {
      "path": "components/shimmer-button.js",
      "type": "registry:file",
      "target": "~/src/components/zubra/shimmer-button.js",
      "content": "// Generated by zubra from shimmer-button.zb. Do not edit.\nimport { $define, $r, $t } from \"@zubra/runtime\";\n\nexport const tag = \"shimmer-button\";\n\nexport default $define(tag, {\n  props: {\n    \"type\": { attribute: \"type\", default: \"button\", required: false },\n    \"href\": { attribute: \"href\", default: \"\", required: false },\n    \"name\": { attribute: \"name\", default: \"\", required: false },\n    \"value\": { attribute: \"value\", default: \"\", required: false },\n    \"disabled\": { attribute: \"disabled\", default: false, required: false },\n  },\n  abi: 3,\n  shadow: false,\n  form: false,\n  slots: [\"default\"],\n  events: [],\n  roots: [\"a\", \"button\"],\n  styled: true,\n  styles: \"@layer theme, base, components, utilities;\\n@layer components {\\n@scope (shimmer-button) to ([data-zb-slotted=\\\"shimmer-button\\\"]) {\\n  :scope { display: inline-block; }\\n  .shimmer { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.6rem; padding: 0 1.25rem; border: 0; border-radius: calc(var(--radius, 0.625rem) * 0.8); background: var(--primary, #18181b); color: var(--primary-foreground, #fafafa); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px #0000001a, inset 0 1px 0 #ffffff26; transition: translate var(--duration-fast, 150ms) var(--ease-out, ease-out), box-shadow var(--duration-fast, 150ms) var(--ease-out, ease-out); }\\n  .shimmer::before { content: \\\"\\\"; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, color-mix(in oklab, var(--primary-foreground, #fafafa) 28%, transparent) 50%, transparent 65%); translate: -100% 0; animation: shimmer-sweep 3s var(--ease-in-out, ease-in-out) infinite; }\\n  .shimmer:hover { translate: 0 -1px; box-shadow: 0 6px 16px #00000026, inset 0 1px 0 #ffffff26; }\\n  .shimmer:hover::before { animation-play-state: paused; }\\n  .shimmer:active { translate: 0 0; }\\n  .shimmer:focus-visible { outline: 2px solid var(--ring, #a1a1aa); outline-offset: 2px; }\\n  .shimmer:disabled { opacity: 0.55; cursor: not-allowed; }\\n  .shimmer:disabled::before { animation: none; }\\n  @keyframes shimmer-sweep { 0% { translate: -100% 0; } 55%, 100% { translate: 100% 0; } }\\n  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; } .shimmer::before { animation: none; } }\\n}\\n}\\n\",\n  template: \"\\n  <!--[--><!--]-->\\n\",\n  setup($p, $emit) {\n    return [\n      { path: [0], when: () => $p.href, blocks: [{ template: \"<a class=\\\"shimmer\\\"><!--[--><!--]--></a>\", parts: () => [{ path: [0], attribute: \"href\", url: true, value: () => $p.href }, { path: [0, 0], slot: \"default\", fallback: null }] }, { template: \"<button class=\\\"shimmer\\\"><!--[--><!--]--></button>\", parts: () => [{ path: [0], attribute: \"type\", value: () => $p.type }, { path: [0], attribute: \"name\", value: () => ($p.name || null) }, { path: [0], attribute: \"value\", value: () => ($p.value || null) }, { path: [0], attribute: \"disabled\", boolean: true, value: () => $p.disabled }, { path: [0, 0], slot: \"default\", fallback: null }] }] },\n    ];\n  },\n});\n"
    }
  ]
}
