Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit 90adfe1

Browse files
System AdministratorSystem Administrator
System Administrator
authored and
System Administrator
committedSep 2, 2023
chore: clean up
1 parent e961c02 commit 90adfe1

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed
 

‎packages/nuxt-ui-vue/src/App.vue

+1-34
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,6 @@
11
<script setup lang="ts">
2-
import { ref } from 'vue'
3-
4-
import { useDark, useToggle } from '@vueuse/core'
5-
6-
const isDark = useDark()
7-
8-
const toggleTheme = useToggle(isDark)
9-
10-
const searchTerm = ref('')
112
</script>
123

134
<template>
14-
<div>
15-
<button @click="toggleTheme()">
16-
Theme
17-
</button>
18-
</div>
19-
<div class="dark:bg-black grid place-items-center min-h-screen w-full">
20-
<UInput
21-
v-model="searchTerm" color="white" :variants="{
22-
'my-variant': {
23-
placeholder: 'dark:bg-transparent',
24-
},
25-
}" :variant="['my-variant']" name="searchTerm" placeholder="Search..." icon="heroicons:magnifying-glass-20-solid"
26-
>
27-
<template #trailing>
28-
<UButton
29-
v-show="searchTerm !== ''"
30-
color="gray"
31-
intent="link"
32-
icon="heroicons:x-mark-20-solid"
33-
:padded="false"
34-
@click="searchTerm = ''"
35-
/>
36-
</template>
37-
</UInput>
38-
</div>
5+
<div />
396
</template>

0 commit comments

Comments
 (0)