docs(drawer): add responsive example

Resolves #3772
This commit is contained in:
Benjamin Canac
2025-04-02 10:54:53 +02:00
parent ef75610244
commit 44e6ba039d
2 changed files with 54 additions and 0 deletions

View File

@@ -306,6 +306,17 @@ name: 'drawer-dismissible-example'
In this example, the `header` slot is used to add a close button which is not done by default.
::
### Responsive drawer
You can render a [Modal](/components/modal) component on desktop and a Drawer on mobile for example.
::component-example
---
prettier: true
name: 'drawer-responsive-example'
---
::
### With footer slot
Use the `#footer` slot to add content after the Drawer's body.