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

PricingTable

pricing-table

Compares priced items in transposed feature rows with highlights, badges, and sticky headers.

Usage

Basic usage

columns is the compared item (column), rows is the attribute row; the key of row.values corresponds to column.key.

GPT-5.5
Claude Opus 4.7
DeepSeek V4
Input price / 1M$5.00$5.00$0.55
Output price / 1M$30.00$25.00$2.20
Context Window256K200K128K
Vision✓✓—
Reasoning✓✓✓
tsx
const columns = [
  { key: "gpt", title: "GPT-5.5" },
  { key: "opus", title: "Claude Opus 4.7" },
  { key: "deepseek", title: "DeepSeek V4" },
];
const rows = [
  { key: "in", label: "Input price / 1M", values: { gpt: "$5.00", opus: "$5.00", deepseek: "$0.55" } },
  { key: "out", label: "Output price / 1M", values: { gpt: "$30.00", opus: "$25.00", deepseek: "$2.20" } },
  { key: "ctx", label: "Context Window", values: { gpt: "256K", opus: "200K", deepseek: "128K" } },
];

<PricingTable columns={columns} rows={rows} />

Highlight recommended column

Add highlight stroke to highlight the column, and badge hang the corner mark at the column head.

GPT-5.5
Recommended
Claude Opus 4.7
DeepSeek V4
Input price / 1M$5.00$5.00$0.55
Output price / 1M$30.00$25.00$2.20
Context Window256K200K128K
Vision✓✓—
Reasoning✓✓✓
tsx
const columns = [
  { key: "gpt", title: "GPT-5.5" },
  { key: "opus", title: "Claude Opus 4.7", highlight: true, badge: "Recommended" },
  { key: "deepseek", title: "DeepSeek V4" },
];

<PricingTable columns={columns} rows={rows} />

When to use

Use PricingTable to compare attributes of plans, products, or models side by side, such as price, context window, and capabilities. Unlike Table, whose rows are records, PricingTable treats each column as the compared subject.

Import

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

Props

NameTypeDefaultDescription
columns*PricingColumn[]-Compared subject columns.
rows*PricingRow[]-Attribute and price rows.
stickyHeaderbooleantrueKeeps the header visible while scrolling.
borderedbooleantrueWhether to draw the outer frame (rounded corners and border). Pass false inside an already bordered card to avoid a double frame; the table always carries its own surface background instead of borrowing the container's.
classNamestring-Root class name.

PricingColumn has key*, title*, highlight?, badge?, and header?; a custom header replaces the title region. PricingRow has key*, label*, and values: Record<string, ReactNode>, keyed by column key.

Example

tsx
const columns: PricingColumn[] = [
  { key: "gpt", title: "GPT-5.5" },
  { key: "opus", title: "Claude Opus 4.7", highlight: true, badge: "Recommended" },
  { key: "deepseek", title: "DeepSeek V4" },
];

const rows: PricingRow[] = [
  { key: "in", label: "Input / 1M", values: { gpt: "$5.00", opus: "$5.00", deepseek: "$0.55" } },
  { key: "out", label: "Output / 1M", values: { gpt: "$30.00", opus: "$25.00", deepseek: "$2.20" } },
  { key: "ctx", label: "Context window", values: { gpt: "256K", opus: "200K", deepseek: "128K" } },
];

<PricingTable columns={columns} rows={rows} />

Usage notes

  • Every row.values key must match a column.key; missing keys produce empty cells.
  • Badge space is created only by highlight: true, so badge is meaningful only on highlighted columns.

Related

Table · Book3D · ProTable · JsonViewer · EditableTable · List

Playground

GPT-5.5
Recommended
Claude Opus 4.7
DeepSeek V4
Input price / 1M$5.00$5.00$0.55
Output price / 1M$30.00$25.00$2.20
Context Window256K200K128K
Vision✓✓—
Reasoning✓✓✓
<PricingTable columns={columns} rows={rows} />
PreviousProTableData DisplayNextJsonViewer

On this page

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