Skip to content
PixiKit

Button

A button with five variants, four sizes, icon slots and a loading state that keeps its width.

pixikit.com/docs/components/button

Customize

Variant
Size
Shape
Loading
Full width

Props

9
NameTypeDefaultDescription
variant"solid" | "outline" | "soft" | "ghost" | "danger""solid"The look of the button.
size"xs" | "sm" | "md" | "lg""md"How big the button is.
shape"rounded" | "pill" | "square""rounded"The corners; `square` is for a button with only an icon.
loadingbooleanfalseShows a spinner in place of the leading icon, keeps the width and ignores clicks.
leadingReactNodeNoneAn icon before the label.
trailingReactNodeNoneAn icon after the label.
fullWidthbooleanfalseStretches the button to the width of its container.
childrenReactNodeNoneThe label.
classNamestringNone

More forms components in Pro

View all

Related