Newline Pending Merge

    deku-element-select

    1.0.1 • Public • Published

    deku-element-select

    A Select component for Deku with element() syntax

    This component was inspired by another Select component for Deku

    Install

    npm install deku-element-select --save
    

    Usage

    import Select from 'deku-element-select';
     
    const options = [{
        label: 'Denver',
        value: 'denver'
    }, {
        active: true,
        label: 'Manitowoc',
        value: 'manitowoc'
    }, {
        disabled: true,
        label: 'San Diego',
        value: 'san-diego'
    }, {
        label: 'Bishop',
        value: 'bishop'
    }];
     
    const onChange = val => {
        console.log(val);
    };
     
    element(Select, { options, onChange });

    License

    Copyright (c) 2016, LOVATA

    Written by Aleksandra Shinkevich (https://github.com/neesoglasnaja)

    For licensing, see LICENSE.md

    Install

    npm i deku-element-select

    DownloadsWeekly Downloads

    3

    Version

    1.0.1

    License

    GPL-3.0

    Last publish

    Collaborators

    • lautsevich