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

ReflectiveCard

reflective-card

Displays slotted content on a metallic card with animated diagonal reflection.

Usage

Basic usage

Metal reflective ID card ready to use out of the box, with high-gloss strips sweeping back and forth along the diagonal, built-in by default on title / subtitle / footer.

SECURE ACCESS

ALEXANDER DOE

SENIOR DEVELOPER

ID NUMBER8901-2345-6789
tsx
<ReflectiveCard />

Customized copywriting and color matching

sheenColor controls the main highlight color, baseColor controls the base color, and title / subtitle / footer are all customizable.

SECURE ACCESS

JANE SMITH

PLATINUM MEMBER

MEMBER NO.0042-7781-1190
tsx
<ReflectiveCard
  sheenColor="oklch(0.85 0.16 85)"
  baseColor="var(--color-chart-3)"
  title="JANE SMITH"
  subtitle="PLATINUM MEMBER"
  footerLabel="MEMBER NO."
  footerValue="0042-7781-1190"
/>

Metallic and frosted

metalness controls the intensity of the highlight layer, roughness controls the frosted noise, and speed controls the highlight sweep duration (seconds).

SECURE ACCESS

ALEXANDER DOE

SENIOR DEVELOPER

ID NUMBER8901-2345-6789
tsx
<ReflectiveCard metalness={0.4} roughness={0.8} speed={9} />

Custom content

Passed by children Completely replaces the built-in layout, retaining only the metallic reflective background and borders.

Hulian

Reflective Card

tsx
<ReflectiveCard baseColor="var(--color-chart-2)">
  <div className="flex h-full flex-col items-center justify-center gap-3 text-center">
    <p className="text-3xl font-bold tracking-widest">Hulian</p>
    <p className="text-xs uppercase tracking-[0.3em] opacity-70">
      Reflective Card
    </p>
  </div>
</ReflectiveCard>

When to use

Use ReflectiveCard for a metallic ID, membership, or profile card with built-in title, subtitle, badge, and footer fields. Pass children to replace that layout. Use Card for ordinary content, PricingTable for plan comparison, or Book3D for a dimensional book cover.

Import

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

Props

NameTypeDefaultDescription
sheenColorstringvar(--color-foreground)Main metallic sheen color.
baseColorstringvar(--color-chart-1)Base surface color controlling darker metallic regions.
speednumber6Duration of one sheen pass in seconds.
roughnessnumber0.35Surface noise from 0 for mirror-smooth to 1 for heavily frosted.
metalnessnumber1Overall sheen opacity from 0 to 1.
classNamestring-Class name forwarded to the root.
styleCSSProperties-Inline styles forwarded to the root.

Slots

SlotTypeDescription
titleReactNodeLarge primary name or card title.
subtitleReactNodeSmaller role or tier below the title.
badgeReactNodeHeader badge beside the lock icon; null removes the entire badge region.
footerLabelReactNodeSmall lower-left label such as "ID NUMBER".
footerValueReactNodeMonospaced lower-left value.
childrenReactNodeReplaces the entire built-in ID layout while retaining the reflective surface and border.

Usage notes

  • The sheen and noise are clearest on a dark stage and become subtle on light backgrounds.
  • Passing children disables the built-in title, subtitle, badge, and footer slots.
  • Use full --color- token names such as var(--color-chart-1). [[hulian-token-color-var-needs-color-prefix]] explains why bare var(--primary) does not resolve.

Related

Table · Book3D · ProTable · PricingTable · JsonViewer · EditableTable

Playground

SECURE ACCESS

ALEXANDER DOE

SENIOR DEVELOPER

ID NUMBER8901-2345-6789
<div className="flex items-center justify-center rounded-xl p-8"
     style={{ background: "oklch(0.16 0.02 255)" }}>
  <ReflectiveCard
    speed={6}
    roughness={0.35}
    metalness={1}
  />
</div>
PreviousDecayCardData DisplayNextFolder

On this page

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