Skip to content

Modal

uitemplate

overlay dialog with backdrop

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

PropTypeRequiredDescription
titlestringoptional
widthnumberoptional
heightnumberoptional
borderColorStyle['fg']optional
backdropCharstringoptional
#template#modal