Skip to Content
Kokonut UI

BT-03Buttons

Gradient Button

Layered gradient button with emerald, purple and orange variants, a gradient border, a soft inner glow, press feedback and an optional icon.

Install with
no extra packages

PROPay Button and more like it are in Kokonut UI Pro

Installation

Gradient 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/gradient-button.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/gradient-button

Usage

import GradientButton from "@/components/kokonutui/gradient-button";

export default function Example() {
  return <GradientButton label="Gradient Button" />;
}

Props

children
ReactNode

Button content. Takes precedence over label.

label
stringDefault "Welcome"

Fallback text when no children are passed.

icon
ReactNode

Optional icon rendered before the text (e.g. a lucide-react icon).

variant
GradientButtonVariantDefault "emerald"

Color theme.

Also takes every prop of Omit<ComponentProps<"button">, "children">.

GradientButtonVariant

type GradientButtonVariant = "emerald" | "purple" | "orange";

Dependencies

NeedsVersionComes from
buttonshadcn/ui, added by the CLI
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.