gg-dropdown-menu
v1.0.17
Published
dropdown component
Downloads
8
Readme
dropdown
dropdown component
Install
npm i gg-dropdown-menu
Usage
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}/>
)
}
License
MIT © guillaume34110