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

QueueLane

queue-lane

Shows prioritized queue items in read-only lanes with depth, average-wait, and throughput metrics.

Usage

Basic usage

lanes defines the lane (id/label/tone color bar/meta indicator), items is grouped by laneId, and the order within the lane is FIFO. The default rendering number of track headers + meta.

P0 Emergency2 itemsEqual 0.4s
  1. Real-time risk control approval#1
    Sonnet 4.6etc. 0.2s
  2. Payment abnormality diagnosis#2
    Opus 4.7etc. 0.5s
P1 High3 itemsEqual 1.2s
  1. Work order intent classification#1
    Haiku 4.5etc. 0.9s
  2. Code review suggestions#2
    Sonnet 4.6etc. 1.4s
  3. Contract terms extraction#3
    Opus 4.7etc. 1.8s
P2 Normal4 itemsEqual 3.5s
  1. Weekly report summary generation#1
    Haiku 4.5etc. 3.1s
  2. Image content review#2
    DeepSeek V4etc. 4.0s
  3. FAQ Vector Recall#3
    Haiku 4.5etc. 2.7s
  4. Translation batch processing#4
    DeepSeek V4etc. 5.2s
P3 Low2 itemsEqual 12s
  1. Historical log archive analysis#1
    Haiku 4.5etc. 11s
  2. Offline knowledge base reconstruction#2
    DeepSeek V4etc. 18s
tsx
<QueueLane
  lanes={[
    { id: "p0", label: "P0 Emergency", tone: "var(--color-chart-3)", meta: "Equal 0.4s" },
    { id: "p1", label: "P1 High", tone: "var(--color-chart-4)", meta: "Equal 1.2s" },
    { id: "p2", label: "P2 Normal", tone: "var(--color-primary)", meta: "Equal 3.5s" },
  ]}
  items={jobs}
  renderItem={(job, i) => <JobCard job={job} index={i} />}
/>

Super long queue collapse

maxVisible limits the number of directly displayed items per channel, and will be folded as "N items remain" if exceeded.

P0 Emergency2 itemsEqual 0.4s
  1. Real-time risk control approval#1
    Sonnet 4.6etc. 0.2s
  2. Payment abnormality diagnosis#2
    Opus 4.7etc. 0.5s
P1 High3 itemsEqual 1.2s
  1. Work order intent classification#1
    Haiku 4.5etc. 0.9s
  2. Code review suggestions#2
    Sonnet 4.6etc. 1.4s
  3. Contract terms extraction#3
    Opus 4.7etc. 1.8s
P2 Normal4 itemsEqual 3.5s
  1. Weekly report summary generation#1
    Haiku 4.5etc. 3.1s
  2. Image content review#2
    DeepSeek V4etc. 4.0s
  3. FAQ Vector Recall#3
    Haiku 4.5etc. 2.7s
  4. Translation batch processing#4
    DeepSeek V4etc. 5.2s
P3 Low2 itemsEqual 12s
  1. Historical log archive analysis#1
    Haiku 4.5etc. 11s
  2. Offline knowledge base reconstruction#2
    DeepSeek V4etc. 18s
tsx
<QueueLane
  lanes={lanes}
  items={jobs}
  maxVisible={4}
  renderItem={(job, i) => <JobCard job={job} index={i} />}
/>

Click to drill down

The card is read-only by default; after passing onItemClick, the card can be clicked/keyboard accessible (Enter/Space) for viewing details without changing the queue order.

Text generation2 itemsThroughput 42/min
  1. Marketing copywriting rewriting#1
    Sonnet 4.6etc. 0.8s
  2. Email Drafting#2
    Haiku 4.5etc. 1.1s
Code2 itemsThroughput 18/min
  1. Single test completion#1
    Sonnet 4.6etc. 1.6s
  2. SQL Optimization Suggestions#2
    Opus 4.7etc. 2.2s
Image1 itemThroughput 9/min
  1. Poster generation#1
    Image Organizeretc. 4.5s
Search enhancement2 itemsThroughput 65/min
  1. Policy Q&A Recall#1
    Haiku 4.5etc. 0.3s
  2. Work order similar search#2
    Haiku 4.5etc. 0.5s
tsx
<QueueLane
  lanes={lanes}
  items={jobs}
  onItemClick={(job) => openDetail(job.id)}
  renderItem={(job, i) => <JobCard job={job} index={i} />}
/>

When to use

