Skip to Content
Kokonut UI

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.

Install with
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-button

Usage

import SlideTextButton from "@/components/kokonutui/slide-text-button";

export default function Example() {
  return <SlideTextButton hoverText="Click to see more" />;
}

Props

text
stringDefault "Browse Components"
hoverText
string
href
stringDefault "/docs"
className
string

Extra classes for the root element.

variant
"default" | "ghost"Default "default"
animateIn
booleanDefault true

Fades and slides the button in when it mounts.

Also takes every prop of React.AnchorHTMLAttributes<HTMLAnchorElement>.

Dependencies

NeedsVersionComes from
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.