mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
26 lines
510 B
Plaintext
26 lines
510 B
Plaintext
# Button
|
|
|
|
A clickable button widget, typically used to trigger an action.
|
|
|
|
<WidgetExample name="button-basic" />
|
|
|
|
## Use cases
|
|
|
|
- **Suitable**: users click to perform an action (submit a form, open a page, toggle a state)
|
|
- **Suitable**: interactive entry points in toolbars, dialogs, and navbars
|
|
- **Not suitable**: non-interactive text display (use `text` instead)
|
|
|
|
## Usage
|
|
|
|
```tsx
|
|
import { Button } from "@lcui/react"
|
|
```
|
|
|
|
```tsx
|
|
<Button>Button</Button>
|
|
```
|
|
|
|
## API Reference
|
|
|
|
<FieldTable name="button" />
|