feat: migrate Modal Popover and Tooltip with shared overlay foundation

This commit is contained in:
maoyingjie
2026-10-22 23:39:51 +08:00
parent b086d7f30d
commit 2b4ac04df1
108 changed files with 6888 additions and 100 deletions
@@ -0,0 +1,17 @@
<script setup lang="ts">
import { modalVariants } from "@heroui-vue/styles";
import { useModal } from "./context";
defineOptions({ inheritAttrs: false });
withDefaults(defineProps<{ as?: string }>(), { as: "div" });
const ctx = useModal();
</script>
<template>
<component
:is="as"
v-bind="$attrs"
:class="'hv-modal__header'"
data-slot="modal-header"
>
<slot :close="ctx.state.close" />
</component>
</template>