mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
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:
parent
5f388fc68c
commit
f8f6bfea5a
5
.changeset/forty-ducks-brake.md
Normal file
5
.changeset/forty-ducks-brake.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@nextui-org/drawer": patch
|
||||
---
|
||||
|
||||
Export useDisclosure and Drawer children props from `@nextui-org/drawer`
|
||||
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user