mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
@@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<UDrawer :ui="{ content: 'h-full', overlay: 'bg-inverted/30' }">
|
||||
<UButton label="Open" color="neutral" variant="subtle" trailing-icon="i-lucide-chevron-up" />
|
||||
|
||||
<template #footer>
|
||||
<UDrawer nested :ui="{ content: 'h-full', overlay: 'bg-inverted/30' }">
|
||||
<UButton color="neutral" variant="outline" label="Open nested" />
|
||||
|
||||
<template #content>
|
||||
<Placeholder class="flex-1 m-4" />
|
||||
</template>
|
||||
</UDrawer>
|
||||
</template>
|
||||
</UDrawer>
|
||||
</template>
|
||||
@@ -328,6 +328,17 @@ name: 'drawer-responsive-example'
|
||||
---
|
||||
::
|
||||
|
||||
### Nested drawers :badge{label="Soon" class="align-text-top"}
|
||||
|
||||
You can nest drawers within each other by using the `nested` prop.
|
||||
|
||||
::component-example
|
||||
---
|
||||
prettier: true
|
||||
name: 'drawer-nested-example'
|
||||
---
|
||||
::
|
||||
|
||||
### With footer slot
|
||||
|
||||
Use the `#footer` slot to add content after the Drawer's body.
|
||||
|
||||
Reference in New Issue
Block a user