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

AwardBadge

award-badge

Displays a laurel emblem beside a prefixed award title in outline, solid, or soft styles.

Usage

Basic usage

Laurel circle ranking + small prefix + bold main title, affixed to README honor plate at the top / official website homepage.

1GitHub Trending#1 Repository Of The Day
tsx
<AwardBadge
  rank={1}
  kicker="GitHub Trending"
  title="#1 Repository Of The Day"
  href="#"
/>

Skin

outline Stroke (default) / solid / soft, select according to floor background.

1Product Hunt#1 Product of the Day1Product Hunt#1 Product of the Day1Product Hunt#1 Product of the Day
tsx
<>
  <AwardBadge rank={1} kicker="Product Hunt" title="#1 Product of the Day" />
  <AwardBadge rank={1} kicker="Product Hunt" title="#1 Product of the Day" variant="solid" />
  <AwardBadge rank={1} kicker="Product Hunt" title="#1 Product of the Day" variant="soft" />
</>

Tone · Size

5 tone + color escape cabin (any CSS color / chart-1..6); sm/md/lg third gear.

2Weekly ListThe fastest growing open source project of the yearA+Safety RatingSupply Chain Security1NuggetsThe most popular component library of the year
tsx
<>
  <AwardBadge size="sm" rank={2} kicker="Weekly List" title="The Fastest Growing Open Source Project of the Year" tone="success" />
  <AwardBadge rank="A+" kicker="Safety Rating" title="Supply Chain Security" tone="neutral" />
  <AwardBadge size="lg" rank={1} kicker="Nuggets" title="The most popular component library of the year" color="chart-5" />
</>

Custom Emblem · No Laurel

emblem slot replaces the entire emblem (trophy/platform logo); wreath={false} only retains the ranking.

2026Best Developer Tools03AwwwardsSite of the Day
tsx
<>
  <AwardBadge emblem={<TrophyMark />} kicker="2026" title="Best Developer Tools" tone="warning" />
  <AwardBadge wreath={false} rank="03" kicker="Awwwards" title="Site of the Day" variant="soft" />
</>

When to use

Use AwardBadge for one prominent honor in a README, homepage, or release announcement: a ranking, award, or rating.

ShieldBadge is dense project metadata designed for rows. AwardBadge is larger, visually singular, and includes an emblem. The SVG laurel is generated by exported laurelLeaves and laurelStemPath helpers, uses currentColor, and remains sharp without image requests.

Import

ts
import { AwardBadge, laurelLeaves, laurelStemPath } from "@hulianui/ui"

Props

NameTypeDefaultDescription
title*ReactNode-Primary award title, such as #1 Repository Of The Day.
kickerReactNode-Uppercase, tracked secondary line such as GitHub Trending.
rankReactNode-Content centered in the laurel, such as 1 or A+.
emblemReactNode-Replaces the laurel and rank with a trophy or platform mark.
wreathbooleantrueShows the laurel.
variant"outline" | "solid" | "soft""outline"Outlined, filled, or quiet skin.
tone"brand" | "neutral" | "success" | "warning" | "danger""brand"Border, laurel, and text tone.
colorstring-CSS color or semantic name such as chart-5, overriding tone.
size"sm" | "md" | "lg""md"Component size.
hrefstring-Makes the whole award a focusable link.
targetstring-Link target; _blank adds safe rel values.
relstring-Explicitly overrides the rel added above (for example when only noopener is wanted).
classNamestring-Custom class plus forwarded native attributes.

laurelLeaves(options?) / laurelStemPath(options?)

These pure geometry helpers accept count, cx, cy, radius, from, to, rx, ry, tilt, and taper. Defaults are exported as laurelDefaults.

Pitfalls

  • Supply platform logos through emblem; third-party brand assets are not bundled.
  • Keep awards rare. Use ShieldBadge and ShieldBadgeGroup for rows of metadata.
  • The emblem region is aria-hidden; include rank information in title or add an aria-label so it is not lost.
  • Solid custom colors use --color-primary-foreground; verify contrast or select the soft skin.

Related

ShieldBadge · Badge · Tag · ScoreRing · Stat

Playground

1GitHub Trending#1 Repository Of The Day
<AwardBadge
  rank={1}
  kicker="GitHub Trending"
  title="#1 Repository Of The Day"
/>
PreviousShieldBadgeData DisplayNextCreditCard

On this page

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