🚧 Create alert components

This commit is contained in:
Freeze455
2021-08-17 15:03:20 +02:00
parent fdaa987e18
commit f490d57073
3 changed files with 48 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
<template>
<div class="rounded-md bg-blue-100 border border-blue-400 w-1/2 p-4">
<div class="flex">
<div class="flex-shrink-0">
<InformationCircleIcon class="h-5 w-5 text-blue-400" aria-hidden="true" />
</div>
<div class="ml-3">
<p class="text-sm font-medium text-blue-800">
<slot name="label" />
</p>
<div class="mt-2 text-sm text-blue-700">
<p>
<slot name="message" />
</p>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { InformationCircleIcon } from '@heroicons/vue/solid'
</script>

View File

@@ -0,0 +1,23 @@
<template>
<div class="rounded-md bg-green-50 p-4 border border-green-400 w-1/2">
<div class="flex">
<div class="flex-shrink-0">
<CheckCircleIcon class="h-5 w-5 text-green-400" aria-hidden="true" />
</div>
<div class="ml-3">
<p class="text-sm font-medium text-green-800">
<slot name="label" />
</p>
<div class="mt-2 text-sm text-green-700">
<p>
<slot name="message" />
</p>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { CheckCircleIcon } from '@heroicons/vue/solid'
</script>

View File

@@ -6,9 +6,9 @@
<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">
<p class="text-sm font-medium text-yellow-800">
<slot name="label" />
</h3>
</p>
<div class="mt-2 text-sm text-yellow-700">
<p>
<slot name="message" />