
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@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 23 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.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.