{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"line-shadow-text","type":"registry:ui","title":"LineShadowText","description":"Text with animated diagonal line shadow pattern that scrolls continuously","author":"fancy-ui <https://fancy-ui.rama.app>","categories":["text"],"registryDependencies":["https://fancy-ui.rama.app/r/utils.json"],"files":[{"path":"react/src/components/line-shadow-text/LineShadowText.tsx","content":"\"use client\";\n\nimport { type ElementType } from \"react\";\nimport { cn } from \"../../utils\";\nimport \"./line-shadow-text.css\";\n\n/**\n * LineShadowText - Text with a diagonal-hatched drop shadow duplicate\n *\n * Renders the given text once, plus a `::after` duplicate offset slightly\n * below and to the right, clipped to a diagonal line pattern and slowly\n * panned to suggest a shifting shadow.\n */\nexport interface LineShadowTextProps {\n\t/** Text to display (and to duplicate into the shadow layer) */\n\ttext: string;\n\t/** Color of the shadow's diagonal lines */\n\tshadowColor?: string;\n\t/** Element type to render */\n\tas?: \"span\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\" | \"div\";\n\t/** Additional CSS classes */\n\tclassName?: string;\n}\n\nexport function LineShadowText({\n\ttext,\n\tshadowColor = \"black\",\n\tas = \"span\",\n\tclassName,\n}: LineShadowTextProps) {\n\tconst Element = as as ElementType;\n\tconst style = { \"--shadow-color\": shadowColor } as React.CSSProperties;\n\n\treturn (\n\t\t<Element\n\t\t\tclassName={cn(\"line-shadow-text relative z-0 inline-block\", className)}\n\t\t\tstyle={style}\n\t\t\tdata-text={text}\n\t\t>\n\t\t\t{text}\n\t\t</Element>\n\t);\n}\n","type":"registry:ui","target":"@ui/fancy/components/line-shadow-text/LineShadowText.tsx"},{"path":"react/src/components/line-shadow-text/index.ts","content":"\"use client\";\n\nexport { LineShadowText } from \"./LineShadowText\";\nexport type { LineShadowTextProps } from \"./LineShadowText\";\n","type":"registry:ui","target":"@ui/fancy/components/line-shadow-text/index.ts"},{"path":"react/src/components/line-shadow-text/line-shadow-text.css","content":"@keyframes line-shadow {\n\t0% {\n\t\tbackground-position: 0 0;\n\t}\n\t100% {\n\t\tbackground-position: 100% -100%;\n\t}\n}\n\n.line-shadow-text::after {\n\tcontent: attr(data-text);\n\tposition: absolute;\n\ttop: 0.04em;\n\tleft: 0.04em;\n\tz-index: -10;\n\tbackground-image: linear-gradient(\n\t\t45deg,\n\t\ttransparent 45%,\n\t\tvar(--shadow-color) 45%,\n\t\tvar(--shadow-color) 55%,\n\t\ttransparent 0\n\t);\n\tbackground-size: 0.06em 0.06em;\n\t-webkit-background-clip: text;\n\tbackground-clip: text;\n\tcolor: transparent;\n\tanimation: line-shadow 15s linear infinite;\n}\n","type":"registry:ui","target":"@ui/fancy/components/line-shadow-text/line-shadow-text.css"}],"meta":{"license":"MIT","package":"fancy-ui-react","version":"0.7.0","source":"https://fancy-ui.rama.app/docs/components/line-shadow-text?framework=react"}}