EEnterUI
DocsComponentsThemesDonation
Get Started
      • EmptySearchResult
      • SkeletonTable
      • LogViewer
      • JsonViewer
      • DiffViewer
EnterUIDocsData AnalyticsTables and DataData States and ToolsLogViewer
Data AnalyticsUpdated 6 May 2026

LogViewer

Admin / developer log viewer with level filter, text search, copy, and optional auto-scroll.

Admin / developer log viewer with level filter, text search, copy, and optional auto-scroll.

#Default usage

Build logs

Filter by level or search; copy the visible slice with one click.

  1. 01:00:00INFOBuild started
  2. 01:00:01INFOCompiling sources
  3. 01:00:03WARNCache stale, rebuilding
  4. 01:00:09OKBuild completed
Code
<LogViewer
  height={220}
  lines={[
    { level: "info", message: "Build started", timestamp: "01:00:00" },
    { level: "info", message: "Compiling sources", timestamp: "01:00:01" },
    { level: "warn", message: "Cache stale, rebuilding", timestamp: "01:00:03" },
    { level: "success", message: "Build completed", timestamp: "01:00:09" }
  ]}
/>

#Import

Code
import { LogViewer, type LogLevel, type LogLine } from "@froggdesign/enter-ui-react";

#Accessibility

Viewport is role="log". Each row is a labelled list item with the level chip duplicated as text so colour is not the only cue.

#API

  • lines: LogLine[] with level, message, optional timestamp, meta (object or string).
  • level + onLevelChange: control the level filter.
  • search + onSearchChange: control the search query.
  • autoScroll: scroll to the latest line as new lines arrive.
  • height: viewport height in px.
  • hideToolbar: render only the viewport.

#Styling

Every exported component accepts className. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousSkeletonTable
NextJsonViewer

On this page

  1. Default usage
  2. Import
  3. Accessibility
  4. API
  5. Styling