LogView
display
LogView: scrollable, highlighted log output
Terminal
$termuijs render log-view
Installation
$ bunx termuijs add log-view
Copies the source into src/components/log-view/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { LogView } from '@termuijs/widgets'ts
new LogView(style: Partial<Style> = {}, opts: LogViewOptions = {})API Reference
LogView
| Prop | Type | Required | Description |
|---|---|---|---|
highlight | Record<string, Color> | optional | Highlight rules: keyword → color |
autoScroll | boolean | optional | Auto-scroll to bottom |
maxLines | number | optional | Maximum lines to retain (0 = unlimited) |