Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@appgeist/react-select-material-ui
Advanced tools
Readme
An outlined Material-UI input component based on react-select, inspired by the Autocomplete section in Material-UI docs.
Supports react-select/async and react-select/creatable.
import React, { Fragment, useState } from "react";
import Select from "@appgeist/react-select-material-ui";
const KINGDOMS = [
{ value: "AS", label: "Astur" },
{ value: "FA", label: "Fargos" },
{ value: "LE", label: "Laeden" },
{ value: "TH", label: "Therras" },
{ value: "VE", label: "Vessar" }
];
export default () => {
const [kingdom, setKingdom] = useState(null);
return (
<Fragment>
<h1>Fictional places:</h1>
<Select
id="place"
label="Kingdom"
placeholder="Select a kingdom"
options={KINGDOMS}
value={kingdom}
onChange={setKingdom}
isClearable
helperText="Where would you like to live?"
/>
</Fragment>
);
};
{ isAsync: true }
prop a will generate an async select;{ isCreatable: true }
prop a will generate a creatable select;isAsync
and isCreatable
can be combined.You can augment the layout and functionality by providing custom react-select components in a components
property like so:
const Option = props => {
// custom Option implementation
};
const ClearIndicator = props => {
// custom ClearIndicator implementation
};
return (
<Select
id="place"
label="Kingdom"
placeholder="Select a kingdom"
options={KINGDOMS}
value={kingdom}
onChange={setKingdom}
isClearable
helperText="Where would you like to live?"
components={{
Option,
ClearIndicator
}}
/>
);
The ISC License.
FAQs
An outlined Material-UI input component based on react-select
The npm package @appgeist/react-select-material-ui receives a total of 33 weekly downloads. As such, @appgeist/react-select-material-ui popularity was classified as not popular.
We found that @appgeist/react-select-material-ui demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.