Loading preview
Glow Border Button
ButtonsA button with a light that keeps circling its border.
A primary button with a light sweep across its surface.
npx shadcn@latest add @venusui/shimmer-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/shimmer-button.tsxThe code behind the preview above.
shimmer-button-demo.tsx
import { ArrowRight } from "lucide-react"
import { ShimmerButton } from "@/components/ui/shimmer-button"
export default function ShimmerButtonDemo() {
return (
<ShimmerButton>
Get started
<ArrowRight />
</ShimmerButton>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| type | "button" | "submit" | "reset" | "button" | Defaults to button so it never submits a form by accident. Pass type="submit" inside forms. |
All <button> props, including className, disabled, onClick and ref.
shimmer keyframes and the --animate-shimmer theme variable to your CSS.cn helper at @/lib/utils.--animate-shimmer in your CSS, e.g. shimmer 4s linear infinite.--primary and --primary-foreground. Change those, or override with className.size-* class.<button>, so keyboard and screen reader support work as usual. Give icon-only buttons an aria-label.shimmer keyframes or --animate-shimmer. The CLI adds them; after a manual install, copy the CSS from the Manual tab.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 button with a light that keeps circling its border.
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.