Skip to content
Primitives

Button

A versatile button component with five variants, three sizes, loading state, and icon support.

Preview:
1280px

Props

PropTypeDefaultDescription
variant'primary' | 'secondary' | 'ghost' | 'destructive' | 'outline''primary'Visual style of the button.
size'sm' | 'md' | 'lg''md'Controls padding and font size.
loadingbooleanfalseShows a spinner and disables interaction.
disabledbooleanfalsePrevents clicks and applies muted styling.
iconReactNode-Icon element shown before label.
onClick() => void-Click handler.