1.0.17 • Published 2 years ago

gg-dropdown-menu v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

dropdown

dropdown component

NPM JavaScript Style Guide

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

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago