Buttons
CreativeShimmer Button
A band of light crosses it every few seconds. It asks for attention on a primary action without blinking or pulsing.
Install
Included with Creative: needs your API key. Initialize and log in once.
npx @galactrex/ui add shimmer-buttonUsage
import { ShimmerButton } from "@/components/galactrex/shimmer-button";
<ShimmerButton onClick={start}>Start free</ShimmerButton>Source
Installs to components/galactrex/shimmer-button.tsx, with the shared motion primitives beside it.
Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Label. |
every | number | 2.6 | Seconds between passes. |
duration | number | 1.1 | Seconds per pass. |
...button props | ButtonHTMLAttributes | — | onClick, disabled, type and the rest. |
Variants
- Primary. The one action on a pricing or launch page.
Accessibility
- A real button; the light is an aria-hidden layer.
Motion and reduced motion
- One transform loop with a pause between passes.
- Reduced motion: no shimmer.