Slide Link
A smooth and modern link component with a slide animation effect.
Link
Slide Animation
import { SlideLink } from "@/components/ui/slide-link";
export default function Home() {
return (
<div>
<SlideLink href="#" text="Slide Link" />
</div>
);
}Installation
Paste this code in your terminal
npx shadcn@latest add https://rohitnirban.com/r/slide-link.jsonProps
| Prop | Type | Default | Required |
|---|---|---|---|
hrefThe path or URL to navigate to. | string | "#" | No |
textThe text or content to be displayed. | React.ReactNode | — | Yes |
classNameAdditional CSS classes for custom styling. | string | — | No |