Skip to content
All components
neoncite

Log Viewer

Structured live-log surface with severity, timestamp and source fields.

Canonical source

Preview

This newly registered component is fully installable and documented. Its dedicated interactive showcase is generated in the extended preview pass; use the canonical source and API contract below in the meantime.

Installation

$bash
npx neoncite@latest add log-viewer

API Reference

PropTypeDefaultDescription
classNamestringExtends the Neoncite classes without replacing semantic behavior.
entriesLogEntry[]Ordered log records with timestamp, severity, source, and message.
compactbooleanfalseUses denser row spacing and typography.
…native / primitive propsvariesForwards the underlying React/HTML props where exposed by the component type.

States

  • default
  • semantic health/status variants where applicable
  • loading/live data where composed

Accessibility

  • Uses native HTML semantics where practical; provide an accessible name for icon-only or content-dependent controls.
  • Neoncite focus-visible treatment must remain visible against OLED surfaces.
  • Decorative glow, scan, pulse, and transition effects must not be the only indication of state.
  • All non-essential animation must respect prefers-reduced-motion.
  • Uses role=log and polite live updates; avoid replacing the full log array at high frequency for assistive technology users.

Composition

  • Install with `npx neoncite add log-viewer`; registry dependencies are resolved recursively.
  • Can be composed with other Neoncite primitives without a private styling runtime.

Token contract

--surface-0…3--hairline--foreground--muted-foreground--primary / --ringsemantic neon/glow tokens where used

SSR / hydration

No special SSR requirement beyond the underlying React/Radix dependency. Interactive client components are marked where required.

RTL

Layout uses logical flow where practical; verify icon direction for directional controls in RTL products.