Import
Usage
Design Variants
Primary
Main action button with solid background color. Use for primary CTAs.Secondary
Less prominent button for secondary actions.Text
Minimal styling for tertiary actions or links.Image
Icon-only button without text label.Call to Action
Prominent CTA button with special styling.Props
Visual variant of the button. Use
primary for main actions, secondary for less emphasis, text for minimal style, image for icon-only, and call-to-action for prominent CTAs.Button size. Use
small for compact layouts.Icon element to display alongside the button text.
Position of the icon relative to the button text.
Shows animated loading spinner (Lottie animation) when true. Button is disabled during loading state.
Disables the button and reduces opacity.
Triggers success animation (Lottie checkmark). Button shows animated checkmark when true.
Delay in milliseconds before showing loading animation.
Duration in milliseconds for success animation before callback.
Time in seconds to display countdown on button. Button is disabled during countdown.
Callback fired when success animation completes.
Callback fired when countdown reaches zero.
Additional Props
The Button component extends all native HTML button attributes (onClick, type, disabled, className, style, etc.).