Line Shadow Text
Line Shadow Text combines a semantic text element with an animated shadow treatment.
Practical React example
Emphasize one short heading with a directional shadow while keeping the words selectable.
Before you copy and paste
Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/line-shadow-text.tsx and its returned support files from the Code tab; preserve the project-relative paths. Include the returned styles: components/magicui/line-shadow-text.css.
Listed package dependencies: motion.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Emphasize one short heading with a directional shadow while keeping the words selectable
// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';
import { LineShadowText } from "@/components/magicui/line-shadow-text"
export function ComponentExample() {
return (
<LineShadowText>Magic UI</LineShadowText>
);
}
Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.
Use the as option to preserve the heading level required by the page and set shadowColor against the actual background.
Customization
- LineShadowTextProps.children
- Required; string.
- LineShadowTextProps.shadowColor
- Optional; string.
- LineShadowTextProps.as
- Optional; MotionElementType.
Integration notes
- Include the returned CSS; TSX alone does not supply the full treatment.
- Check long text wrapping, contrast and reduced motion before applying it beyond a short phrase.
Component source: Magic UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.