diff --git a/packages/react/components/Drawer.tsx b/packages/react/components/Drawer.tsx index fbaa187..ed2c86f 100644 --- a/packages/react/components/Drawer.tsx +++ b/packages/react/components/Drawer.tsx @@ -404,8 +404,11 @@ const DrawerHeader = forwardRef( const [variantProps, restPropsCompressed] = resolveDrawerHeaderVariantProps(props); const { asChild, ...restPropsExtracted } = restPropsCompressed; + + const Comp = asChild ? Slot : "div"; + return ( -
((props, ref) => { const [variantProps, restPropsCompressed] = resolveDrawerBodyVariantProps(props); const { asChild, ...restPropsExtracted } = restPropsCompressed; + + const Comp = asChild ? Slot : "div"; + return ( -
( const [variantProps, restPropsCompressed] = resolveDrawerFooterVariantProps(props); const { asChild, ...restPropsExtracted } = restPropsCompressed; + + const Comp = asChild ? Slot : "div"; + return ( -