Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Collections

  • QuestionCard
  • Table
  • Book3D
  • ProTable
  • PricingTable
  • JsonViewer
  • EditableTable
  • List
  • Descriptions
  • RowActions
  • Tree
  • Card
  • Carousel
  • Video
  • Audio
  • BentoGrid
  • Image
  • MagicCard
  • AnimatedList
  • Marquee
  • Sortable
  • Kanban
  • DesignCanvas
  • LayerTree
  • StageDraw
  • SlideDeck
  • PresenterView
  • ComponentPicker
  • EventStream
  • QueueLane
  • DocumentSheet
  • Novel reader
  • Scheduler
  • Org classroom
  • Danmaku
  • LiveChat
  • LivePlayer
  • LogViewer
  • FileTree
  • CodeReviewThread
  • VirtualList
  • InfiniteScroll
  • LogoLoop
  • BounceCards
  • CardSwap
  • ChromaGrid
  • CircularGallery
  • DomeGallery
  • FlyingPosters
  • InfiniteMenu
  • MagicBento
  • ScrollStack
  • ProfileCard
  • TiltedCard
  • PixelCard
  • DecayCard
  • ReflectiveCard
  • Folder

Charts and Diagrams

  • Flow
  • Diagram
  • Paper
  • SequenceDiagram
  • Sankey
  • Sparkline
  • Funnel
  • Treemap
  • Gantt
  • Heatmap
  • ContributionGraph
  • Legend
  • Chart
  • WorldMap

Information

  • ImageViewer
  • LiveProductCard
  • DiffStat
  • ScoreRing
  • ScoreScale
  • Badge
  • Dot
  • StatusDot
  • Chip
  • FilterChip
  • Coupon
  • Tag
  • Annotation
  • Avatar
  • AvatarCircles
  • User
  • QRCode
  • Comment
  • RelativeTime
  • GitCommit
  • DeployStatus
  • ShieldBadge
  • AwardBadge
  • CreditCard
  • IconTile

Metrics

  • Stat
  • Statistic
  • Meter
  • Timeline
  • NumberTicker

Placeholders

  • Empty
  • Skeleton
  • Watermark

PresenterView

presenter-view

Dual-screen presenter console with current/next slide previews, speaker notes, timer, and BroadcastChannel sync.

Usage

Standard Presenter Console

Shows the live current slide on the left, next step/slide preview and resizable speaker notes on the right, and quick jump controls along the bottom.

Slide 1 / 30/2Synced
13:09:59
00:00
Current slideQuarterly Release Overview
2026 Q4 Product Review

Dual-Screen Presentation & Live Collaboration

01 · Adaptive Scaled Stage02 · Cross-Window Synced Prompting
Speaker: Product Design Team
Next step (1/2)
2026 Q4 Product Review

Dual-Screen Presentation & Live Collaboration

01 · Adaptive Scaled Stage02 · Cross-Window Synced Prompting
Speaker: Product Design Team
Speaker notes
16px
Keep the opening under 2 minutes: 1. Recap the top three user pain points from last quarter. 2. Press Enter to reveal the two flagship upgrades.
tsx
<PresenterView slides={slides} channelName="q4-keynote" />

Countdown Mode & Overtime Alert

In countdown mode, time highlights with a warning color under 1 minute and turns negative with danger styling on overtime.

Slide 2 / 3
13:09:59
15:00
Current slideKey Performance & Delivery Metrics
Core Metrics
First Paint
42ms
External Deps
0
Sync Latency
<5ms
Source: Internal Benchmark Suite
Next slide · #3 Roadmap & Live Q&A
Thank You · Q&A
Next phase introduces annotation replay and multilingual prompting
Speaker notes
16px
Highlight zero external dependencies and 60fps rendering. If asked about offline projection, note that previews sync locally via BroadcastChannel.
tsx
<PresenterView slides={slides} timerMode="countdown" countdownSeconds={900} />

When to Use

Use PresenterView for keynotes, web slide decks, and classroom presentations where the audience screen and the presenter's laptop display different views. It reuses the exact same slides array as SlideDeck and syncs slide index and fragment steps bidirectionally across same-origin windows via native BroadcastChannel when channelName is set.

For standalone responsive stage scaling use FitScreen; for live stage annotations use StageDraw.

Import

ts
import { PresenterView, formatDuration, formatClockTime, computeNextPreview } from "@hulianui/ui"

Props

NameTypeDefaultDescription
slides*SlideDeckItem[]—Array of slides shared with SlideDeck
indexnumber—Controlled current slide index (0-based)
defaultIndexnumber0Uncontrolled initial slide index
onIndexChange(index: number) => void—Called when the active slide index changes
stepnumber—Controlled fragment reveal step for the current slide (0-based)
defaultStepnumber0Uncontrolled initial fragment step
onStepChange(step: number) => void—Called when the current fragment step changes
designWidthnumber1920Design width (px) passed to internal FitScreen previews
designHeightnumber1080Design height (px) passed to internal FitScreen previews
channelNamestring—Optional BroadcastChannel name for bidirectional live sync with SlideDeck; requests current state on mount
timerMode"elapsed" | "countdown""elapsed"Timer display mode (can also be toggled live in the header)
countdownSecondsnumber900Countdown target in seconds (15 minutes by default); highlights warning at <= 60s and danger with negative overtime below 0
autoStartTimerbooleanfalseStarts the presentation timer automatically on mount
defaultNotesFontSizenumber16Initial speaker notes font size in px (clamped to 12..32)
keyboardbooleantrueEnables keyboard shortcuts (ArrowRight, Space, PageDown, ArrowLeft, PageUp, Home, End)
headerExtraReactNode—Extra slot rendered on the right side of the header
footerExtraReactNode—Extra slot rendered on the right side of the footer
labelsPartial<PresenterViewLabels>Built-in defaultsOverrides UI strings and accessible labels
classNamestring—Custom class name on the root element

Exported Helpers

  • formatDuration(seconds: number): string — Formats seconds as MM:SS or HH:MM:SS, including negative overtime (e.g. -75 -> "-01:15").
  • formatClockTime(date: Date): string — Formats a 24-hour wall clock string HH:MM:SS.
  • computeNextPreview(slides, index, step) — Returns { kind: "step" | "slide" | "end", ... } describing the next preview target.

Pitfalls

  • BroadcastChannel only delivers messages between same-origin browser tabs or windows. For cross-origin or multi-device setups, control index and step externally via WebSocket.
  • Both preview panes render inside <FitScreen interactive={false} /> so presenters cannot accidentally click interactive controls inside preview thumbnails.

Related

FitScreen · StageDraw

Playground

Slide 1 / 30/2
13:09:59
00:00
Current slideQuarterly Release Overview
2026 Q4 Product Review

Dual-Screen Presentation & Live Collaboration

01 · Adaptive Scaled Stage02 · Cross-Window Synced Prompting
Speaker: Product Design Team
Next step (1/2)
2026 Q4 Product Review

Dual-Screen Presentation & Live Collaboration

01 · Adaptive Scaled Stage02 · Cross-Window Synced Prompting
Speaker: Product Design Team
Speaker notes
16px
Keep the opening under 2 minutes: 1. Recap the top three user pain points from last quarter. 2. Press Enter to reveal the two flagship upgrades.
<PresenterView slides={slides} timerMode="elapsed" />
PreviousSlideDeckData DisplayNextComponentPicker

On this page

  • Usage
  • Documentation
    • When to Use
    • Import
    • Props
    • Pitfalls
    • Related
  • Playground