summaryrefslogtreecommitdiff
path: root/src/components/Alert.astro
blob: f8870e60736d41ead330d5d1c9a2a43d392fb094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
interface Props {
    class?: string;
}

const { class: className } = Astro.props;
---

<div class:list={['flex gap-4 p-4 rounded-sm bg-primary text-primary-content', className]}>
    <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 fill-current shrink-0" viewBox="0 0 24 24">
        <path
            d="M12 20.016q3.281 0 5.648-2.367t2.367-5.648-2.367-5.648-5.648-2.367-5.648 2.367-2.367 5.648 2.367 5.648 5.648 2.367zM12 2.016q4.125 0 7.055 2.93t2.93 7.055-2.93 7.055-7.055 2.93-7.055-2.93-2.93-7.055 2.93-7.055 7.055-2.93zM11.016 6.984h1.969v6h-1.969v-6zM11.016 15h1.969v2.016h-1.969v-2.016z"
        ></path>
    </svg>
    <slot />
</div>