Button
# FxButton
Commonly used operation buttons.
# Attributes
| Attribute | Description | Type | Options | Default | Platform Support |
|---|---|---|---|---|---|
| size | button size | string | medium / small / mini | — | PC only |
| type | button type | string | primary / success / warning / danger / info / text | — | Mobile supports primary/success/default/danger only |
| plain | whether to use plain style | boolean | — | false | PC/Mobile |
| round | whether to use round corners | boolean | — | false | PC only |
| circle | whether to use circular shape | boolean | — | false | PC only |
| loading | whether to show loading state | boolean | — | false | PC/Mobile |
| disabled | whether disabled | boolean | — | false | PC/Mobile |
| icon | icon class name | string | — | — | PC only |
| autofocus | whether to get focus by default | boolean | — | false | PC only |
| native-type | native type attribute | string | button / submit / reset | button | PC only |
# Slot
Mobile only
| Name | Description |
|---|---|
| content | button content |
# Basic Usage
Basic button usage.
Copy
# Disabled State
Disabled button state.
Copy
# Text Button
Buttons without border and background color.
Copy
# Icon Button
Buttons with icons for better recognition (with text) or space saving (without text).
Copy
# Button Group
Display as button group, commonly used for multiple similar operations.
Copy
# Loading State
Show loading state when clicking button to load data.
Copy
# Different Sizes
Button component provides three sizes besides default size for different scenarios.
Copy