import { TextShimmerV2 } from "./text-shimmer-v2" const docs = `### Overview Animated shimmer effect for loading text placeholders. ### API - Required: \`text\` string. - Optional: \`as\`, \`active\`, \`offset\`, \`class\`. ### Behavior - Uses a moving gradient sweep clipped to text. - \`offset\` lets multiple shimmers run out-of-phase. ### Accessibility - Uses \`aria-label\` with the full text. ### Theming - Uses \`data-component="text-shimmer-v2"\` and CSS custom properties for timing and colors. ` export default { title: "UI V2/TextShimmer", id: "components-text-shimmer-v2", component: TextShimmerV2, tags: ["autodocs"], parameters: { frameBackground: "#fff", layout: "padded", docs: { description: { component: docs, }, }, }, } export const Active = { render: () => ( ), } export const Inactive = { render: () => ( ), } export const WithOffset = { render: () => (
), }