Button
Displays a button or a component that looks like a button.
Import
import { Button } from "@countryclub/ui-react";Default
Variants
Every button variant at a glance.
Primary
The default variant, in all five sizes: xs, sm, md (default), lg and xl.
Secondary
Outline
A bordered button for secondary emphasis.
Tertiary (Ghost)
The ghost variant — borderless and transparent until hovered.
Link
Looks like an inline link with an animated underline.
Link Muted
A quieter link that brightens to full contrast on hover.
Icon Leading
Pass an icon before the label — it is sized and spaced automatically.
Icon Trailing
Pass an icon after the label.
Icon Only
Use the icon sizes (icon-xs to icon-xl) and include an sr-only label for screen readers.
Loading
Compose a Spinner with the disabled state to signal an in-flight action.
Disabled
The disabled state is consistent across every variant.
Destructive
For primary destructive actions.
Destructive Outline
For secondary destructive actions.
Destructive Ghost
For tertiary destructive actions.
As Link
Use the render prop to render any element as a button.