Component libraryAudit log
Audit log
ProReview consumer-supplied actor, action, resource and time records with controlled filters and before-and-after detail.
npx shadcn@latest add @tidal-pro/audit-logInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/audit-log.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Required title, exact consumer-owned summary, visible timezone label and ordered events. Every event has a unique ID, actor, action, resource, native dateTime/timeLabel and optional description, before-and-after changes, record note, article props/ref and native details props/ref. Resources are static labels or real native anchors with attributes/ref and true/false disabled semantics; disabled anchors omit href and suppress primary/auxiliary handlers. Optional controlled native filters preserve form/name/required attributes/ref, call the native onChange before proposing a value and show unmatched controlled values as unavailable. Optional exportAction is a caller-owned native button callback and never creates a file itself. The labelled record region becomes keyboard focusable only while it overflows. Root/list attributes and refs, heading levels, labels, empty content and footer remain configurable. Duplicate event IDs and unmatched filter values remain visible and produce a linked configuration error. The component never filters, persists, verifies, signs, exports, requests, routes or claims tamper-proof storage.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.