@yup80/yp-button

1.0.5 • Public • Published

yp-button

npm npm

A Vue.js component for buttons with beautiful ripple effects and theme support

Requires

  • less
  • less-loader

Installation

npm install @Yup80/yp-button

Using in Vue.js component

<template>
    <div class="root">
        <ypBtn>Default (Blue) button</ypBtn>
        <ypBtn class="ahtung">Alternative (Red) button</ypBtn>
        <ypBtn class="link">Like a link (no bgcolor) button</ypBtn>
    </div>
<template>


<script>
import ypBtn from '@Yup80/yp-button'
// ...
export default {
    components: {ypBtn}
}
</script>

Properties

Prop Type Description
disabled Boolean Disabled behavior, styling with "disabled" class
inverted Boolean For night themes (lihter ripple)

Theme composing

/* Add myTheme class to container */

.myTheme .yp-button_button {
    // default button style
    background-color: #bbb;
    color: #000;
}

.myTheme .yp-button.ahtung>.yp-button_button {
    // alternative button style 
    background-color: #FF3636;
}

.myTheme .yp-button.disabled>.yp-button_button {
    // disabled button style  
    color: green;
}

Demo

For more examples browse and clone github project to see more examples:

https://github.com/yura2883/yp-button

Package Sidebar

Install

npm i @yup80/yp-button

Weekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

12 kB

Total Files

3

Last publish

Collaborators

  • yup80