From 89ea8d237fa0d56de1c9a04e155da8773ddc3421 Mon Sep 17 00:00:00 2001 From: LeeChan <114982593+rookie-orange@users.noreply.github.com> Date: Fri, 12 Apr 2024 11:21:23 +0800 Subject: [PATCH] Update drawer.md It sounds like you've identified an important point to add to the documentation about the vaul-drawer-wrapper attribute being necessary for the zoom effect in the Drawer component's background. Clarifying this in the documentation would be helpful for users encountering the same issue. --- apps/www/src/content/docs/components/drawer.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/www/src/content/docs/components/drawer.md b/apps/www/src/content/docs/components/drawer.md index 55b6f0c2..dc84c246 100644 --- a/apps/www/src/content/docs/components/drawer.md +++ b/apps/www/src/content/docs/components/drawer.md @@ -53,6 +53,11 @@ import { ``` +### Scale Background +If you want the background to have a zoom effect, you need to add the `vaul-drawer-wrapper` attribute to the root component. +```html +
+``` ## Examples