2023-07-11 10:38:21 +03:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
const props = defineProps<{
|
2023-07-26 14:07:17 +03:00
|
|
|
color?: 'primary' | 'accent' | 'info' | 'success' | 'warning' | 'error'
|
2023-07-11 10:38:21 +03:00
|
|
|
value?: string
|
|
|
|
|
}>()
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2023-07-26 14:07:17 +03:00
|
|
|
<div class="ui-alert" :class="props.color">
|
|
|
|
|
{{ props.value }}
|
2023-07-11 10:38:21 +03:00
|
|
|
<slot v-if="$slots.default" name="default" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|