Modal Base

A clean, accessible modal dialog with smooth animations.

1const [isOpen, setIsOpen] = useState(false);
2
3<button

Installation

npx zeroui@latest add modal-base

Props

nametypedefaultdescription
isOpenbooleanfalseControls visibility
onClose() => void-Close handler
titlestring-Modal header title
childrenReactNode-Modal content