Button

Base UI

A familiar action, with a considered weight and clear states.

ReadyResponsive

Usage

Package export
tsx
import { Button } from "@jnpll/elements-ui/button";

<Button variant="default" size="default">
  {"Continue"}
</Button>

Examples

Variants
default
secondary
outline
ghost
destructive
link

API Reference

PropType / descriptionDefault
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"
disabledboolean

Prevents activation.

false
nativeButtonboolean

Set to false when rendering a link or another non-button element.

true
renderReactElement | function

Replaces 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}.