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

LiveProductCard

live-product-card

Shows live-commerce products with pricing, stock, sales, active state, and purchase action.

Usage

Basic usage

List row layout (default row): serial number link + thumbnail + title + price + snap-up button.

1
Winter thickened sherpa jacket, same style for men and women, exclusive for live broadcast
¥129
tsx
<LiveProductCard
  index={1}
  image={url}
  title="Winter thickened sherpa jacket, same style for men and women, exclusive for live broadcast"
  price={129}
  action={<button>Go to buy</button>}
/>

Crossed price + corner mark + sales volume

originalPrice rendering with crossed out original price; tag corner mark; sold/stock rendering sold and remaining.

1
Flash Sale
Winter thickened sherpa jacket, same style for men and women, exclusive for live broadcast
¥129¥399
Sold 1240 · 86 left
tsx
<LiveProductCard
  index={1}
  image={url}
  title="Winter thickened sherpa jacket"
  price={129}
  originalPrice={399}
  tag="Flash Sale"
  stock={86}
  sold={1240}
  action={<button>Go to buy</button>}
/>

Explaining

explaining Renders a pulse "Explaining" logo at the bottom of the thumbnail to mark the product the anchor is talking about.

2Presenting
Portable thermos cup 316 stainless steel 500ml
¥49.90¥99
Sold 3580
tsx
<LiveProductCard
  index={2}
  image={url}
  title="Portable thermos cup 316 stainless steel 500ml"
  price={49.9}
  originalPrice={99}
  explaining
  sold={3580}
  action={<button>Go to buy</button>}
/>

Grid Card

layout="card" Cut the card vertically, and the thumbnails occupy the entire row, suitable for the product display window grid.

3
Limited edition
Wireless Bluetooth Headset Noise Canceling Version
¥199¥499
Sold 920
4Presenting
Desktop ambient light RGB smart
¥69¥159
Sold 460
tsx
<div className="grid grid-cols-2 gap-2">
  <LiveProductCard layout="card" index={3} image={url} title="Wireless Bluetooth Headset Noise Canceling Version" price={199} originalPrice={499} tag="Limited Edition" sold={920} action={<button>Go and buy</button>} />
  <LiveProductCard layout="card" index={4} image={url} title="Desktop atmosphere light RGB Smart" price={69} originalPrice={159} explaining sold={460} action={<button>Go and buy</button>} />
</div>

When to use

Use LiveProductCard for livestream commerce product lists or grids. Use [Card] for a generic container or PricingTable for comparison.

Import

ts
import { LiveProductCard } from "@hulianui/ui"

Props

NameTypeDefaultDescription
image*string-Product image.
price*number-Current price.
indexnumber-Numbered link badge.
originalPricenumber-Struck original price.
explainingboolean-Active-explanation pulse.
stocknumber-Remaining stock.
soldnumber-Sold count.
currencystring"¥"Currency symbol.
layout"row" | "card""row"Control-panel row or storefront card.
classNamestring-Root class.

Events

EventTypeDescription
onClick() => voidCard activation.

Slots

SlotTypeDescription
title*ReactNodeProduct title.
tagReactNodePromotion tag.
actionReactNodeConsumer-owned purchase action.

Usage notes

  • Action is a slot so the caller owns checkout behavior.
  • Original price renders only when supplied; currency applies to both prices.
  • Built-in presentation, sold-count, and remaining-stock labels follow ConfigProvider locale; enUS provides “Presenting”, “Sold N”, and “N left”, while the no-provider fallback remains Chinese.

Related

Sparkline · ImageViewer · DiffStat · ScoreRing · Badge · Dot

PreviousLivePlayerData DisplayNextLogViewer

On this page

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