mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
30 lines
503 B
Vue
30 lines
503 B
Vue
|
<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: {
|
||
|
default: "#42b983"
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
.rounded {
|
||
|
border-radius: 10px;
|
||
|
}
|
||
|
|
||
|
.wr-button {
|
||
|
border: 3px solid;
|
||
|
padding: 10px 20px;
|
||
|
background-color: white;
|
||
|
outline: none;
|
||
|
}
|
||
|
</style>
|