Overview
Display and scroll application logs.Import
Usage
Live Preview
Run Locally
npm run tsx:core-gallery
Props
- maxLines?: number — Retained lines (default 500).
- autoScroll?: boolean — Scroll to bottom on push (default true).
- timestamp?: boolean — Prefix lines with [HH:MM:SS].
- BaseProps: scrollable container with label ‘Logs’ by default.
Methods
- push(line), clear().
- setMaxLines(n), setAutoScroll(bool), setTimestamp(bool).
- getLogCount(), scrollToTop(), scrollToBottom().
Installation
Import
Quick Start
Production Examples
Testing
Best Practices
- Mantieni
maxLinesragionevole (200–1000) per performance ottimali.
