alexisroe

Log

Component

About

A monochrome activity/event log list that shows severity badges, timestamps, an optional source tag and an acknowledgement marker for each entry, styled for e-ink style displays.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Log to your project and fits it to your theme.

Code

How Log is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Log from "@/components/ui/log";

export default function LogDemo() {
  return (
    <div className="w-full max-w-xl mx-auto p-6">
      <Log title="Line 2">
        <Log.Item
          state="critical"
          timeStamp={new Date(2026, 0, 1, 11, 31, 44)}
          source="CELL-1"
        >
          Safety guard opened during motion
        </Log.Item>
        <Log.Item
          state="error"
          timeStamp={new Date(2026, 0, 1, 11, 20, 3)}
          source="PRESS-7"
          ack
        >
          Cycle aborted
        </Log.Item>
        <Log.Item
          state="warning"
          timeStamp={new Date(2026, 0, 1, 11, 14, 52)}
          source="PRESS-7"
        >
          Torque above tolerance (18.4 Nm)
        </Log.Item>
        <Log.Item
          state="info"
          timeStamp={new Date(2026, 0, 1, 11, 2, 11)}
          source="LINE-2"
        >
          Batch 4471 started
        </Log.Item>
      </Log>
    </div>
  );
}

More by alexisroe

View all
  • E-Ink Progress Bar

    E-Ink Progress Bar

  • Navigation

    Navigation

  • Pill

    Pill

  • Notification

    Notification

  • Number Stepper

    Number Stepper

  • Value Display

    Value Display

  • Last Updated

    Last Updated

  • List

    List