diff options
Diffstat (limited to 'src/components/Alert.astro')
| -rw-r--r-- | src/components/Alert.astro | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/Alert.astro b/src/components/Alert.astro new file mode 100644 index 0000000..1a468fb --- /dev/null +++ b/src/components/Alert.astro @@ -0,0 +1,16 @@ +--- +interface Props { + class?: string; +} + +const { class: className } = Astro.props; +--- + +<div class:list={['alert alert-info', className].join(' ')}> + <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> |
