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.9.0 (2021-07-18)
This release is focused around the FileInput
component in the @react-md/form
package and implementing a useFileUpload
hook to handle uploading/previewing files in the browser. However, there is a notable change in this release for the form documentation since the demos have been split into the following pages:
FileInput
correctly center the icon when children aren't provided (3a6ab33)useLayoutNavigation
possible perf fix (3d65e4e)FileInput
automatically swaps button type to text if children exist (e5585e1)FormMessageCounter
component added to public API (1508812)useFileUpload
hook to upload files to the browser (efb3f2f), closes #1159useDropzone
hook (bc07a1f)useFileUpload
(49ce4d9)useFileUpload
(8f9002e)eslint
error after updating prettier
(75a9b0f)Select
Options Demo (367cc0d)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.