Button
Button component with multiple visual variants and built-in loading/success states.Import
Props
Visual variant:
primary for main actions, secondary for less emphasis, text for minimal style, image for icon-only, call-to-action for prominent CTAsButton size:
normal (default) or small for compact layoutsIcon element to display alongside button text
Position of the icon relative to text
Shows animated loading spinner (Lottie animation)
Disables button interaction
Triggers success animation (Lottie checkmark)
Delay in milliseconds before showing loading animation
Duration in milliseconds for success animation before callback
Time in seconds to display countdown on button
Callback fired when success animation completes
Callback fired when countdown reaches zero
Usage
Notes
- Loading and success states use Lottie animations
- Button supports all standard HTML button attributes
design="image"is typically used for icon-only buttons- Countdown feature displays remaining seconds on the button