1.0.5 • Published 4 years ago

@yup80/yp-button v1.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

yp-button

npm npm

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

Requires

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

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