Skip to content
caliper ui docs

Pro

Feed stream

A live feed that keeps your place: at the top new items slide in; scrolled away, a pill counts what is waiting and takes you back up.

Pro
pnpm dlx shadcn@latest add @caliper/feed-stream

Halden workspace

What the finance team did today

  • Amara Okafor approved INV-20414 min ago
  • Tomás Ferreira commented on the Ostra deal8 min ago
  • Priya Raman matched 12 payments12 min ago
  • Kiara Murayama invited a teammate16 min ago
  • Rafael Abreu closed September20 min ago
  • Amara Okafor exported the ledger24 min ago
  • Tomás Ferreira changed a rule28 min ago
  • Priya Raman approved INV-204132 min ago

Installs components/ui/feed-stream.tsxDepends on lucide-reactMotion honours reduced motion

When to use

Use it for

  • Activity, audit and support feeds that update live.
  • Dashboards where events arrive while people read.

Skip it when

  • Lists that change only on refresh.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/feed-stream

Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

Usage

Import it from your copy of the source. The example behind the preview comes with the source.

example.tsx
import { FeedStream } from "@/components/ui/feed-stream"

The worked example comes with Pro

The 55-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

FeedStream

component
PropTypeDefaultDescription
items *readonly T[]—Newest first.
getKey *(item: T) => string—
renderItem *(item: T) => ReactNode—
label *string—Names the feed, e.g. "Activity".
heightnumber360Height of the scrolling area in pixels.
classNamestring—

Accessibility

It exposes region and status semantics, with aria-label and aria-hidden kept in step with state. Changes that matter are announced through a live region.

No custom key handling; Tab and the native activation keys do the work.

Motion

It checks prefers-reduced-motion itself and settles immediately instead of travelling. Every state is still reachable.

All Changing values examples