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| Name | Type | Default | Description |
|---|---|---|---|
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. |
loading | boolean | false | Shows a spinner in place of the leading icon, keeps the width and ignores clicks. |
leading | ReactNode | None | An icon before the label. |
trailing | ReactNode | None | An icon after the label. |
fullWidth | boolean | false | Stretches the button to the width of its container. |
children | ReactNode | None | The label. |
className | string | None |