Files
LCUI/docs/en/widgets/button.mdx
T

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" />