Skip to content
Star

PxButton

A flexible button primitive with five variants, three sizes, left/right icon slots, and a built-in loading state. Used as the base action element across the library.

Variants

Variants

Sizes, Icons & States

Sizes, Icons & States

API Reference

PropTypeDefaultDescription
label
string
size
"sm" | "md" | "lg"'md'
variant
"primary" | "secondary" | "danger" | "ghost" | "link"'primary'
loading
booleanfalse
disabled
booleanfalse
iconLeft
Component
iconRight
Component
type
"button" | "submit" | "reset"'button'
block
booleanfalse

Built with VitePress