Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@flexcodelabs/input
Advanced tools
@flexcodelabs/input
npm install @flexcodelabs/input
or
yarn add @flexcodelabs/input
...
import Input from '@flexcodelabs/input';
// Normal input
<Input
label="Label"
value={email}
name="email"
onChange={onChange}
placeholder="Label"
/>
// password input
<Input
label="Password"
value={password}
type="password"
name="password"
onChange={onChange}
placeholder="********"
/>
// textarea
<Input
label="Your Message"
textarea
value={message}
handleChange={onChange}
name="message"
/>
// Input with error message
<Input
label="Label"
value={email}
name="email"
onChange={onChange}
placeholder="Label"
error="Error message"
/>
// Input with success message
<Input
label="Label"
value={email}
name="email"
onChange={onChange}
placeholder="Label"
success="Success message"
/>
Name | Type | Default | Required | Description |
---|---|---|---|---|
label | string | - | false | input label |
disabled | boolean | - | false | input disabled status |
autoComplete | string | - | false | |
inputClass | string | - | false | input custom class name |
inputStyle | CSSProperties | - | false | input custom styles |
error | string | - | false | error message |
onChange | func() | - | false | |
type | string | - | false | input type |
success | string | - | false | success message |
value | string or number | - | true | input value |
name | string | - | false | input name |
required | boolean | - | false | whether input field is required |
showLabel | boolean | true | false | show or hide input label |
textarea | boolean | - | false | whether to display textarea or normal input |
placeholder | string | - | false | |
showIcon | ReactNode | - | false | show icon for password input field |
hideIcon | ReactNode | - | false | hide icon for password input field |
className | string | - | false | custom class name |
style | CSSProperties | - | false | custom styles |
inputMode | search, text, tel, none, url, email, numeric, decimal or undefined | - | false |
FAQs
@flexcodelabs/input
The npm package @flexcodelabs/input receives a total of 0 weekly downloads. As such, @flexcodelabs/input popularity was classified as not popular.
We found that @flexcodelabs/input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.