1.0.3 • Published 11 months ago

dropdown-menu-input-react-1 v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Dropdown Menu

This is a simple react component for a dropdown menu input.

Installation

The package can be installed via npm:

npm i dropdown-menu-input-react-1

Configuration

You can use the Dropdown with:

  const [dropdownValue, setDropDownValue] = useState("");

  const data =[
    {id: 1, name: "dataExample1"},
    {id: 2, name: "dataExample2"},
    {id: 3, name: "dataExample3"},
    ...
  ]

    <Dropdown
      className="exemple-class"
      result={(value) => {
        setDropDownValue(value);
      }}
      options={data}
      aria-label="dropdown"
    />
1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago