Modal
Terminal-styled modal dialog with backdrop overlay.
Import
import { Modal } from "neoterm-ui";Usage
const [open, setOpen] = useState(false);
<Button onClick={() => setOpen(true)}>Open Modal</Button>
<Modal open={open} onClose={() => setOpen(false)} title="Confirm">
<p>Are you sure you want to continue?</p>
</Modal>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | — | Whether the modal is visible. |
| onClose | () => void | — | Called when closing (backdrop click or Escape). |
| title | string | — | Optional modal title. |
| size | "sm" | "md" | "lg" | "md" | Width preset. |
| children | ReactNode | — | Modal body content. |
| className | string | — | Additional CSS classes. |