mirror of
https://github.com/DiscordFactory/website-documentation.git
synced 2026-01-14 17:34:22 +01:00
🚧 Create warn alert component
This commit is contained in:
24
src/components/AlertWarn.vue
Normal file
24
src/components/AlertWarn.vue
Normal 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>
|
||||
Reference in New Issue
Block a user