Neverending Plethora of Modules

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

    Keywords

    none

    Install

    npm i @jdl2/dropdown

    DownloadsWeekly Downloads

    0

    Version

    2.0.0-alpha.27

    License

    none

    Unpacked Size

    3.18 kB

    Total Files

    5

    Last publish

    Collaborators

    • kzantow