Skip to content

Commit

Permalink
chore(drawer): export drawer children props (#4310)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
omarshehab221 authored Dec 23, 2024
1 parent 5f388fc commit f8f6bfe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/forty-ducks-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/drawer": patch
---

Export useDisclosure and Drawer children props from `@nextui-org/drawer`
17 changes: 16 additions & 1 deletion packages/components/drawer/src/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit f8f6bfe

Please sign in to comment.