ESC
NextStarterAI logo
Menu
On this page

Components > Modal

YourLandingPageComponent.tsx
1import { Modal } from "@/components/landing-components";

In case you you want to show a modal in your landing page, we've one for you! Since every modal is slightly different, it is an unopinionated one and you can customize it easily. Simply change the content and style(how big you want it etc) and use it inside your landing page components!


Pika Modal
YourLandingPageComponent.tsx
1 2 const YourLandingPageComponent = () => { 3 // rest of your component. 4 const [isModalOpen, setIsModalOpen] = useState<boolean>(false); 5 6 return ( 7 <button // a button inside your component to trigger modal open. 8 onClick={()=>{ 9 setIsModalOpen(true); 10 }} 11 /> 12 )