dropdown component
https://www.npmjs.com/package/gaillardguillaumedropdown-menu
npm i gg-dropdown-menu
To use this component you need an array of string named array and a "useState" to set and handle the new value of the dropdown
import React,{useState}from 'react'
import Dropdown from 'gg-dropdown-menu/dist/index.js'
import 'gg-dropdown-menu/dist-unmignified/dropdown.css'
const myComponent{
const array = []
const [currentSelection ,setCurrentSelection] = useState(array[0])
return (
<Dropdown array = {array} currentSelection = {currentSelection} setCurrentSelection = {setCurrentSelection}/>
)
}
if you want restyle this component use this css file.
MIT © guillaume34110