Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@molecule/app-hero-metric-card-react

Latest version: v4.1.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: vialoh
45 Stars
4 Forks
10 Versions
1.4K Downloads
TypeScript Repo language

Scan summary

@molecule/app-hero-metric-card-react was last scanned on 29 Nov 2026 at version 4.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 10 versions; the latest 3 were published within 6 days (24–29 Nov 2026).
  • Findings: No rules fired in version 4.1.1.
  • Downloads: 1,395 downloads.

Versions

10 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.1.1 LATEST 29 Nov 2026 No rules fired
4.1.0 26 Nov 2026 No rules fired
4.0.4 24 Nov 2026 No rules fired
4.0.3 16 Nov 2026 Not shown
4.0.2 14 Nov 2026 Not shown

No rules fired in 4.1.1

Findings

Findings for v4.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 4.1.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@molecule/app-hero-metric-card-react

React hero metric card primitives.

Exports:

  • <HeroMetricCard> — top-of-dashboard hero metric card.
  • <HeroMetricTrendChip> — directional ▲/▼ + delta chip used inside the card.
  • Type aliases: HeroMetricCardProps, HeroMetricTrend, HeroMetricTrendDirection, HeroMetricAccent, HeroMetricSemanticAccent.

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Quick Start

import { HeroMetricCard } from '@molecule/app-hero-metric-card-react'

;<HeroMetricCard
  title="Total Revenue"
  value="$84,320"
  unit="USD"
  trend={{ direction: 'up', delta: '+12.4%' }}
  subtitle="vs last month"
  accent="success"
  onClick={() => navigate('/revenue')}
/>

Type

feature

Installation

npm install @molecule/app-hero-metric-card-react @molecule/app-i18n @molecule/app-react @molecule/app-ui @molecule/app-ui-react react
npm install -D @types/react

API

Interfaces
HeroMetricTrendChipProps

Props for {@link HeroMetricTrendChip}.

interface HeroMetricTrendChipProps {
  /** Direction + pre-formatted delta string. */
  trend: HeroMetricTrend
  /** Extra classes. */
  className?: string
}
HeroMetricTrend

Trend chip rendered below the hero value.

delta is rendered verbatim — the caller is responsible for sign, units, and locale formatting.

interface HeroMetricTrend {
  /** Direction arrow / color. */
  direction: HeroMetricTrendDirection
  /** Pre-formatted delta string, e.g. `'+2.4%'` or `'-12 bpm'`. */
  delta: string
}
HeroMetricCardProps

Props for <HeroMetricCard>.

interface HeroMetricCardProps {
  /** Title / label for the metric (usually `t('...')`). */
  title: ReactNode
  /** The large primary value (string or formatted number). */
  value: ReactNode
  /** Optional unit shown next to the value (e.g. `'kcal'`, `'bpm'`). */
  unit?: ReactNode
  /** Optional trend chip rendered below the value. */
  trend?: HeroMetricTrend
  /** Optional supporting text below the trend / value. */
  subtitle?: ReactNode
  /** Optional progress ring or sparkline ReactNode shown to the right. */
  progressRing?: ReactNode
  /** Optional leading icon (used when no `progressRing` is provided). */
  icon?: ReactNode
  /** Optional accent border color (top edge). */
  accent?: HeroMetricAccent
  /** Optional click handler — turns the card into a button-role interactive. */
  onClick?: () => void
  /**
   * When `true`, swaps the value for a localized loading line and
   * announces a loading state to assistive tech.
   */
  loading?: boolean
  /** Extra classes on the outer Card. */
  className?: string
  /** `data-mol-id` for AI-agent selectors. */
  dataMolId?: string
}
Types
HeroMetricTrendDirection

Direction of a hero-metric trend chip.

  • 'up' — value rose since the prior period.
  • 'down' — value fell since the prior period.
type HeroMetricTrendDirection = 'up' | 'down'
HeroMetricSemanticAccent

Semantic accent names for the hero card's top-edge accent bar.

Each name resolves at render time to a real ClassMap ColorVariant (and therefore a real, theme-aware color token). Note the two the theme has no matching token for: 'danger' → error and 'neutral' → secondary.

type HeroMetricSemanticAccent = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral'
HeroMetricAccent

Optional accent color for the hero card's top edge.

A semantic name ({@link HeroMetricSemanticAccent}) is resolved through cm.progressColor() to a real, theme-aware ClassMap color token, so the accent bar is visibly colored in both light and dark themes. An arbitrary CSS color string is also accepted and applied inline (a one-off accent color — the documented ClassMap exception).

type HeroMetricAccent = HeroMetricSemanticAccent | (string & { __raw?: never })
Functions
HeroMetricCard(props)

Top-of-dashboard hero metric card.

Replaces the bespoke *HeroCard components found across flagship dashboards (CalorieRingCard, TodayHeroCard, MoodHeroCard, SleepScoreHeroCard, PetSnapshotHero, NextAppointmentCard, WorkoutHeroCard, VitalsHeroCard, …) with a single composable primitive.

Layout: large value left (with optional unit + trend chip + subtitle), progressRing or icon slot to the right.

Styling routes entirely through getClassMap() — including the colored top-edge accent, which is a full-width bar tinted via cm.progressColor(). Inline style is used only for the bar's fixed height (and a one-off raw accent color when the caller passes a CSS color string).

function HeroMetricCard({
  title,
  value,
  unit: unitProp,
  trend,
  subtitle: subtitleProp,
  progressRing: progressRingProp,
  icon,
  accent,
  onClick,
  loading = false,
  className,
  dataMolId,
}: HeroMetricCardProps): React.ReactElement
  • props — Component props.

Returns: The rendered hero metric card element.

HeroMetricTrendChip(props)

Compact trend indicator rendered below the hero value.

Shows a directional arrow (▲ / ▼) followed by the caller-provided delta string. The arrow's aria-label is localized via @molecule/app-i18n so screen readers announce "Trending up" or "Trending down" rather than the bare glyph.

function HeroMetricTrendChip({ trend, className }: HeroMetricTrendChipProps): React.ReactElement
  • props — Component props.

Returns: The rendered trend chip element.

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-i18n ^1.0.1
  • @molecule/app-react ^4.13.0 || ^5.0.0
  • @molecule/app-ui ^1.3.11
  • @molecule/app-ui-react ^4.4.0
  • react ^18.0.0 || ^19.0.0
Runtime Dependencies
  • @molecule/app-i18n

  • @molecule/app-react

  • @molecule/app-ui

  • @molecule/app-ui-react

  • react

  • Every semantic accent (primary/success/warning/danger/info/ neutral) resolves to a REAL, theme-aware ClassMap color via cm.progressColor() — visibly colored in both light and dark themes. danger maps to the theme's error token and neutral to secondary (the theme defines no danger/neutral token). A raw CSS color string is also accepted for one-off brand accents.

  • Styling routes through getClassMap() (muted text = cm.textMuted, caps/tracking = cm.uppercase/cm.trackingWide). The lone raw utility is leading-none on the big value — a line-height with no ClassMap member.

  • getClassMap() requires a bonded ClassMap. Text uses @molecule/app-i18n's t() with English fallbacks — the companion @molecule/app-locales-hero-metric-card bond supplies translations.

Translations

Translation strings are provided by @molecule/app-locales-hero-metric-card.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @molecule/app-hero-metric-card-react

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229