AuditLogEntry
One immutable row of an audit trail. Compose several inside <AuditLog> to render a connected timeline.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
One immutable row of an audit trail.
Accessibility
Masked values stay obscured to assistive tech until revealed; the reveal toggle is a labelled button. Audit entries are an ordered list.
Install and import
npx shadcn@latest add @prism/audit-log-entry
import { AuditLogEntry } from '@/components/prism/AuditLogEntry';
In a no-build prototype, read it from the bundle instead: const { AuditLogEntry } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
actor | React.ReactNode | — | Who performed the action. |
action | React.ReactNode | Yes | The action phrase, e.g. "exported", "viewed record". |
target | React.ReactNode | — | The object acted upon, e.g. a record name. Emphasised. |
timestamp | React.ReactNode | — | When it happened (pre-formatted, locale-aware). |
detail | React.ReactNode | — | Secondary description line. |
meta | React.ReactNode | — | Tertiary metadata, e.g. IP address / device / location. |
tone | "neutral" | "create" | "edit" | "delete" | "view" | "access" | "alert" | — | Action tone — drives the marker icon & colour. |
icon | React.ReactNode | — | Override the marker icon (SVG path nodes). |
className | string | — |