activity-feed-02
dashboardblocks/activity-feed-02FreeComponent
dashboardblocks publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by dashboardblocks on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://dashboardblocks.com/r/activity-feed-02.jsonSource
1import {2 ActivityFeedContent,3 ActivityFeedItem,4 ActivityFeedTimeline,5} from '@/registry/components/dashboardblocks/activity-feed'6import { Icon } from '@/registry/components/dashboardblocks/icon'7import {8 AlertCircle,9 ArrowRight,10 CheckCircle2,11 Clock,12 LucideIcon,13 Zap,14} from 'lucide-react'1516import { Button } from '@/components/ui/button'17import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'1819type EventStatus = 'success' | 'progress' | 'error' | 'info'2021interface DeploymentEvent {22 id: number23 title: string24 description: string25 time: string26 status: EventStatus27 icon: LucideIcon28}2930interface ActivityFeed02Props {31 title: string32 events: DeploymentEvent[]33}3435const statusStyles: Record<EventStatus, string> = {36 success: 'border-green-500 bg-green-100 text-green-500',37 progress: 'border-blue-500 bg-blue-100 text-blue-500',38 error: 'border-red-500 bg-red-100 text-red-500',39 info: 'border-purple-500 bg-purple-100 text-purple-500',40}4142const exampleProps: ActivityFeed02Props = {43 title: 'Recent Deployments',44 events: [45 {46 id: 1,47 title: 'Deployment Successful',48 description: 'Production v2.4.1 deployed to all regions',49 time: '10:32 AM',50 status: 'success',51 icon: CheckCircle2,52 },53 {54 id: 2,55 title: 'Build Started',56 description: 'Building production bundle...',57 time: '10:30 AM',58 status: 'progress',59 icon: Clock,60 },61 {62 id: 3,63 title: 'Critical Alert',64 description: 'CPU usage exceeded 90% threshold',65 time: '9:15 AM',66 status: 'error',67 icon: AlertCircle,68 },69 {70 id: 4,71 title: 'Performance Optimized',72 description: 'Cache hit rate improved by 23%',73 time: '8:45 AM',74 status: 'info',75 icon: Zap,76 },77 ],78}7980const ActivityFeed02 = (props: ActivityFeed02Props) => {81 const { title, events } = props82 return (83 <Card>84 <CardHeader>85 <CardTitle className='flex items-center justify-between'>86 {title}87 <Button variant='outline' size='sm'>88 View all89 <ArrowRight />90 </Button>91 </CardTitle>92 </CardHeader>93 <CardContent>94 <ActivityFeedTimeline lineClassName='shadow-xs'>95 {events.map((event) => {96 const EventIcon = event.icon97 return (98 <ActivityFeedItem key={event.id}>99// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from dashboardblocks
All 36 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Activity Feedactivity-feed | dashboardblocks | Components | Free | 1 dep | |
| activity-feed-01activity-feed-01 | dashboardblocks | Components | Free | 1 dep | |
| activity-feed-03activity-feed-03 | dashboardblocks | Components | Free | 1 dep | |
| activity-feed-04activity-feed-04 | dashboardblocks | Components | Free | 1 dep | |
| activity-feed-05activity-feed-05 | dashboardblocks | Components | Free | 1 dep | |
| Animated Numberanimated-number | dashboardblocks | Components | Free | no deps | |
| Animated Waveanimated-wave | dashboardblocks | Components | Free | no deps | |
| area-chart-kpi-01area-chart-kpi-01 | dashboardblocks | Components | Free | no deps |
