Live Stream Player Section
A video player section: a large thumbnail area with a centered decorative play button overlay, a pulsing 'LIVE' indicator badge, a viewer count, and a row of multi-platform streaming links below (YouTube/Twitch/X icon + label pairs). Perfect for virtual events and conference live streams.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/live-stream-player-section.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/event/event22.tsx instead.
Usage
The file also exports event22Demo, 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 { Event22, event22Demo } from "@/components/blocks/event/event22"; export default function Page() { return <Event22 {...event22Demo} />; }
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". |
| heading | string | none | Session/stream title shown under the thumbnail. |
| description | string | undefined | Supporting paragraph under the heading. |
| thumbnail | { src: string; alt: string } | undefined | Video thumbnail/preview image; falls back to a MediaSlot placeholder when omitted. |
| platforms | Event22Platform[] | [] | Row of streaming-platform link pairs shown below the player. |
| className | string | none | Extra classes for the outer section element. |
Types
interface Event22Platform { label: string; icon: LucideIcon; href?: string; }
Behavior notes
- There is no real video embed: the thumbnail is a static image (via MediaSlot) and the centered play button is a decorative, non-functional <button> with no click handler.
- The pulsing 'LIVE' badge and viewer count are pure CSS (animate-pulse) plus static demo copy, not a real stream connection.
- Platform links (YouTube/Twitch/X) render as plain anchors with no real embed or navigation behind them in the demo; each platform's icon is a plain lucide-react component reference passed in as data (safe here since this block is a Server Component).
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.