Button
The primary button component for triggering actions in your application. Supports multiple variants, sizes, icons, and loading states.Import
Basic Usage
With Icon
Variants
Sizes
Loading State
Button Props
Button text content
Callback fired when the button is clicked
Button variant type. Options:
Type.PRIMARY- Primary action button with solid backgroundType.SECONDARY- Secondary action button with outlined styleType.TERTIARY- Tertiary action button with minimal stylingType.DESTRUCTIVE- Destructive action button (e.g., delete)
Button size. Options:
Size.SMALL, Size.MEDIUM, Size.LARGEIcon to display at the start of the button
Shows a loading spinner. The button remains clickable unless also disabled
Disables the button, preventing clicks and showing disabled state
Controls the active/selected state of the button
Makes the button expand to fill its container width
Applies compact styling with reduced padding
Floats the button to the right of its container
Tooltip text displayed on hover
Overrides the current theme (light/dark)
Custom CSS class name for styling
Inline styles for customization
HTML id attribute
Test identifier for end-to-end tests
IconButton
A button component that displays only an icon, useful for compact UIs and toolbars.Basic Usage
With Tooltip
Variants
IconButton Props
Icon to display in the button
Callback fired when the button is clicked
Button size. Options:
Size.SMALL, Size.MEDIUM, Size.LARGEButton type for coloring. Options:
Type.PRIMARY, Type.SECONDARY, Type.TERTIARY, Type.DESTRUCTIVEVisual variant. Options:
FilledVariant.FILLED- Solid backgroundFilledVariant.UNFILLED- Transparent background
Disables the button
Controls the active/selected state
Tooltip content displayed on hover
Overrides the current theme
Framer Motion animation properties for the icon
Custom CSS class name
Inline styles
HTML id attribute
Test identifier for e2e tests