Initial commit from monorepo

This commit is contained in:
Ruslan Bakiev
2026-01-07 09:10:35 +07:00
commit 3db50d9637
371 changed files with 43223 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<template>
<div :class="alertClass">
<slot />
</div>
</template>
<script setup lang="ts">
const props = defineProps({
variant: {
type: String,
default: 'info', // info | error | success | warning
},
})
const variantMap: Record<string, string> = {
info: 'alert alert-info',
error: 'alert alert-error',
success: 'alert alert-success',
warning: 'alert alert-warning',
}
const alertClass = computed(() => variantMap[props.variant] || variantMap.info)
</script>