u-button.vue

0.2.2 • Public • Published

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.

@click

@navigate

Readme

Keywords

Package Sidebar

Install

npm i u-button.vue

Weekly Downloads

0

Version

0.2.2

License

MIT

Last publish

Collaborators

  • rainfore