Button
Base UIA familiar action, with a considered weight and clear states.
ReadyResponsive
Usage
Package exportimport { Button } from "@jnpll/elements-ui/button";
<Button variant="default" size="default">
{"Continue"}
</Button>Examples
Variants
defaultsecondaryoutlineghostdestructivelinkAPI Reference
| Prop | Type / description | Default |
|---|---|---|
variant | "default" | "outline" | "secondary" | "ghost" | "destructive" | "link"Visual emphasis and intent. | "default" |
size | "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg"Height, spacing, and icon dimensions. | "default" |
disabled | booleanPrevents activation. | false |
nativeButton | booleanSet to false when rendering a link or another non-button element. | true |
render | ReactElement | functionReplaces the underlying element via Base UI composition. | button |
Composition & accessibility
Use a verb for the label. Icon-only buttons need an accessible name. Disabled buttons remain visible but cannot be activated. When composing with a link, set nativeButton={false}.