Audit Log Entry

Single audit log line: actor avatar, actor name, muted action text and the affected target, with a relative timestamp underneath. Stacks into a trail.

src/registry/ui/audit-log-entry.tsx/r/audit-log-entry.json

Installation#

bash
npx shadcn@latest add @minidev/audit-log-entry

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/audit-log-entry.json

Usage#

tsx
import { AuditLogEntry } from "@/components/ui/audit-log-entry"

export function Example() {
  return <AuditLogEntry />
}

API reference#

AuditLogEntry props
PropTypeDefault
actorstring"Priya Raman"
actionstring"archived invoice INV-2038 for Northw...
targetstring-
datestring | Date-
classNamestring-

Dependencies#

npm

React only
All data table components