docs: use lang="ts" everywhere

This commit is contained in:
Benjamin Canac
2024-02-14 17:41:10 +01:00
parent 300861a49e
commit c488b28c3c
13 changed files with 15 additions and 15 deletions

View File

@@ -206,7 +206,7 @@ An example SFC using IntelliSense (note the `/*ui*/` prefix, also works with `re
<UCard :ui="ui" />
</template>
<script setup>
<script setup lang="ts">
const ui = /*ui*/ {
background: 'bg-white dark:bg-slate-900'
}

View File

@@ -247,7 +247,7 @@ You can easily build a color mode button by using the `useColorMode` composable
#code
```vue
<script setup>
<script setup lang="ts">
const colorMode = useColorMode()
const isDark = computed({
get () {

View File

@@ -130,7 +130,7 @@ defineShortcuts({
To display shortcuts in your app according to the user's OS, you can use the `useShortcuts` composable.
```vue
<script setup>
<script setup lang="ts">
const { metaSymbol } = useShortcuts()
</script>