u-button.vue
v0.2.2
Published
Vusion Proto UI - Button
Downloads
5
Readme
Button
Examples
Basic
<u-button>Button</u-button>
Disabled
<u-button disabled>Disabled</u-button>
Link
<u-linear-layout>
<u-button href="https://github.com/vusion/vusion" target="_blank">href</u-button>
<u-button to="/some/router/path">to</u-button>
<u-button href="https://github.com/vusion/vusion" disabled>href</u-button>
</u-linear-layout>
API
Attrs/Props
| Attr/Prop | Type | Default | Description |
| --------- | ---- | ------- | ----------- |
| href | String | | href
property of link |
| target | String | | (native property) |
| to | String | Object | | to
property of vue-router
|
| replace | Boolean | false
| |
| append | Boolean | false
| |
| disabled | Boolean | false
| Disable the button |
Slots
| Slot | Description | | ---- | ----------- | | (default) | Hold the text and can contain HTML |
Events
$listeners
Inherit all events from <a>
element.