Negating Past Mistakes

    mddropdownmenu

    0.0.10 • Public • Published

    MDDropDownMenu

    Build Status Dependency Status GitHub issues GitHub license

    NPM

    Properties


    • options: arrayOf(string) - array of options displayed in dropdown menu.
    • defaultOption: string - default option to display.
    • onSelect: (selected) => () - the function to be called when any option is selected and with the selected option as the only input.
    • width: number - width of the dropdown menu
    • height: number - height of the dropdown menu

    Acknowledgement


    this is inspired by the work done by Hampus Persson. Many thanks.

    Note

    This Component uses FontAwesome icon. So make sure your project has that included.

    npm install font-awesome
    

    and import the css in your root component or include it in index.html

    import 'font-awesome/css/font-awesome.css';
    

    Keywords

    none

    Install

    npm i mddropdownmenu

    DownloadsWeekly Downloads

    2

    Version

    0.0.10

    License

    MIT

    Last publish

    Collaborators

    • zhenghe