shadcn-vue/apps/www/.vitepress/theme/components/Callout.vue
2023-09-04 13:43:47 +08:00

27 lines
470 B
Vue

<script setup lang="ts">
import {
Alert,
AlertDescription,
AlertTitle,
} from '@/lib/registry/default/ui/alert'
interface CalloutProps {
icon?: string
title?: string
}
defineProps<CalloutProps>()
</script>
<template>
<Alert class="not-docs">
<span v-if="icon" class="mr-4 text-2xl">{{ icon }}</span>
<AlertTitle v-if="title">
{{ title }}
</AlertTitle>
<AlertDescription>
<slot />
</AlertDescription>
</Alert>
</template>