Skip to content

prompt

uitemplate

Imperative prompts for CLI scripts: no widget stack required

Installation

$ bunx termuijs add prompt

Copies the source into src/components/prompt/ and installs .

Usage

ts
import { prompt } from '@termuijs/ui'
ts
new prompt()

API Reference

prompt

PropTypeDefaultDescription
childrenReactNoderequiredPage content
titlestringApp/page title
paddingnumber1Outer padding
#template#prompt