Button

A simple interactive button with subtle press feedback. It renders children directly and keeps content and state management in your application.

Features

  • Fluid press feedback — Scales down slightly while pressed for a tactile response.
  • Simple composition — Accepts text, icons, or any React content without built-in content transitions.
  • Visual variants — Includes default, outlined, and secondary styles in three sizes.
  • Reduced motion — Removes press motion when reduced motion is preferred.

Playground

Explore the available sizes and visual variants.

Controls
Controls

Installation

Usage

Code Example

TypeScript
call-to-action.tsx

Props

PropertyTypeDefaultDescription
childrenReact.ReactNoderequiredContent rendered inside the button.
variant"default" | "outlined" | "secondary""default"Visual style of the button.
size"sm" | "md" | "lg""md"Controls the button height, padding, and text size.