
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
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.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.