🚧 Create warn alert component

This commit is contained in:
Freeze455
2021-08-17 14:33:09 +02:00
parent 159d020865
commit fdaa987e18

View File

@@ -0,0 +1,24 @@
<!-- This example requires Tailwind CSS v2.0+ -->
<template>
<div class="rounded-md bg-yellow-50 border border-yellow-400 w-1/2 p-4">
<div class="flex">
<div class="flex-shrink-0">
<ExclamationIcon class="h-5 w-5 text-yellow-400" aria-hidden="true" />
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-yellow-800">
<slot name="label" />
</h3>
<div class="mt-2 text-sm text-yellow-700">
<p>
<slot name="message" />
</p>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { ExclamationIcon } from '@heroicons/vue/solid'
</script>