Module '"@nextui-org/react"' has no exported member 'Modal' when i use library in typescript with nextjs 13.4 #1775
Replies: 1 comment
-
Module '"@nextui-org/react"' has no exported member 'Collapse'.ts(2305) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package.json
"@nextui-org/react": "^2.1.13",
import React from "react";
import { Modal, ModalContent, ModalHeader, ModalBody, ModalFooter} from "@nextui-org/react";
export default function App() {
const {isOpen, onOpen, onClose} = useModal();
const [modalPlacement, setModalPlacement] = React.useState("auto");
return (
Open Modal
auto
top
bottom
center
top-center
bottom-center
{(onClose:any) => (
<>
Modal Title
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nullam pulvinar risus non risus hendrerit venenatis.
Pellentesque sit amet hendrerit risus, sed porttitor quam.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nullam pulvinar risus non risus hendrerit venenatis.
Pellentesque sit amet hendrerit risus, sed porttitor quam.
Close
Action
</>
)}
);
}
Beta Was this translation helpful? Give feedback.
All reactions