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-vue

Latest version: v1.1.2

Overview

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

Scan summary

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

  • Releases: 5 versions; the latest 2 were published within 6 days (24–29 Nov 2026).
  • Findings: No rules fired in version 1.1.2.
  • Downloads: 704 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.2 LATEST 29 Nov 2026 No rules fired
1.1.1 24 Nov 2026 No rules fired
1.1.0 19 Nov 2026 No rules fired
0.0.1-stage 18 Nov 2026 Not shown
0.0.0-stage 18 Nov 2026 Not shown

No rules fired in 1.1.2

Findings

Findings for v1.1.2. 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 1.1.2; 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-vue

Vue 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, HeroMetricTrendChipProps.

This is the Vue counterpart of @molecule/app-hero-metric-card-react: the same exports, the same props (React names), and the same DOM for the same input, so an app switches framework by changing only the package name in its imports. Node-valued props (title, value, unit, subtitle, progressRing, icon) arrive as a prop or as a same-named slot.

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 { createApp, defineComponent, h } from 'vue'

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

const App = defineComponent({
  setup() {
    return () =>
      h(HeroMetricCard, {
        title: 'Total Revenue',
        value: '$84,320',
        unit: 'USD',
        trend: { direction: 'up', delta: '+12.4%' },
        subtitle: 'vs last month',
        accent: 'success',
        onClick: () => goTo('/revenue'),
      })
  },
})

createApp(App).mount('#app')

Type

feature

Installation

npm install @molecule/app-hero-metric-card-vue @molecule/app-i18n @molecule/app-ui @molecule/app-ui-vue @molecule/app-vue vue

API

Interfaces
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>.

Node-valued props (title, value, unit, subtitle, progressRing, icon) also arrive as a same-named slot; components accept either.

interface HeroMetricCardProps {
  /** Title / label for the metric (usually `t('...')`), or its same-named slot. */
  title?: VNodeChild
  /** The large primary value (string or formatted number), or its same-named slot. */
  value?: VNodeChild
  /** Optional unit shown next to the value (e.g. `'kcal'`, `'bpm'`), or its same-named slot. */
  unit?: VNodeChild
  /** Optional trend chip rendered below the value. */
  trend?: HeroMetricTrend
  /** Optional supporting text below the trend / value, or its same-named slot. */
  subtitle?: VNodeChild
  /** Optional progress ring or sparkline node shown to the right, or its same-named slot. */
  progressRing?: VNodeChild
  /** Optional leading icon (used when no `progressRing` is provided), or its same-named slot. */
  icon?: VNodeChild
  /** 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
}
HeroMetricTrendChipProps

Props for <HeroMetricTrendChip>.

interface HeroMetricTrendChipProps {
  /** Direction + pre-formatted delta string. */
  trend: HeroMetricTrend
  /** Extra classes. */
  className?: 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 })
Constants
HeroMetricCard

Top-of-dashboard hero metric card.

Layout: large value left (with optional unit + trend chip + subtitle), progressRing or icon slot to the right. The card's padding moves onto the inner wrapper so the accent bar can sit full-bleed against the top edge; overflow: hidden clips the bar to the card's rounded corners.

const HeroMetricCard: DefineComponent<
  ExtractPropTypes<{
    title: null
    value: null
    unit: null
    trend: { type: PropType<HeroMetricCardProps['trend']>; default: undefined }
    subtitle: null
    progressRing: null
    icon: null
    accent: { type: PropType<HeroMetricAccent>; default: undefined }
    onClick: { type: PropType<(event?: MouseEvent) => void>; default: undefined }
    loading: { type: BooleanConstructor; default: boolean }
    className: StringConstructor
    dataMolId: StringConstructor
  }>,
  () => VNode,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<
    ExtractPropTypes<{
      title: null
      value: null
      unit: null
      trend: { type: PropType<HeroMetricCardProps['trend']>; default: undefined }
      subtitle: null
      progressRing: null
      icon: null
      accent: { type: PropType<HeroMetricAccent>; default: undefined }
      onClick: { type: PropType<(event?: MouseEvent) => void>; default: undefined }
      loading: { type: BooleanConstructor; default: boolean }
      className: StringConstructor
      dataMolId: StringConstructor
    }>
  > &
    Readonly<{}>,
  {
    trend: HeroMetricTrend | undefined
    accent: HeroMetricAccent
    onClick: (event?: MouseEvent) => void
    loading: boolean
  },
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>
  • props — Component props (see {@link HeroMetricCardProps}).

Returns: The hero metric card component.

HeroMetricTrendChip

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.

const HeroMetricTrendChip: DefineComponent<
  ExtractPropTypes<{
    trend: { type: PropType<HeroMetricTrend>; required: true }
    className: StringConstructor
  }>,
  () => VNode,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<
    ExtractPropTypes<{
      trend: { type: PropType<HeroMetricTrend>; required: true }
      className: StringConstructor
    }>
  > &
    Readonly<{}>,
  {},
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>
  • props — Component props (trend, className).

Returns: The trend chip component.

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-i18n ^1.0.1
  • @molecule/app-ui ^1.3.11
  • @molecule/app-ui-vue ^1.1.0
  • @molecule/app-vue ^3.13.0 || ^4.0.0
  • vue ^3.4.0
Runtime Dependencies
  • @molecule/app-i18n

  • @molecule/app-ui

  • @molecule/app-ui-vue

  • @molecule/app-vue

  • vue

  • 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 (leading-none on the big value) comes from cm.heroMetricCardValue.

  • getClassMap() requires a bonded ClassMap. Text uses @molecule/app-i18n's t() through useTranslation(), so it follows a locale switch, 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-vue

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 (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (2)
Research

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

Frame 2085668439 (1)
Group 1261154229