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 LogWithoutBorderDemo() {
  return (
    <div className="w-full max-w-xl mx-auto p-6">
      <Log withBorder={false}>
        <Log.Item
          state="info"
          timeStamp={new Date(2026, 0, 1, 11, 2, 11)}
          source="LINE-2"
        >
          Batch 4471 started
        </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>
    </div>
  );
}

More by alexisroe

View all
  • Number Stepper

    Number Stepper

    2
  • Notification

    Notification

    1
  • Segmented Control

    Segmented Control

    1
  • Chip

    Chip

    1
  • Checkbox

    Checkbox

    1
  • E-Ink Code

    E-Ink Code

  • QR Code

    QR Code

  • Breadcrumbs

    Breadcrumbs