feat(Drawer): implement with vaul-vue

Resolves #53
This commit is contained in:
Benjamin Canac
2024-04-11 14:50:38 +02:00
parent bc2d9ab620
commit 5e6275fcff
11 changed files with 444 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ const components = [
'checkbox',
'chip',
'collapsible',
'drawer',
'dropdown-menu',
'form',
'form-field',
@@ -45,7 +46,7 @@ function upperName (name: string) {
<template>
<UApp :toaster="appConfig.toaster">
<div class="min-h-screen w-screen flex flex-col items-center justify-center overflow-y-auto">
<div class="min-h-screen w-screen flex flex-col items-center justify-center overflow-y-auto" vaul-drawer-wrapper>
<UNavigationMenu :links="components.map(component => ({ label: upperName(component), to: `/${component}` }))" class="border-b border-gray-200 dark:border-gray-800 overflow-x-auto px-2" />
<div class="flex-1 flex flex-col justify-center py-12">