Use QueueLane to monitor ordered queues grouped by priority or category, such as a task bus or P0-P3 scheduler. The scheduler owns FIFO order and users cannot drag it. Use Kanban for manual workflow movement.

Import

ts
import { QueueLane, groupByLane } from "@hulianui/ui"

Props

NameTypeDefaultDescription
lanes*QueueLaneDef[]-Ordered {id, label, tone?, meta?} lanes; tone is written directly as a CSS color.
items*T[]-Controlled {id, laneId} items grouped by lane while preserving input order; unmatched items are omitted.
maxVisiblenumber-Maximum directly visible items per lane; omission shows all.
orientation"horizontal" | "vertical""horizontal"Lane layout direction.
classNamestring-Root class name.

QueueItem (the constraint on items; your own row data extends it freely)

NameTypeDefaultDescription
id *string-Unique key.
laneId *string-Owning lane id. It must match one of lanes[].id, otherwise the entry is dropped.

Events

EventTypeDescription
onItemClick(item: T) => voidRead-only item drill-down.

Slots

SlotTypeDescription
renderItem*(item: T, index: number) => ReactNodeRenders an item; index is its zero-based position within the lane.
renderLaneHeader(lane: QueueLaneDef, items: T[]) => ReactNodeCustom lane metrics; default shows label, count, and metadata.

Example

tsx
interface Job extends QueueItem { title: string; wait: string; executor: string }

const lanes: QueueLaneDef[] = [
  { id: "p0", label: "P0 Critical", tone: "var(--color-chart-3)", meta: "Avg 0.4s" },
  { id: "p1", label: "P1 High", tone: "var(--color-chart-4)", meta: "Avg 1.2s" },
];
const jobs: Job[] = [
  { id: "t1", laneId: "p0", title: "Real-time risk approval", wait: "0.2s", executor: "Sonnet 4.6" },
  { id: "t3", laneId: "p1", title: "Ticket intent classification", wait: "0.9s", executor: "Haiku 4.5" },
];

<QueueLane<Job>
  lanes={lanes}
  items={jobs}
  maxVisible={5}
  onItemClick={(job) => console.log(job.id)}
  renderItem={(job, index) => (
    <div>#{index + 1} {job.title} · waiting {job.wait}</div>
  )}
/>

Usage notes

  • Items are controlled and input order is FIFO. Apply sorting or aging before passing them.
  • An unknown laneId silently omits the item; update lane definitions and mappings together.
  • Tone is a raw inline CSS value. Token variables need the --color- prefix; see [[hulian-token-color-var-needs-color-prefix]].
  • Overflow copy is built from Chinese "\u8fd8\u6709 N \u6761", meaning “N more items.”
  • Lane counts append " \u6761" (“ items”), and empty lanes show "\u961f\u5217\u7a7a\u95f2" (“Queue idle”).

Related

Table · Book3D · ProTable · PricingTable · JsonViewer · EditableTable

Playground

P0 Emergency2 itemsEqual 0.4s
  1. Real-time risk control approval#1
    Sonnet 4.6etc. 0.2s
  2. Payment abnormality diagnosis#2
    Opus 4.7etc. 0.5s
P1 High3 itemsEqual 1.2s
  1. Work order intent classification#1
    Haiku 4.5etc. 0.9s
  2. Code review suggestions#2
    Sonnet 4.6etc. 1.4s
  3. Contract terms extraction#3
    Opus 4.7etc. 1.8s
P2 Normal4 itemsEqual 3.5s
  1. Weekly report summary generation#1
    Haiku 4.5etc. 3.1s
  2. Image content review#2
    DeepSeek V4etc. 4.0s
  3. FAQ Vector Recall#3
    Haiku 4.5etc. 2.7s
  4. Translation batch processing#4
    DeepSeek V4etc. 5.2s
P3 Low2 itemsEqual 12s
  1. Historical log archive analysis#1
    Haiku 4.5etc. 11s
  2. Offline knowledge base reconstruction#2
    DeepSeek V4etc. 18s
<QueueLane
  lanes={[
    { id: "p0", label: "P0 Emergency", tone: "var(--color-chart-3)", meta: "Equal 0.4s" },
    { id: "p1", label: "P1 High", tone: "var(--color-chart-4)" },
  ]}
  items={queue}
  maxVisible={4}
  onItemClick={(job) => openDetail(job.id)}
  renderItem={(job, i) => <JobCard job={job} rank={i + 1} />}
/>
PreviousEventStreamData DisplayNextDocumentSheet

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Events
    • Slots
    • Example
    • Usage notes
    • Related
  • Playground