Activity log


Install
npx shadcn add @klarhimmel/activity-logDetailsAbout, usage, props and more
A heading beside a timed log of work: time, actor, one-line event and a status badge per row, with an optional highlighted row that needs the reader and one action.
Import
Import
- features/activity-log
- About
- A heading beside a timed log of work: time, actor, one-line event and a status badge per row, with an optional highlighted row that needs the reader and one action. Static, no animation.
- Category
- What it does, as a grid, a list, tabs or alternating rows. New project? Set it up once: /get-started/installation.
Notes
When to use it
A dated log of events that shows a product working, with one row that waits on the reader. Use it to prove automation or agent work; steps-timeline is for explaining a process rather than showing activity.
Writing for it
- Rows take two to eight entries with time (12), actor (24) and event (140). Use real-looking times and a named actor so the log reads like output. - The badge holds 20 characters and badgeTone picks neutral, accent or outline. Reserve accent for the one outcome that matters. - The needsYou row is optional and carries its own action link. Use it for the one thing that needs a human decision.
Watch out for
needsYou is drawn after all the normal rows, highlighted, and only when the field exists. It counts on top of the eight rows, so the list can reach nine lines.
Pairs well with
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
Props
The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Name the section' | Text, up to 60 characters. |
title | string | 'Say what this log records' | Text, up to 120 characters. |
description | string | 'Say in one sentence what the log sh…' | Text, up to 300 characters. |
link | Link | {…} | See the type. |
rows | { time, actor, event, badge, badgeTone }[] | 5 items | List of 2 to 8. Each item: time, actor, event, badge, badgeTone ('neutral' | 'accent' | 'outline'). |
needsYou | { time, actor, event, badge, badgeTone, action } | {…} | Fields: time, actor, event, badge, badgeTone ('neutral' | 'accent' | 'outline'), action. Optional; empty is not rendered. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |