BT-08Buttons
Slide Text Button
Animated link button with a vertical text slide on hover and default and ghost variants, built with React, Next.js Link, and Tailwind CSS.
no extra packages
PROPay Button and more like it are in Kokonut UI Pro
Installation
Slide Text Button is a free, open-source React component in the Kokonut UI Buttons collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/slide-text-button.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/slide-text-buttonUsage
import SlideTextButton from "@/components/kokonutui/slide-text-button";
export default function Example() {
return <SlideTextButton hoverText="Click to see more" />;
}Props
textstringDefault "Browse Components"hoverTextstringhrefstringDefault "/docs"classNamestringExtra classes for the root element.
variant"default" | "ghost"Default "default"animateInbooleanDefault trueFades and slides the button in when it mounts.
Also takes every prop of React.AnchorHTMLAttributes<HTMLAnchorElement>.
Dependencies
| Needs | Version | Comes from |
|---|---|---|
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

