Nuxt/examples/storybook/components/Button.vue

30 lines
502 B
Vue
Raw Normal View History

2018-02-06 02:36:22 +00:00
<template>
<button class="wr-button" :style="{color: color, borderColor: color}" @click="handleClick" :class="{rounded: rounded}"><slot></slot>!</button>
</template>
<script>
export default {
props: {
rounded: Boolean,
handleClick: {
default: () => () => null
},
color: {
2018-02-06 03:06:45 +00:00
default: '#42b983'
2018-02-06 02:36:22 +00:00
}
}
2018-02-06 03:06:45 +00:00
}
2018-02-06 02:36:22 +00:00
</script>
<style>
.rounded {
border-radius: 10px;
}
.wr-button {
border: 3px solid;
padding: 10px 20px;
background-color: white;
outline: none;
}
</style>