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.
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.jsonPrefer 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
| Prop | Type | Default | Description |
|---|---|---|---|
| liveLabel | string | "LIVE" | Text shown inside the pulsing live badge. |
| viewerCount | string | none | Static viewer-count string, e.g. "342 watching". |
| sessionTitle | string | none | Title of the session currently playing. |
| speakerName | string | none | Current speaker's name. |
| speakerRole | string | undefined | Current speaker's role/title. |
| speakerAvatar | { src: string; alt: string } | undefined | Current speaker's photo. |
| upNext | Event21UpNextItem[] | [] | List of upcoming sessions shown below the live card. |
| className | string | none | Extra 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.
More Event Blocks
View all →conference-hero-with-image
Conference Hero with Image
Split hero with a featured photo, date badge, location, attendee stat, and dual CTAs.
minimal-event-hero
Minimal Event Hero
Centered, image-free hero with an oversized heading, date/location line, and two CTAs.
event-hero-with-ticket-pricing
Event Hero with Ticket Pricing
Centered hero with an early-bird price, a strikethrough original price, and a deadline note.
event-hero-with-social-proof
Event Hero with Social Proof
Hero with a heading, a 3-stat strip (attendees/speakers/countries), and a trusted-by company row.
personal-schedule-builder
Personal Schedule Builder
Interactive session picker that lets attendees build their own conference agenda.
team-discount-calculator
Team Discount Calculator
Live quantity stepper that applies tiered group discounts to a seat total.