Text
display
Text: renders a string of text with word-wrapping, alignment, and scrolling
Terminal
$termuijs render text
Installation
$ bunx termuijs add text
Copies the source into src/components/text/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Text } from '@termuijs/widgets'ts
new Text(content: string, style: Partial<Style> = {}, props: Partial<TextProps> = {})API Reference
Text
| Prop | Type | Required | Description |
|---|---|---|---|
content | string | required | — |
content | string | required | — |
wrap | boolean | optional | — |
align | 'left' | 'center' | 'right' | optional | — |
scrollY | number | optional | Vertical scroll offset (lines to skip from top) |
scrollX | number | optional | Horizontal scroll offset (columns to skip from left) |