feat: migrate Modal Popover and Tooltip with shared overlay foundation
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import OverlayAnimationLab from "./OverlayAnimationLab.vue";
|
||||
const animationLab =
|
||||
typeof window !== "undefined" &&
|
||||
new URLSearchParams(window.location.search).has("overlay-animation");
|
||||
import OverlayLab from "./OverlayLab.vue";
|
||||
import OverlayComponentsLab from "./OverlayComponentsLab.vue";
|
||||
const componentsLab =
|
||||
typeof window !== "undefined" &&
|
||||
new URLSearchParams(window.location.search).has("overlay-components");
|
||||
const overlayLab =
|
||||
typeof window !== "undefined" &&
|
||||
new URLSearchParams(window.location.search).has("overlay-lab");
|
||||
import { Button, Card, Input, Switch } from "@heroui-vue/components";
|
||||
const dark = ref(false),
|
||||
notifications = ref(true),
|
||||
@@ -11,7 +23,10 @@ function save() {
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<div class="lab" :data-theme="dark ? 'dark' : 'light'">
|
||||
<OverlayAnimationLab v-if="animationLab" />
|
||||
<OverlayComponentsLab v-else-if="componentsLab" />
|
||||
<OverlayLab v-else-if="overlayLab" />
|
||||
<div v-else class="lab" :data-theme="dark ? 'dark' : 'light'">
|
||||
<header>
|
||||
<a class="wordmark" href="#">
|
||||
hero
|
||||
|
||||
Reference in New Issue
Block a user