
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
material-ui-dropdown
Advanced tools
A @material-ui helper to cut off the whole boilerplate to work with select component from @material-ui.
Install material-ui-dropdownlist
npm install material-ui-dropdownlist
oryarn add material-ui-dropdowlistImport material-ui-dropdowlist into your application
import MuiDropdownList from "material-ui-dropdowlist";
<MuiDropdownList defaultText="Select item..." options={persons} placeholder="Persons" optionText="name" optionValue="id" value={this.state.value} onChange={this.handleChange} showError={this.state.showError} errorText={this.state.errorText} />
defaultText: Text that will appear as default option (empty value)
options: Array of available options
- Options should be an object with properties to be used as option text and option value
placeholder: Dropdown's placeholder
optionText: String - Property from the object in options that you want to be displayed
optionValue: String - Property from the object in options that you want to be the value (normally the object ID)
value: String - Selected item
onChange: Function - Callback you want to executed when an item is selected.
- Returns the selected object
showError: Boolean - Change dropdown's color to red, indicating error.
errorText: String - Error message you want to display
In addition you can use all properties from Material TextField to customize your dropdown
P.S.: This dropdown does not accept multiple selection (maybe in the future)
FAQs
A dropdown list based on @material-ui/core.
The npm package material-ui-dropdown receives a total of 1 weekly downloads. As such, material-ui-dropdown popularity was classified as not popular.
We found that material-ui-dropdown 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.