# Activity log

- **[Sections](/blocks/)**
- **[Features](/blocks/features/)**
- **Activity log**

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

- **CLI**

  ```
  npx shadcn add @klarhimmel/activity-log
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/activity-log';
  ```

Also called

- 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

- **[Features, alternating](/blocks/features/alternating)**
- **[Features, terminal](/blocks/features/terminal)**
- **[Steps, numbered](/blocks/steps/numbered)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import ActivityLog from '@/components/klarhimmel/blocks/activity-log';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ActivityLog props={{
          "eyebrow": "Name the section",
          "title": "Say what this log records",
          "description": "Say in one sentence what the log shows and over what time. Add that nothing changes without a line here.",
          "link": {
            "label": "Read more",
            "href": "#log"
          },
          "rows": [
            {
              "time": "00:00",
              "actor": "Actor",
              "event": "Say what happened first, and its result.",
              "badge": "Status",
              "badgeTone": "neutral"
            },
            {
              "time": "00:00",
              "actor": "Actor",
              "event": "Say what went wrong, what was done about it and how it was checked.",
              "badge": "Status",
              "badgeTone": "outline"
            },
            {
              "time": "00:00",
              "actor": "Actor",
              "event": "Say what routine work was done, in one line.",
              "badge": "Status",
              "badgeTone": "neutral"
            }
          ],
          "needsYou": {
            "time": "00:00",
            "actor": "Actor",
            "event": "Say what needs a decision from a person.",
            "badge": "Needs action",
            "badgeTone": "accent",
            "action": {
              "label": "Main action",
              "href": "#review"
            }
          }
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

## 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.

- **eyebrow**: Text, up to 60 characters.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 300 characters.
- **link**: See the type.
- **rows**: List of 2 to 8. Each item: time, actor, event, badge, badgeTone ('neutral' | 'accent' | 'outline').
- **needsYou**: Fields: time, actor, event, badge, badgeTone ('neutral' | 'accent' | 'outline'), action. Optional; empty is not rendered.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/logo-cloud/tile-heading)

[Next](/blocks/features/bento)
