feat(glitch-text): update text on enableOnHover

This commit is contained in:
Sahil David
2025-07-12 16:10:04 +01:00
parent 2b394c9aae
commit d2a5837b74

View File

@@ -39,7 +39,7 @@
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { ref, watch } from 'vue';
import TabbedLayout from '../../components/common/TabbedLayout.vue';
import CodeExample from '../../components/code/CodeExample.vue';
import CliInstallation from '../../components/code/CliInstallation.vue';
@@ -55,6 +55,10 @@ const speed = ref(0.5);
const enableShadows = ref(true);
const enableOnHover = ref(false);
watch(enableOnHover, newValue => {
text.value = newValue ? 'Hover Me' : 'Vue Bits';
});
const propData = [
{
name: 'children',