eduproj/components/Card.vue
2021-12-28 01:12:59 -06:00

39 lines
781 B
Vue

<template>
<div class="column">
<div class="card">
<header class="card-header">
<p class="card-header-title has-text-grey">
{{ title }}
</p>
</header>
<div class="card-content">
<div class="content has-text-centered">
<b-icon :icon="icon" size="is-large" type="is-primary" />
</div>
</div>
<footer class="card-footer">
<div class="card-footer-item">
<span>
<slot />
</span>
</div>
</footer>
</div>
</div>
</template>
<script>
export default {
"name": "BuefyCard",
"props": {
"title": {
"type": String,
"required": true,
},
"icon": {
"type": String,
"required": true,
},
},
};
</script>