Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Log Stream

ProNew

A tail of logs that follows new lines, stops when you scroll up and counts what you missed, with level switches, a text filter that marks matches, and pause.

Installation

pnpm dlx shadcn@latest add @viewport/log-stream

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
lines*LogLine[]—
liveboolean

New lines are arriving. The view follows them unless it is paused or scrolled up.

false
heightstring

The height of the log, e.g. "20rem".

"20rem"
labelstring

Accessible name.

"Logs"
classNamestring—

Accessibility

  • A log region that is not read line by line; the counts are announced instead.
  • The level is a word on every line, so errors are not only red.
  • Lines wrap; the log is focusable and scrolls from the keyboard.
  • The return-to-latest button leaves the tab order while following.