
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@axa-fr/react-toolkit-form-input-number
Advanced tools
@axa-fr/react-toolkit-form-input-number
The Number component exposes a native HTML number input. Therefore, it accepts a specific range of characters :
On mobile, it will open the native OS keyboard for number.
It will expose an object with :
It accept the same props as the others form component
npm i @axa-fr/react-toolkit-form-input-number
npm i @axa-fr/react-toolkit-form-core
import { Number } from '@axa-fr/react-toolkit-form-input-number';
import '@axa-fr/react-toolkit-form-input-file/dist/af-file.css';
import { HelpMessage } from '@axa-fr/react-toolkit-form-core';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';
const numberInput = () => (
<form className="af-form" name="myform">
<Number
id="uniqueid"
name="numberName"
value={2.9}
placeholder="0.0"
onChange={(e) => {
console.log(e);
}}
/>
<HelpMessage message="Enter the place name, ex : Webcenter" />
</form>
);
export default numberInput;
npm i @axa-fr/react-toolkit-form-input-number
npm i @axa-fr/react-toolkit-form-core
npm i @axa-fr/react-toolkit-help
npm i @axa-fr/react-toolkit-button
npm i @axa-fr/react-toolkit-popover
import { NumberInput } from '@axa-fr/react-toolkit-form-input-number';
import { MessageTypes } from '@axa-fr/react-toolkit-form-core';
import { PopoverModes, PopoverPlacements } from '@axa-fr/react-toolkit-popover';
import Help from '@axa-fr/react-toolkit-help';
import '@axa-fr/react-toolkit-button/dist/af-button.css';
import '@axa-fr/react-toolkit-popover/dist/af-popover.css';
const NumberInputReturn = () => (
<div>
<form className="af-form" name="myform">
<NumberInput
id="uniqueid"
value={10}
label="Place name"
name="placeName"
onChange={(e) => {
console.log(e);
}}
messageType={MessageTypes.error}
classNameContainerLabel="col-md-2"
classNameContainerInput="col-md-10"
helpMessage="Enter the place name, ex : Webcenter">
<Help mode={PopoverModes.click} placement={PopoverPlacements.right}>
{' '}
Lorem ipsum dolor sit amet{' '}
</Help>
</NumberInput>
</form>
</div>
);
export default NumberInputReturn;
To achieve NumberInput Required, you need to add this :
classModifier = 'required';
to the NumberInput component
FAQs
### Principles
The npm package @axa-fr/react-toolkit-form-input-number receives a total of 38 weekly downloads. As such, @axa-fr/react-toolkit-form-input-number popularity was classified as not popular.
We found that @axa-fr/react-toolkit-form-input-number demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.