Logs Viewer

A Tailwind log viewer with a filter input and a scrollable monospace list of timestamped entries tagged info, warn or error. Focusable for keyboard scroll.

src/registry/blocks/logs-viewer.tsx/r/logs-viewer.json

Installation#

bash
npx shadcn@latest add @minidev/logs-viewer

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/logs-viewer.json

Usage#

tsx
import { LogsViewer } from "@/components/ui/logs-viewer"

export function Example() {
  return <LogsViewer />
}

API reference#

LogsViewer takes no props. It ships with realistic sample content: install it, then edit the copy and data in the file directly. The file is yours.

Dependencies#

npm

React only

Built from

All Developer tool UI components for React

Learn more