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.
@react-md/autocomplete
Advanced tools
Create an accessible autocomplete component that allows a user to get real-time suggestions as they type within an input. This component can also be hooked up to a backend API that handles additional filtering or sorting.
Create an accessible autocomplete component that allows a user to get real-time suggestions as they type within an input. This component can also be hooked up to a backend API that handles additional filtering or sorting.
npm install --save @react-md/autocomplete
You should check out the full documentation for live examples and more customization information, but an example usage is shown below.
The AutoComplete
component just requires:
id
to identify the field (required for a11y)data
that can be a list of string
, number
, or object
However, it is recommended to also provide a label
and placeholder
text to
help the user understand this component.
import React from "react";
import { AutoComplete } from "@react-md/autocomplete";
const fruits = [
"Apple",
"Apricot",
"Banana",
"Blueberry",
"Cranberry",
"Kiwi",
"Peach",
"Plum",
"Strawberry",
];
function Example() {
return (
<AutoComplete
id="search-fruits"
name="fruits"
label="Fruits"
placeholder="Kiwi..."
data={fruits}
/>
);
}
2.8.4 (2021-06-10)
Switch
components (8c65df6), closes #1175omit
uses readonly prefix for key list (d3e1ee8)next
and build deps to fix font loading issues (e528617)FAQs
Create an accessible autocomplete component that allows a user to get real-time suggestions as they type within an input. This component can also be hooked up to a backend API that handles additional filtering or sorting.
The npm package @react-md/autocomplete receives a total of 973 weekly downloads. As such, @react-md/autocomplete popularity was classified as not popular.
We found that @react-md/autocomplete demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.