#API
Button
props
Name | Description | Type | Default | Values | Required |
|---|---|---|---|---|---|
size | Control size. One of xs, sm, md, lg, xl. | String | md | xssmmdlgxl | |
color | Theme or CSS color used for the control accents. | String | |||
disabled | Disables interaction and applies disabled styling. | Boolean | false | ||
loading | Shows a loading indicator and blocks interaction. | Boolean | false | ||
loadingLabel | Accessible label announced while loading. | String | |||
loadingStatus | Loader visual status (for example active or indeterminate). | String | active | ||
outlined | Outline style with a transparent fill. | Boolean | false | ||
rounded | Fully rounded corners (pill shape). | Boolean | false | ||
glow | Soft colored glow behind the control. | Boolean | false | ||
ghost | Minimal style with no background until hover. | Boolean | false | ||
light | Tinted background using the color at low opacity. | Boolean | false | ||
flat | Removes elevation and border emphasis. | Boolean | false | ||
block | Stretches to the full width of the parent. | Boolean | false | ||
tag | Root element tag. Becomes a router-link when `to` is set. | String | button | ||
type | Native button type when `tag` is `button` (button, submit, reset). | String | button | ||
icon | Shortcut for `iconLeft`. | String | |||
iconLeft | Icon name shown before the label. | String | |||
iconRight | Icon name shown after the label. | String | |||
to | Vue Router location; renders as a link when set. | String Object | |||
tooltip | Tooltip text shown on hover. Prefer the tooltip slot for custom content. | String | |||
tooltipPosition | Tooltip placement relative to the button. | String | top |
slots
Name | Description |
|---|---|
default | Button label and content. |
tooltip | Custom tooltip content; overrides the `tooltip` prop. |
methods
Name | Description |
|---|---|
focus | Focus the underlying control. |
blur | Remove focus from the underlying control. |
ButtonGroup
props
Name | Description | Type | Default | Values | Required |
|---|---|---|---|---|---|
size | Control size. One of xs, sm, md, lg, xl. | String | md | xssmmdlgxl | |
color | Theme or CSS color used for the control accents. | String | |||
disabled | Disables interaction and applies disabled styling. | Boolean | false | ||
loading | Shows a loading indicator and blocks interaction. | Boolean | false | ||
loadingLabel | Accessible label announced while loading. | String | |||
loadingStatus | Loader visual status (for example active or indeterminate). | String | active | ||
outlined | Outline style with a transparent fill. | Boolean | false | ||
rounded | Fully rounded corners (pill shape). | Boolean | false | ||
glow | Soft colored glow behind the control. | Boolean | false | ||
ghost | Minimal style with no background until hover. | Boolean | false | ||
light | Tinted background using the color at low opacity. | Boolean | false | ||
flat | Removes elevation and border emphasis. | Boolean | false | ||
block | Stretches to the full width of the parent. | Boolean | false | ||
tag | Root element tag for the group wrapper. | String | div |
slots
Name | Description |
|---|---|
default | Grouped buttons (typically x-button children). |