Staaarter

Live Session Now Playing

A real-time-styled session display: a pulsing 'LIVE' badge, a static viewer count ('342 watching'), the current speaker's name and photo with the session title, and a short 'Up next' queue list of upcoming sessions below. Perfect for conference live-stream landing sections.

By Staaarter Team
Event
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its avatar, avatar-initials dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/live-session-now-playing.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/event/event21.tsx instead.

Usage

The file also exports event21Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Event21, event21Demo } from "@/components/blocks/event/event21";

export default function Page() {
  return <Event21 {...event21Demo} />;
}

Props

PropTypeDefaultDescription
liveLabelstring"LIVE"Text shown inside the pulsing live badge.
viewerCountstringnoneStatic viewer-count string, e.g. "342 watching".
sessionTitlestringnoneTitle of the session currently playing.
speakerNamestringnoneCurrent speaker's name.
speakerRolestringundefinedCurrent speaker's role/title.
speakerAvatar{ src: string; alt: string }undefinedCurrent speaker's photo.
upNextEvent21UpNextItem[][]List of upcoming sessions shown below the live card.
classNamestringnoneExtra classes for the outer section element.

Types

interface Event21UpNextItem {
  title: string;
  speakerName: string;
  time: string;
}

Behavior notes

  • The pulsing 'LIVE' dot is pure CSS (the animate-pulse utility class) plus static demo copy, there is no real stream connection, viewer count, or backend behind it.
  • The 'Up next' list is static demo data, not a live schedule feed.
  • Speaker avatars fall back to initials (via AvatarFallback/initialsFromName) when no avatar image is supplied or the image fails to load.