About
Show who did what and when, grouped by day, with each change written out and the details one click away.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Audit Log to your project and fits it to your theme.
Code
How Audit Log is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client"
import "honestui/theme.css";
import { AuditLog, type AuditLogEntry } from "@/components/ui/honest-audit-log"
const now = Date.UTC(2026, 10, 26, 15, 30)
const entries: AuditLogEntry[] = [
{
id: "m1",
actor: { id: "u1", name: "Ana Ruiz" },
action: "changed the plan of",
target: { label: "Northwind Labs" },
category: "Billing",
timestamp: Date.UTC(2026, 10, 26, 14, 10),
changes: [{ label: "Plan", before: "Team", after: "Business" }],
},
{
id: "m2",
actor: { id: "u2", name: "Dee Park" },
action: "invited",
target: { label: "hana@atlas-works.jp" },
category: "Members",
timestamp: Date.UTC(2026, 10, 26, 11, 45),
},
]
/** A workspace with no events, and one whose chosen filters match nothing. */
export default function AuditLogEmpty() {
return (
<div data-theme="light" className="flex w-full max-w-2xl min-w-0 flex-col gap-[var(--hui-space-5)]">
<AuditLog entries={[]} now={now} labels={{ title: "New workspace" }} />
<AuditLog
entries={entries}
now={now}
timeZone="UTC"
locale="en-US"
filterable
defaultFilter={{ actor: "u2", category: "Billing" }}
labels={{ title: "Filtered workspace" }}
/>
</div>
)
}
















