jormungandr-bite/packages/client/src/components/MkInfo.vue

35 lines
564 B
Vue
Raw Normal View History

<template>
<div class="fpezltsf" :class="{ warn }">
2022-11-06 19:49:47 -07:00
<i v-if="warn" class="ph-warning-bold ph-lg"></i>
<i v-else class="ph-info-bold ph-lg"></i>
<slot></slot>
</div>
</template>
2022-09-06 03:09:17 -06:00
<script lang="ts" setup>
import { } from 'vue';
2022-09-06 03:09:17 -06:00
const props = defineProps<{
warn?: boolean;
}>();
</script>
<style lang="scss" scoped>
.fpezltsf {
padding: 16px;
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>