ComponentDeprecateddata0.7 KB gzipZero dependencies
Activity V2
Filterable activity feed v2 with action badges and avatars.
This component is deprecated. Use activity-feed for new projects.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add activity-v2Or install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { ActivityV2 } from "@/components/ui/activity-v2"; <ActivityV2 />Source code
activity-v2.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxactivity-v2.tsx59 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface Activity2Item { id: string; actor: string; action: string; target: string; time: string;} export interface ActivityV2Props extends React.HTMLAttributes<HTMLDivElement> { items: Activity2Item[]; filters?: string[];} Props
| Prop | Type | Description |
|---|---|---|
| items | Activity2Item[] | Structured list of items rendered by the component. (Default: []) |
| filters | string[] | Configures filters. |