mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-24 19:11:44 +01:00
f9f89e1e51
- only include Material Symbols Rounded - Replace some ligatures with codepoint so loading isnt as ugly/shifting
34 lines
724 B
Vue
34 lines
724 B
Vue
<template>
|
|
<div class="w-full bg-opacity-5 border border-opacity-60 rounded-lg flex items-center relative py-4 pl-16" :class="wrapperClass">
|
|
<div class="absolute top-0 left-4 h-full flex items-center">
|
|
<span class="material-symbols text-2xl">{{ icon }}</span>
|
|
</div>
|
|
<slot />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
type: {
|
|
type: String,
|
|
default: 'error'
|
|
}
|
|
},
|
|
data() {
|
|
return {}
|
|
},
|
|
computed: {
|
|
icon() {
|
|
if (this.type === 'error' || this.type === 'warning') return 'report'
|
|
return 'info'
|
|
},
|
|
wrapperClass() {
|
|
return `bg-${this.type} border-${this.type} text-${this.type}`
|
|
}
|
|
},
|
|
methods: {},
|
|
mounted() {}
|
|
}
|
|
</script>
|