Button

Create actions in many different styles

import { Button } from "@plexui/ui/components/Button";

Examples

Overview

Colors & variants

primary
secondary
danger
info
discovery
success
caution
warning
soft
solid
outline
ghost

Sizing & roundness

size

Icons

variant
size
gutterSize
iconSize

Block

Disabled

Inert

Loading

Selected

variant

Optical alignment

Default gutters
opticallyAlign="start"

Button shares the unified 9-step size scale with Input, Select, SelectControl, and SegmentedControl.

Reference

PropTypeDefaultDescription
color"primary" | "secondary" | "danger" | "success" | "info" | "discovery" | "caution" | "warning""primary"Visual color scheme
variant"solid" | "soft" | "outline" | "ghost""solid"Button style variant
size"3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl""md"Control height and default gutter/icon size
pillbooleantrueFully rounded corners
blockbooleanfalseFull width
uniformbooleanfalseSquare icon button (width equals height)
disabledbooleanfalseVisually and accessibly disabled
loadingbooleanfalseShows loading indicator
inertbooleanfalseAccessibly disabled without visual change
selectedbooleanfalseSelected state styling
opticallyAlign"start" | "end"Offset gutter for optical alignment
gutterSizestringHorizontal padding size
iconSizestringSize of icons in children