Skip to main content

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 bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
actorReact.ReactNode—Who performed the action.
actionReact.ReactNodeYesThe action phrase, e.g. "exported", "viewed record".
targetReact.ReactNode—The object acted upon, e.g. a record name. Emphasised.
timestampReact.ReactNode—When it happened (pre-formatted, locale-aware).
detailReact.ReactNode—Secondary description line.
metaReact.ReactNode—Tertiary metadata, e.g. IP address / device / location.
tone"neutral" | "create" | "edit" | "delete" | "view" | "access" | "alert"—Action tone — drives the marker icon & colour.
iconReact.ReactNode—Override the marker icon (SVG path nodes).
classNamestring—