yumechi-no-kuni/packages/frontend/src/components/MkInfo.vue

35 lines
560 B
Vue
Raw Normal View History

<template>
<div class="fpezltsf" :class="{ warn }">
<i v-if="warn" class="ti ti-alert-triangle"></i>
<i v-else class="ti ti-info-circle"></i>
<slot></slot>
</div>
</template>
2022-09-06 04:09:17 -05:00
<script lang="ts" setup>
import { } from 'vue';
2022-09-06 04:09:17 -05:00
const props = defineProps<{
warn?: boolean;
}>();
</script>
<style lang="scss">
.fpezltsf {
2022-12-19 22:12:32 -06:00
padding: 12px 14px;
font-size: 90%;
background: var(--infoBg);
color: var(--infoFg);
border-radius: var(--radius);
&.warn {
background: var(--infoWarnBg);
color: var(--infoWarnFg);
}
> i {
margin-right: 4px;
}
}
</style>