Socket
Socket
Sign inDemoInstall

mdtemp2-dropdown

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mdtemp2-dropdown

Md-dropdown is a simplest way to create a dropdown on your ReactJS site.


Version published
Maintainers
1
Created

Readme

Source

md-dropdown npm package Build Status

Md-dropdown is a simplest way to create a dropdown on your ReactJS site.

  • Very small (less than 7Kb)
  • Mobile friendly
  • Without dependencies

Getting Started

Install this package:

npm i md-dropdown

Import the component, and define the options.

All other attributes are optional.

If a default value is not defined, the first option will be selected.

You can add all <select /> compatible attributes as wanted.

import { Dropdown } from 'md-dropdown';

<Dropdown
    label="Department" //optional
    labelclassname="block my-1" //optional
    options={[
    'Sales',
    'Marketing',
    'Engineering',
    'Human Ressources',
    'Legal',
    ]} //required
    defaultValue={Engineering} //optional
    onChange={onChange} //optional
    onBlur={onBlur} //optional
    className="form-select bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg block w-full p-2.5" //optional
/>

Keywords

FAQs

Last updated on 02 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc