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
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add activity-v2

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { ActivityV2 } from "@/components/ui/activity-v2"; <ActivityV2 />

Source code

activity-v2.tsx + 1 helper

Zero 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

PropTypeDescription
itemsActivity2Item[]Structured list of items rendered by the component. (Default: [])
filtersstring[]Configures filters.