Components
Activity log
NativeActor and change entries grouped by day in an explicit timezone.
November 15, 2026
Amelia Chen approved the launch assets
Version 4 · Ready for the November campaignRafael Costa updated the project deadline
November 20 → November 24
November 14, 2026
Nora Williams uploaded 6 product photos
Photography / Autumn collectionAyu Pratama joined the project
Installation
npx nook-ui@latest add activity-logPrompt
Paste this into your AI coding assistant. It adds this exact component, the same way the CLI does, and tells the assistant how to use it.
Short. For assistants that can run commands in your project.
Add the Nook "Activity log" component to this project, exactly as Nook ships it.
Actor and change entries grouped by day in an explicit timezone.
Steps
1. Check for `nook.json` in the project root. If it is missing, run `npx nook-ui@latest init` first (React or Next.js with Tailwind CSS v4). It adds the Nook tokens, the theme and `cn()`.
2. Run `npx nook-ui@latest add activity-log`. It writes `components/ui/activity-log.tsx` together with everything the component needs. Do not write the component from memory.
3. If you cannot run commands, fetch http://localhost:3000/r/activity-log.json, write every entry of `files` to the path it names, install the packages in `dependencies`, and repeat for each name in `registryDependencies`.
4. Use it where I ask. Start from this example:
```tsx
import { ActivityLog } from "@/components/ui/activity-log";
export default function Example() {
return (
<ActivityLog
className="w-full"
entries={[
{
id: "a",
at: "2026-11-15T14:42:00Z",
actor: "Amelia Chen",
action: "approved the launch assets",
detail: "Version 4 · Ready for the November campaign",
},
{
id: "b",
at: "2026-11-15T11:18:00Z",
actor: "Rafael Costa",
action: "updated the project deadline",
detail: "November 20 → November 24",
},
{
id: "c",
at: "2026-11-14T16:05:00Z",
actor: "Nora Williams",
action: "uploaded 6 product photos",
detail: "Photography / Autumn collection",
},
{
id: "d",
at: "2026-11-14T09:30:00Z",
actor: "Ayu Pratama",
action: "joined the project",
},
]}
/>
);
}
```
API
- `ActivityLog`: Actor and change entries grouped by day in an explicit timezone.
- `entries` (`ActivityEntry[]`): ID, ISO timestamp, actor, action and optional detail.
- `timeZone` (`string`, default UTC): Timezone used for grouping and times.
- `locale` (`string`, default en-US): Date and time locale.
- `emptyText` (`string`): Message for an empty log.
Rules
- Colors, radii, shadows and motion come from Nook tokens and classes such as `bg-primary`, `text-muted-foreground`, `border-border`, `rounded-lg` and `h-control`. Never hard-code them.
- Do not restyle or simplify the file. Change how it looks through `className`, its props and the theme.
- It must keep working with the keyboard, in light and dark mode, and in the sharp, soft and bold styles.
- Accessibility: Native sections, ordered lists and time elements express the chronology without color dependence.
Done when the component renders like the example in light and dark mode and the project type-checks.Usage
import { ActivityLog } from "@/components/ui/activity-log";
export default function Example() {
return (
<ActivityLog
className="w-full"
entries={[
{
id: "a",
at: "2026-11-15T14:42:00Z",
actor: "Amelia Chen",
action: "approved the launch assets",
detail: "Version 4 · Ready for the November campaign",
},
{
id: "b",
at: "2026-11-15T11:18:00Z",
actor: "Rafael Costa",
action: "updated the project deadline",
detail: "November 20 → November 24",
},
{
id: "c",
at: "2026-11-14T16:05:00Z",
actor: "Nora Williams",
action: "uploaded 6 product photos",
detail: "Photography / Autumn collection",
},
{
id: "d",
at: "2026-11-14T09:30:00Z",
actor: "Ayu Pratama",
action: "joined the project",
},
]}
/>
);
}Examples
Empty log
Nothing has happened on this project yet. Changes will show up here.
German locale
15. November 2026
Lena Fischer hat die Rechnung freigegeben
INV-2026-044
14. November 2026
Jonas Weber hat einen Kommentar hinzugefügt
Loading activity
Props
ActivityLog
Actor and change entries grouped by day in an explicit timezone.
| Prop | Type | Default | Description |
|---|---|---|---|
| entries | ActivityEntry[] | – | ID, ISO timestamp, actor, action and optional detail. |
| timeZone | string | UTC | Timezone used for grouping and times. |
| locale | string | en-US | Date and time locale. |
| emptyText | string | – | Message for an empty log. |
Accessibility
Native sections, ordered lists and time elements express the chronology without color dependence.
Checked against WCAG 2.1 AA with automated axe tests and keyboard tests on every release.