Scan your whole stack
From OX Research Newsroom
Are you using @molecule/app-hero-metric-card-vue?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.1.2
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
Vue hero metric card primitives.
Exports:
<HeroMetricCard> — top-of-dashboard hero metric card.<HeroMetricTrendChip> — directional ▲/▼ + delta chip used inside the card.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.tsJSDoc, not this file.
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')
feature
npm install @molecule/app-hero-metric-card-vue @molecule/app-i18n @molecule/app-ui @molecule/app-ui-vue @molecule/app-vue vue
HeroMetricTrendTrend 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
}
HeroMetricCardPropsProps 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
}
HeroMetricTrendChipPropsProps for <HeroMetricTrendChip>.
interface HeroMetricTrendChipProps {
/** Direction + pre-formatted delta string. */
trend: HeroMetricTrend
/** Extra classes. */
className?: string
}
HeroMetricTrendDirectionDirection of a hero-metric trend chip.
'up' — value rose since the prior period.'down' — value fell since the prior period.type HeroMetricTrendDirection = 'up' | 'down'
HeroMetricSemanticAccentSemantic 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'
HeroMetricAccentOptional 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 })
HeroMetricCardTop-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.
HeroMetricTrendChipCompact 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.
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.0vue ^3.4.0@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.
Translation strings are provided by @molecule/app-locales-hero-metric-card.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.