chore(drawer): export drawer children props (#4310)

* export Drawer children props

* Fix eslint

* fix: add changeset for drawer props export

* fix: remove useDisclosure export for `@nextui-org/react` not to fail

* remove useDisclosureProps

* Import props as types
This commit is contained in:
Omar Shehab 2024-12-23 14:11:19 +02:00 committed by GitHub
parent 5f388fc68c
commit f8f6bfea5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@nextui-org/drawer": patch
---
Export useDisclosure and Drawer children props from `@nextui-org/drawer`

View File

@ -1,9 +1,24 @@
import {ModalHeader, ModalBody, ModalFooter, ModalContent} from "@nextui-org/modal";
import {
ModalHeader,
ModalBody,
ModalFooter,
ModalContent,
type ModalContentProps,
type ModalHeaderProps,
type ModalBodyProps,
type ModalFooterProps,
} from "@nextui-org/modal";
import Drawer from "./drawer";
// export types
export type {DrawerProps} from "./drawer";
export type {
ModalContentProps as DrawerContentProps,
ModalHeaderProps as DrawerHeaderProps,
ModalBodyProps as DrawerBodyProps,
ModalFooterProps as DrawerFooterProps,
};
// export hooks
export {useDrawer} from "./use-drawer";