@jdl2/dropdown

The dropdown component renders a simple dropdown based on user defined options.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@jdl2/dropdown
Minified + gzip package size for @jdl2/dropdown in KB

Readme

Dropdown

The dropdown component renders a simple dropdown based on user defined options.

const options = [{ value: 'A', label: 'A' }, { value: 'B', label: 'B' }];
const handleChange = (e: HTMLInputElement) => alert('changed to value: ' + e.value);

<Dropdown options={options} value={options[0].value} onChange={handleChange} />;

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.