A button wrapping slotted content.
Demos
Configurable
Default
<WvuiButton>Click me</WvuiButton>
Progressive
<WvuiButton action="progressive">Click me</WvuiButton>
Progressive, primary
<WvuiButton action="destructive" type="primary">Click me</WvuiButton>
Progressive, primary, disabled
<WvuiButton action="progressive" type="primary" disabled>Click me</WvuiButton>
Usage
Props
Prop name | Description | Type | Values | Default |
---|
action | | ButtonAction | - | ButtonAction.Default |
type | Button type. See ButtonType for what each value means. | ButtonType | - | ButtonType.Normal |
Events
Event name | Properties | Description |
---|
click | | |
Slots
Name | Description | Bindings |
---|
default | Button content | |