Componentdata3.83 KB gzipZero dependencies
Activity Feed
Universal user and team activity stream for deployments, invites, edits, and security audits with timeline avatars, action badges, relative timestamps, and event icons.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add activity-feedOr install the full npm package:
npm install bigbulluiUsage
tsx17 lines
import { ActivityFeed } from "@/components/ui/activity-feed"; <ActivityFeed items={[ { id: "act-1", actor: { name: "Sarah Chen", role: "DEV", initials: "SC" }, type: "deploy", title: "Deployed api-gateway v2.4.1 to production", timestamp: "3m ago", dateGroup: "TODAY", badge: { label: "DEPLOYED", tone: "accent" }, meta: { env: "production", commit: "8f3a91b" }, details: ["Container image built", "Traffic routed to 100%"] } ]}/>Source code
activity-feed.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxactivity-feed.tsx683 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export type ActivityType = | "deploy" | "invite" | "edit" | "security" | "release" | "delete" | "branch" | "config" | "alert" | "comment"; export type ActivityStatus = "completed" | "in_progress" | "failed";Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { ActivityFeed } from "@/components/ui/activity-feed"; <ActivityFeed />| Prop | Type | Description |
|---|---|---|
| items | ActivityItem[] | Array of activity log items |
| title | string | Optional feed title (default: 'ACTIVITY FEED') |
| serial | string | Ticket stub serial or audit number |
| showLiveIndicator | boolean | Whether to show live pulsating indicator (default: true) |
| allowFiltering | boolean | Whether to enable interactive category filtering (default: true) |
| showCardNotches | boolean | Whether to show ticket notches on activity cards (default: true) |
| emptyMessage | string | Empty state message |
| onItemClick | (item: ActivityItem) => void | Callback when an activity item is clicked |