26 lines
444 B
Vue
26 lines
444 B
Vue
|
<template>
|
||
|
<button class="button">
|
||
|
<span class="icon-text">
|
||
|
<span class="icon">
|
||
|
<font-awesome-icon :icon="icon" />
|
||
|
</span>
|
||
|
<span><slot name="default" /></span>
|
||
|
</span>
|
||
|
</button>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { Options, Vue } from "vue-class-component";
|
||
|
|
||
|
@Options({
|
||
|
props: {
|
||
|
icon: String,
|
||
|
},
|
||
|
})
|
||
|
export default class extends Vue {
|
||
|
public icon!: string;
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped></style>
|