Modal
uitemplate
overlay dialog with backdrop
Terminal
$termuijs render modal
Installation
$ bunx termuijs add modal
Copies the source into src/components/modal/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Modal } from '@termuijs/ui'ts
new Modal(options: ModalOptions = {}, style?: Partial<Style>)API Reference
Modal
| Prop | Type | Required | Description |
|---|---|---|---|
title | string | optional | — |
width | number | optional | — |
height | number | optional | — |
borderColor | Style['fg'] | optional | — |
backdropChar | string | optional | — |