Nativ ui
Documentation

Buttons

Button styles and variants for native-feeling interactions.

Button Variants

Primary

The main call-to-action button.

Secondary

For secondary actions.

Outline

Button with border and transparent background.

Ghost

Minimal button for less prominent actions.

Button that looks like a link.

Soft

Subtle button with semi-transparent background.

Destructive

For dangerous or irreversible actions.

Soft Destructive

Subtle destructive button with semi-transparent background.

Button Sizes

Different sizes for different contexts.

All Variants

Sizes Reference

SizeClassHeightUse Case
Smallsize="sm"h-8Inline actions
Defaultsize="default"h-9Most buttons
Largesize="lg"h-10Hero CTAs
Iconsize="icon"size-9Icon-only buttons

States

  • Hover - Slightly darker/lighter background
  • Focus - Ring outline for accessibility
  • Disabled - Reduced opacity, no pointer events
  • Loading - Spinner, disabled state

Best Practices

  1. Clear labels - Action verbs: "Save", "Create", "Delete"
  2. One primary - Single primary action per context
  3. Consistent sizing - Same button size in related groups
  4. Loading states - Show progress for async actions