Button
Trigger actions with a single click.
Installation
pnpm add @base-ui/reactExamples
Free, accessible React button components built with Base UI for actions, forms, and navigation with primary, secondary, and ghost variants.
Base
Secondary
A neutral style for less prominent actions.
Subtle
A subtle background style with danger hover effect.
Danger
A high-contrast style for destructive actions.
Outlined
A bordered style with a transparent background.
Ghost
A subtle style that only appears on hover.
Link
A style that mimics a standard text link.
Add to Queue
Add content to a playlist or queue.
Like
Like or favorite content with a count.
Add to Cart
Add items to shopping cart.
View Basket
Review items in shopping cart before checkout.
Icon
Combine text with an icon for better context.
Icon only
Display a button containing only an icon.
Loading
Indicate an ongoing process with a spinner.
Group
Group multiple buttons together.
Group Icon
Group icon-only buttons together.
Pill
Pill-shaped buttons with icon and text: primary, secondary, and outline.
Disabled
Prevent user interaction when the action is unavailable.