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

EventStream

event-stream

Displays a live chronological stream of typed operational events.

Usage

Governance Audit Flow

The semantic color carries "which ones were stopped", click on the title to expand the basis; the released items retain the release description, and the audit can be traced.

  1. 09:12:01Session started · Task contract injected0.9ms
  2. 09:12:03Read pages/list/index.js0.3ms
  3. 09:12:09Write pages/list/index.js0.4ms
  4. 09:12:31Dispatching the 3rd subtask was intercepted1.1ms
  5. 09:13:02Confirmation is required to write a knowledge base entry0.8ms
    Allowed: This time we really need to record
  6. 09:14:20Acceptance command execution completed · Exit code 012.4s
tsx
<EventStream
  items={events}
  maxHeight={320}
  onItemClick={(e) => openDetail(e.id)}
/>

CI pipeline

The same component can be used as a pipeline stage flow by changing a set of data; it takes time to put the meta column, and the equal-width numbers are naturally aligned.

  1. 14:02:11Pull code · main@a1b2c3d3.2s
  2. 14:02:19Dependency installation completed8.1s
  3. 14:03:40Unit test 194/194 passed81s
  4. 14:04:02There are 2 type checks any22s
    src/legacy/adapter.ts:44, :91
  5. 14:04:55End-to-end test 3 failures53s
    Login jump timeout ×2 / Payment callback assertion does not match ×1
tsx
<EventStream items={pipelineSteps} defaultExpanded />

Real-time addition (live)

Newly arrived entries fade in once and then become static. The event stream is open all year round, and any looping animation is just noise.

  1. 09:12:01Session started · Task contract injected0.9ms
  2. 09:12:03Read pages/list/index.js0.3ms
  3. 09:12:09Write pages/list/index.js0.4ms
tsx
<EventStream items={items} live maxHeight={280} />

Time axis right

When embedding the narrow column on the right side of the main content on the left, placing the axis on the right side better fits the line of sight.

  1. 14:02:11Pull code · main@a1b2c3d3.2s
  2. 14:02:19Dependency installation completed8.1s
  3. 14:03:40Unit test 194/194 passed81s
  4. 14:04:02There are 2 type checks any22s
  5. 14:04:55End-to-end test 3 failures53s
tsx
<EventStream items={events} side="right" />

When to use

  • Audit streams and governance interceptions
  • CI pipeline stages
  • Logs and alerts
  • Any continuously appended sequence that must expose anomalies quickly

When not to use

ScenarioUseWhy
Conversation or topic listThreadListEach item opens a conversation and emphasizes read progress.
Milestone narrativeTimelineSparse, manually curated points carry individual weight.
Priority-ordered workQueueLaneThe key information is backlog and waiting, not chronology.

Props

NameTypeDefaultDescription
itemsEventStreamItem[]-Displayed in input order; the component does not sort.
maxHeightnumber | string-Enables internal scrolling when supplied.
emptyTextReactNode"\u6682\u65e0\u4e8b\u4ef6"Empty text; the built-in Chinese means “No events.”
onItemClick(item) => void-Enables clickable and keyboard-accessible items.
livebooleanfalseFades newly appended items in once.
side"left" | "right""left"Timeline side.
defaultExpandedbooleanfalseInitially expands detail content.

EventStreamItem

NameTypeDescription
idstring | numberStable unique identity used by live-entry detection.
tsReactNodeCaller-formatted time.
tone"neutral" | "info" | "success" | "warning" | "danger"Semantic color, defaulting to neutral.
titleReactNodeOne-line event summary.
detailReactNodeCollapsible detail.
metaReactNodeRight-aligned duration or identifier.
overriddenReactNodeSeparate explanation for a manually overridden block.

Design decisions

Time is not formatted. Time zone, precision, and relative-versus-absolute policy belong to the caller's domain.

live animates once, never continuously. A long-running event stream should not create permanent motion noise.

The first frame does not flash. Existing items are treated as seen on initial mount so only later additions stand out.

overridden remains a separate row. “Blocked and then allowed” must remain distinguishable from “never blocked”; folding it into tone would lose audit meaning.

The override row prepends built-in Chinese "\u5df2\u653e\u884c\uff1a", meaning “Allowed by override:”.

Playground

  1. 09:12:01Session started · Task contract injected0.9ms
  2. 09:12:03Read pages/list/index.js0.3ms
  3. 09:12:09Write pages/list/index.js0.4ms
  4. 09:12:31Dispatching the 3rd subtask was intercepted1.1ms
  5. 09:13:02Confirmation is required to write a knowledge base entry0.8ms
    Allowed: This time we really need to record
  6. 09:14:20Acceptance command execution completed · Exit code 012.4s
<EventStream
  items={events}
  onItemClick={(e) => openDetail(e.id)}
/>
PreviousTreemapData DisplayNextQueueLane

On this page

  • Usage
  • Documentation
    • When to use
    • When not to use
    • Props
    • Design decisions
  • Playground