ActivityFeed

A feed joined by a thin line. New items slide in at the top while the rest make room; the first load rises in item by item. Data.

Open playground
  • Mira Chen released v0.4.0
    2 hours ago
  • Jon Park commented on Kanban drop slot
    Yesterday
    Love the way the others slide apart.
  • Ada Okafor starred smoui
    Yesterday

About

ActivityFeed is a React component in the Data category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { ActivityFeed } from "@ashutoshswamy/smoui" and set items.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { ActivityFeed } from "@ashutoshswamy/smoui";

<ActivityFeed items={[
  { id: "1", name: "Mira Chen", action: "released", target: "v0.4.0", time: "2 hours ago", icon: "sparkles" },
]} />

Props 1

items

Newest first. Add to the front and it slides in.

{ id; name; action; target?; time; icon?; detail? }[]