
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
@spark-web/currency-input
Advanced tools
--- title: Currency Input storybookPath: forms-currency-input--default isExperimentalPackage: true ---
Currency input provides a way for inputting money values. Note that this
component is similar to the FloatInput
component with
the difference that this component has 2 fraction digits enforced and a currency
symbol starting adornment.
const [value, setValue] = React.useState(1000);
return (
<Stack gap="large">
<Field label="Example controlled">
<CurrencyInput value={value} onChange={v => setValue(v)} />
</Field>
<Text>The current value is: {value}</Text>
</Stack>
);
You can specify what currency type you'd like for the currency symbol adornment at the start of the input component. If unspecified, the currency symbol adornment will default to AUD. Note that the currency codes are references to the respective currency's ISO 4217 currency codes.
<Stack gap="large">
<Field label="Currency symbols">
<CurrencyInput currencyType="EUR" />
<CurrencyInput currencyType="RMB" />
<CurrencyInput currencyType="KRW" />
</Field>
</Stack>
Note that CurrencyInput
also extends FloatInput
's
props and are not listed here.
FAQs
--- title: Currency Input storybookPath: forms-currency-input--default isExperimentalPackage: true ---
The npm package @spark-web/currency-input receives a total of 164 weekly downloads. As such, @spark-web/currency-input popularity was classified as not popular.
We found that @spark-web/currency-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.
Security News
Former RubyGems maintainers have launched The Gem Cooperative, a new community-run project aimed at rebuilding open governance in the Ruby ecosystem.