iceshrimp/packages/client/src/components/MkInfo.vue

35 lines
560 B
Vue
Raw Normal View History

<template>
2023-04-08 09:01:42 +09:00
<div class="fpezltsf" :class="{ warn }">
<i v-if="warn" class="ph-warning ph-bold ph-lg"></i>
<i v-else class="ph-info ph-bold ph-lg"></i>
<slot></slot>
</div>
</template>
2022-09-06 18:09:17 +09:00
<script lang="ts" setup>
2023-04-08 09:01:42 +09:00
import {} from "vue";
2022-12-07 13:12:44 +09:00
defineProps<{
2022-09-06 18:09:17 +09:00
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>