Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@blaze-react/select
Advanced tools
The select component represents an input that provides a menu of options.
The select component represents an input that provides a menu of options.
const options = ["London", "Paris", "Munich"];
<Select
label="Select a city"
options={options}
onChange={({ event, value }) => {}}
required
/>;
const options = [["08001", "Barcelona"], ["17006", "Madrid"]];
<Select
label="Select label"
selected="08001"
options={options}
onChange={({ event, value }) => {}}
/>;
const arrayOfObjects = [
{
id: 1,
username: "Oscar",
age: 26
},
{
id: 2,
username: "Ismael",
age: 23
}
];
<Select
label="Select user"
selected="1"
options={options}
keys={["id", "username"]}
onChange={({ event, value }) => {}}
/>;
<Select label="Disabled" onChange={({ event, value }) => {}} options={[]} />
props
as follow:NAME | TYPE | DEFAULT |
---|---|---|
label | String | '' |
required | Boolean | false |
options | Array | [] |
selected | String | '' |
keys | Array | [] |
onChange | Function | () => {} |
FAQs
The select component represents an input that provides a menu of options.
We found that @blaze-react/select demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.