Photonix

ActivityWidget

A chronological feed of events and activities using the Timeline component.

Preview

Recent Activity

Tracking your latest events
  • New project created

    Dashboard redesign project was started by Alex

    2 hours ago

  • Document updated

    Design system guidelines.pdf was updated

    5 hours ago

  • New member joined

    Sarah Jenkins joined the marketing team

    Yesterday

  • Comment on task

    Alex commented on "Finalize colors"

    2 days ago

  • System alert

    Server storage is reaching 90% capacity

    3 days ago

Usage
import { ActivityWidget } from '@photonix/ultimate';
import { AddOutline } from '@photonix/icons';

const activities = [
  {
    id: '1',
    title: 'New project created',
    timestamp: '2 hours ago',
    icon: <AddOutline />,
    variant: 'primary'
  },
  // ...
];

<ActivityWidget
  title="Recent Activity"
  items={activities}
/>

Component API

ActivityWidget

Prop
Type
Default
Description
title
string
-
subtitle
string
-
actions
React.ReactNode
-
items
ActivityItem[]
[]
loading
boolean
false
maxItems
number
-
footer
React.ReactNode
-
appearance
WidgetAppearance
'outlined'
Widget appearance
padding
string | number
-
Widget padding (default: 16px)
className
string
-
style
React.CSSProperties
-

ActivityItem

Prop
Type
Default
Description
id
string
-
Unique identifier.
title
string
-
Activity title.
description
string
-
Optional detailed description.
timestamp
string
-
Time of activity.
icon
ReactNode
-
Optional icon for the timeline dot.
variant
'default' | 'primary' | 'success' | 'warning' | 'error'
'default'
Color variant of the dot.

Variants

Standard Feed

The default appearance showing a list of activity items with metadata.

Activity

  • New project created

    Dashboard redesign project was started by Alex

    2 hours ago

  • Document updated

    Design system guidelines.pdf was updated

    5 hours ago

  • New member joined

    Sarah Jenkins joined the marketing team

    Yesterday

  • Comment on task

    Alex commented on "Finalize colors"

    2 days ago

  • System alert

    Server storage is reaching 90% capacity

    3 days ago

Standard Feed
<ActivityWidget
  title="Activity"
  items={MOCK_ACTIVITIES}
/>

Loading State

Displays a skeleton preview while data is being fetched.

Recent Activity

Loading State
<ActivityWidget
  title="Recent Activity"
  items={[]}
  loading
/>

Limited Items

Limit the number of displayed items using the maxItems prop.

Latest 3 Events

  • New project created

    Dashboard redesign project was started by Alex

    2 hours ago

  • Document updated

    Design system guidelines.pdf was updated

    5 hours ago

  • New member joined

    Sarah Jenkins joined the marketing team

    Yesterday

Limited Items
<ActivityWidget
  title="Latest 3 Events"
  items={MOCK_ACTIVITIES}
  maxItems={3}
/>

On this page

Preview
Component API
Variants
Standard Feed
Loading State
Limited Items
Photonix UI - React Components, Templates & Figma Design System