ComponentsModal
An animated popup window for explainers, lead generation, forms, etc.
![A Modal component for ShipFast boilerplate](/docs-old/components/modal.jpg)
page.js
1import Modal from "@/components/Modal";
2
3export default function Component() {
4 const [isModalOpen, setIsModalOpen] = useState(false);
5
6 return (
7 <Modal isOpen={isModalOpen} setIsOpen={setIsModalOpen} />
8 );
9}
Updated on: Saturday, August 12, 2023
Looking for UI-only components like buttons, inputs, etc? It's all available with daisyUI. See this guide for more info.