Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
abaabil.select
Advanced tools
The Input
component is a customizable and accessible input field designed for React applications. This component is part of the abaabil.input
package and supports various input types with flexible styling and accessibility features.
To install the Input
component, use npm or yarn:
npm install abaabil.input
or
yarn add abaabil.input
After installation, you can import and use the Input
component in your React project as follows:
import Input from 'abaabil.input';
function App() {
return (
<div>
<Input label="Your Name" placeholder="Enter your name" />
</div>
);
}
export default App;
You can disable the Input
component to make it non-interactive:
import Input from 'abaabil.input';
function App() {
return (
<div>
<Input label="Disabled Input" placeholder="Cannot type here..." disabled />
</div>
);
}
export default App;
The Input
component accepts several properties to customize its behavior and appearance:
Property | Type | Default | Description |
---|---|---|---|
type | string | 'text' | The type of input field. Available types include text , password , email , search , number , date , time , and datetime-local . |
label | string | '' | The label for the input field. |
value | string | '' | The controlled value of the input field. |
containerClassName | string | '' | Additional CSS classes to apply to the outer container wrapping the entire input field. |
labelClassName | string | '' | Additional CSS classes to apply to the label element. |
inputClassName | string | '' | Additional CSS classes to apply to the input element itself. |
disabled | boolean | false | Disables the input field if set to true . |
ariaLabel | string | '' | Defines a string value that labels the input field. |
ariaDescribedBy | string | '' | Identifies the element that describes the input field. |
ariaRequired | boolean | false | Indicates whether the input field is required. |
onChange | function | null | Callback function that triggers when the input value changes. |
The Input
component supports the following types:
text
- Text Inputpassword
- Password Inputemail
- Email Inputsearch
- Search Inputnumber
- Number Inputdate
- Date Pickertime
- Time Pickerdatetime-local
- Date-Time Pickerimport Input from 'abaabil.input';
function App() {
return (
<div className="space-y-4">
<Input label="Text Input" placeholder="Type here..." />
<Input label="Password Input" type="password" placeholder="Password" />
<Input label="Email Input" type="email" placeholder="Email" />
<Input label="Search Input" type="search" placeholder="Search" />
<Input label="Number Input" type="number" placeholder="Number" />
<Input label="Date Picker" type="date" />
<Input label="Time Picker" type="time" />
<Input label="Date-Time Picker" type="datetime-local" />
</div>
);
}
export default App;
You can customize the Input
component using the containerClassName
, labelClassName
, and inputClassName
properties to apply your custom styles.
<Input
label="Custom Styled Input"
placeholder="Enter something..."
containerClassName="mb-4"
labelClassName="text-lg font-bold"
inputClassName="border-gray-300 rounded"
/>
The Input
component includes several accessibility properties such as ariaLabel
, ariaDescribedBy
, and ariaRequired
to enhance the usability of the input fields for all users.
This project is licensed under the MIT License. See the LICENSE file for more details.
README.md
Content:Input
component.FAQs
Unknown package
We found that abaabil.select 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.