Button
CoreTriggers an action on the current view: submit, confirm, cancel, or start something in place, like copy or open a dialog.
Usage
import { Button } from "@lusterui/react";
<Button variant="primary">Save changes</Button>
<Button>Cancel</Button>
<Button variant="danger" loading>Delete project</Button>
Props
| Prop | Type | Default |
|---|---|---|
variant | primary secondary ghost ghost-icon danger danger-soft | secondary |
size | xs sm md lg (24, 32, 36, 40) | md |
loading | Replaces the label with a spinner and blocks activation. The width stays the same. | false |
disabled | boolean | – |
icon | Icon name. Icon-only buttons need an accessible name. | – |
asChild | Renders your child element, e.g. an <a> that must look like a button. | – |
When to use something else
- Blue text that takes the user somewhere: use Link. Button has no blue variant.
- Choosing one of a few options: use Segmented.
- Switching between sibling views: use Tabs.
- Turning a setting on or off: use Switch.
Nucleo Icons, https://nucleoapp.com/. Copyright © Nucleo. Copyright notice. Component examples use Hugeicons free (Stroke Rounded), MIT License, Copyright (c) 2025 Hugeicons. License