Loading preview
Like Button
ButtonsA heart toggle that pops and bursts when liked, with an optional count.
A button with a light that keeps circling its border.
npx shadcn@latest add @venusui/glow-border-buttonRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/glow-border-button.tsxThe code behind the preview above.
glow-border-button-demo.tsx
import { ArrowRight } from "lucide-react"
import { GlowBorderButton } from "@/components/ui/glow-border-button"
export default function GlowBorderButtonDemo() {
return (
<GlowBorderButton>
Get early access
<ArrowRight aria-hidden="true" />
</GlowBorderButton>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | [string, string] | violet → sky | Colors of the circling light. Any CSS colors. |
All <button> props. type defaults to "button".
glow-border-spin keyframes. Works in Server Components.<a> or your router’s link.h-* and the inner px-* padding.<button> with a visible focus ring.overflow-hidden (set by default); don’t remove it.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A heart toggle that pops and bursts when liked, with an optional count.
A button that sends a ripple out from where it was pressed.
A primary button with a light sweep across its surface.