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-amount-input-react

Latest version: v4.0.5

Overview

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

Scan summary

@molecule/app-amount-input-react was last scanned on 29 Nov 2026 at version 4.0.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 9 versions; the latest 2 were published within 4 days (26–29 Nov 2026).
  • Findings: No rules fired in version 4.0.5.
  • Downloads: 1,198 downloads.

Versions

9 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.0.5 LATEST 29 Nov 2026 No rules fired
4.0.4 26 Nov 2026 No rules fired
4.0.3 17 Nov 2026 No rules fired
4.0.2 14 Nov 2026 Not shown
4.0.1 13 Nov 2026 Not shown

No rules fired in 4.0.5

Findings

Findings for v4.0.5. 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.0.5; other versions have their own rules, not their own score.

README

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

@molecule/app-amount-input-react

React amount input with type toggle.

Exports:

  • <AmountInput> — large currency input with income/expense toggle.
  • AmountType — 'income' | 'expense' | 'transfer' | 'other'.
  • formatCurrency — convenience re-export.

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 { AmountInput } from '@molecule/app-amount-input-react'

const [amount, setAmount] = useState<number | ''>(0)
const [type, setType] = useState<'income' | 'expense'>('expense')

<AmountInput
  amount={amount}
  onAmountChange={setAmount}
  type={type}
  onTypeChange={(t) => setType(t as 'income' | 'expense')}
  currencySymbol="$"
  size="lg"
/>

Type

feature

Installation

npm install @molecule/app-amount-input-react @molecule/app-i18n @molecule/app-react @molecule/app-ui @molecule/app-ui-react react
npm install -D @types/react

API

Interfaces
AmountInputProps

Props for {@link AmountInput}.

interface AmountInputProps {
  /** Current numeric amount (major units). */
  amount: number | ''
  /** Called whenever the amount text changes. */
  onAmountChange: (amount: number | '') => void
  /** Optional type (income/expense/transfer) toggle. */
  type?: AmountType
  /** Called when the user changes the type. When omitted, the toggle is hidden. */
  onTypeChange?: (type: AmountType) => void
  /** Type options to show in the toggle. Defaults to `['income', 'expense']`. */
  typeOptions?: AmountType[]
  /**
   * Optional per-type label overrides. A value provided for a type wins over
   * the translated / `defaultValue` label (prop > `t()` > default), letting a
   * consumer relabel the toggle without wiring a locale bond.
   */
  typeLabels?: Partial<Record<AmountType, string>>
  /** Currency symbol or label rendered to the left of the input. Defaults to `'$'`. */
  currencySymbol?: string
  /**
   * Accessible label for the numeric input. Overrides the translated /
   * `defaultValue` `'Amount'` (prop > `t()` > default).
   */
  ariaLabel?: string
  /** Input size. */
  size?: 'md' | 'lg' | 'xl'
  /** Extra classes. */
  className?: string
}
Types
AmountType

Transaction type used to categorise an amount entry.

type AmountType = 'income' | 'expense' | 'transfer' | 'other'
Functions
AmountInput(props)

Large transaction-style amount input with optional type toggle + currency symbol. Common in budgeting, expense-reporting, and financial-form UX.

function AmountInput({
  amount,
  onAmountChange,
  type,
  onTypeChange,
  typeOptions = ['income', 'expense'],
  typeLabels,
  currencySymbol = '$',
  ariaLabel,
  size = 'lg',
  className,
}: AmountInputProps): ReactElement
  • props — Component props (see {@link AmountInputProps}).
formatCurrency(amount, currency, locale)

Formats a numeric amount as a localized currency string.

function formatCurrency(amount: number, currency?: string, locale?: string): string

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-i18n ^1.0.1
  • @molecule/app-react ^4.4.0 || ^5.0.0
  • @molecule/app-ui ^1.0.1
  • @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

All user-facing text flows through t() with English defaultValue fallbacks under the amountInput.* keys, so the @molecule/app-locales-amount-input companion bond (or the host app's own locale) can translate the type-toggle labels and the input's accessible name. Both are also overridable per-instance without a bond: the typeLabels prop relabels the toggle and ariaLabel sets the input's accessible name (prop > t() > default).

Translations

Translation strings are provided by @molecule/app-locales-amount-input.

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-amount-input-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

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (2)
Research

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

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229