mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 09:50:33 +01:00
playground: update
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
export default defineAppConfig({
|
export default defineAppConfig({
|
||||||
ui: {
|
ui: {
|
||||||
|
primary: 'green',
|
||||||
button: {
|
button: {
|
||||||
base: 'font-semibold',
|
base: 'font-semibold',
|
||||||
variants: {
|
variants: {
|
||||||
|
|||||||
@@ -1,8 +1,16 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="max-w-7xl mx-auto py-24">
|
<UContainer class="min-h-screen flex flex-col gap-4 items-center justify-center">
|
||||||
<UButton color="green" icon="i-heroicons-rocket-launch" to="/" label="/" />
|
<div class="flex gap-1">
|
||||||
<UButton color="red" icon="i-heroicons-rocket-launch" to="/about" label="/about" square />
|
<UButton icon="i-heroicons-rocket-launch" to="/" label="/" />
|
||||||
|
|
||||||
|
<UButton color="green" trailing-icon="i-heroicons-light-bulb" to="/about" label="/about" />
|
||||||
|
|
||||||
|
<UButton color="red" label="Button" class="font-bold" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
</div>
|
</UContainer>
|
||||||
</template>
|
</template>
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>{{ $route.path }}</div>
|
<div class="text-primary-500">
|
||||||
|
Route: {{ $route.path }}
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|||||||
Reference in New Issue
Block a user