mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
playground: update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export default defineAppConfig({
|
||||
ui: {
|
||||
primary: 'green',
|
||||
primary: 'sky',
|
||||
button: {
|
||||
base: 'font-semibold',
|
||||
variants: {
|
||||
|
||||
@@ -1,16 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
useHead({
|
||||
bodyAttrs: {
|
||||
class: 'antialiased font-sans text-gray-900 dark:text-white bg-white dark:bg-gray-900'
|
||||
}
|
||||
})
|
||||
|
||||
const components = ['button', 'tooltip']
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UContainer class="min-h-screen flex flex-col gap-4 items-center justify-center">
|
||||
<div class="flex gap-1">
|
||||
<UButton icon="i-heroicons-rocket-launch" to="/" label="/" />
|
||||
<UProvider>
|
||||
<UContainer class="min-h-screen flex flex-col gap-4 items-center justify-center">
|
||||
<div class="flex gap-1">
|
||||
<ULink v-for="component in components" :key="component" :to="`/${component}`" active-class="text-primary capitalize text-sm">
|
||||
{{ component }}
|
||||
</ULink>
|
||||
</div>
|
||||
|
||||
<UButton color="green" trailing-icon="i-heroicons-light-bulb" to="/about" label="/about" />
|
||||
|
||||
<UButton color="red" label="Button" class="font-bold" />
|
||||
</div>
|
||||
|
||||
<NuxtPage />
|
||||
</UContainer>
|
||||
<NuxtPage />
|
||||
</UContainer>
|
||||
</UProvider>
|
||||
</template>
|
||||
@@ -1,8 +0,0 @@
|
||||
<template>
|
||||
<div class="text-primary-500">
|
||||
Route: {{ $route.path }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
</script>
|
||||
9
playground/pages/button.vue
Normal file
9
playground/pages/button.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<div class="flex gap-1">
|
||||
<UButton icon="i-heroicons-rocket-launch" to="/" label="Button" />
|
||||
<UButton icon="i-heroicons-rocket-launch" to="/" label="Button" variant="outline" />
|
||||
<UButton icon="i-heroicons-rocket-launch" to="/" label="Button" variant="soft" />
|
||||
<UButton icon="i-heroicons-rocket-launch" to="/" label="Button" variant="ghost" />
|
||||
<UButton icon="i-heroicons-rocket-launch" to="/" label="Button" variant="link" />
|
||||
</div>
|
||||
</template>
|
||||
3
playground/pages/index.vue
Normal file
3
playground/pages/index.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<div />
|
||||
</template>
|
||||
7
playground/pages/tooltip.vue
Normal file
7
playground/pages/tooltip.vue
Normal file
@@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<div class="flex gap-1">
|
||||
<UTooltip text="Tooltip">
|
||||
<UButton icon="i-heroicons-rocket-launch" to="/" label="Button" />
|
||||
</UTooltip>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user