Early-bird pricing is open: 50 of 50 licenses still available. See pricing

Skip to content
popcons

Button

Primary, secondary, ghost and danger buttons with loading and success states.

Install this component

Install command hidden until you are signed in with a license.

Live demo

Props

Button props
PropTypeDescription
variant"primary" | "secondary" | "ghost" | "danger"default "primary"Visual style.
size"sm" | "md" | "lg"default "md"Height and padding.
loadingbooleanShows a spinner and blocks clicks.
successbooleanShows a check mark state.
iconReactNodeLeading decorative icon.

Accessibility

Keyboard

  • Enter / SpaceActivate
  • TabFocus

ARIA and semantics

  • Native button element
  • aria-busy and aria-disabled while loading (stays focusable)
  • Icons are aria-hidden

Source

Copy the files into your project. Or install with the commands above (they unlock with your license).

The full Button source is part of the license.

The live demo is free to try. A license unlocks copy-paste source, installs and exports for every component and pack.

Unlock every icon

More from Core components