{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"skeleton-shimmer","type":"registry:component","title":"Skeleton Shimmer Loader","description":"Loading-state placeholder blocks with a light sweep animating across them.","dependencies":[],"registryDependencies":[],"files":[{"path":"components/viberdy/skeleton-shimmer.tsx","content":"\"use client\";\n\nexport function SkeletonShimmer({ rows = 3, avatar = true, speed = 1.6 }: {\n  rows?: number;\n  avatar?: boolean;\n  speed?: number;\n}) {\n  return (\n    <div\n      role=\"status\"\n      aria-busy=\"true\"\n      className=\"flex w-full max-w-sm items-start gap-3\"\n      style={{ \"--shimmer-speed\": `${speed}s` } as React.CSSProperties}\n    >\n      <span className=\"sr-only\">Loading…</span>\n      {avatar && <div className=\"shimmer h-11 w-11 shrink-0 rounded-full bg-neutral-200\" />}\n      <div className=\"flex flex-1 flex-col gap-2.5 pt-1\">\n        {Array.from({ length: rows }).map((_, i) => (\n          <div\n            key={i}\n            className=\"shimmer h-3 rounded-full bg-neutral-200\"\n            style={{ width: i === rows - 1 ? \"60%\" : \"100%\" }}\n          />\n        ))}\n      </div>\n      {/* speed comes in via the --shimmer-speed CSS variable set above, not\n          a ${speed}s template interpolation inside this style block —\n          interpolating directly into styled-jsx here compiles to a literal\n          0s animation-duration, so the block stays fully static. */}\n      <style jsx>{`\n        .shimmer { position: relative; overflow: hidden; }\n        .shimmer::after {\n          content: \"\";\n          position: absolute;\n          inset: 0;\n          transform: translateX(-100%);\n          background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7) 50%, transparent);\n          animation: shimmer-sweep var(--shimmer-speed, 1.6s) ease-in-out infinite;\n        }\n        @keyframes shimmer-sweep {\n          100% { transform: translateX(100%); }\n        }\n      `}</style>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/viberdy/skeleton-shimmer.tsx"}],"meta":{"tier":"free","tags":["skeleton","loading","shimmer","placeholder"],"href":"https://viberdy.dev/library/skeleton-shimmer","aiPrompt":"Create a React + Tailwind \"skeleton shimmer loader\" asset named SkeletonShimmer.\n\nBehavior:\n- Renders placeholder blocks (a circular avatar block + N rounded text-line blocks, last line shorter to look like a natural line-wrap) each with a flat neutral background color representing \"loading\" content.\n- Every placeholder block shares a class whose ::after pseudo-element is an absolutely-positioned inset-0 overlay with a horizontal linear-gradient (transparent → semi-opaque light → transparent) that continuously sweeps left-to-right via a @keyframes translateX animation (starting at -100%, animating to 100%), ease-in-out, infinite.\n- Each block needs position: relative + overflow: hidden so the sweeping ::after is clipped to that block's own rounded shape rather than sweeping across the whole row as one rectangle.\n- Props: rows (number of text-line placeholders), avatar (boolean, show/hide the circular block), speed (seconds per sweep).\n- Pure CSS — no JavaScript animation loop, no useState/useEffect needed.\n\nStyle: flat neutral gray blocks, fully rounded pill-shaped lines, soft shimmer highlight — the standard \"content is loading\" pattern seen in most modern apps, but implemented cleanly with one shared shimmer class rather than duplicated per-block CSS.\n\nOutput a single self-contained component using only CSS keyframes via inline styled-jsx (or equivalent scoped styles) for the sweep — no JS timers.","license":"https://viberdy.dev/license"}}