@jdl2/dropdown
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.27 • Public • Published

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} />;

/@jdl2/dropdown/

    Package Sidebar

    Install

    npm i @jdl2/dropdown

    Weekly Downloads

    2

    Version

    2.0.0-alpha.27

    License

    none

    Unpacked Size

    3.18 kB

    Total Files

    5

    Last publish

    Collaborators

    • kzantow