A low-level overlay primitive for building custom dialog surfaces.
Copy the command below and run it in your terminal.
bunx @sivir/ui add modal
pnpm dlx @sivir/ui add modal
npx @sivir/ui add modal
yarn dlx @sivir/ui add modal
Import Modal and use it in your component:
import * as Modal from '$lib/sivir/components/modal'; <Modal.Root open={isOpen}> <Modal.Trigger>Open</Modal.Trigger> <Modal.Content> <Modal.Header> <Modal.Title>Title</Modal.Title> </Modal.Header> </Modal.Content> </Modal.Root>
Modal with various structures.