An open API service indexing awesome lists of open source software.

https://github.com/bl00mber/react-grid-dropdown

Dropdown with customizable grid which allows to separate its content to sections
https://github.com/bl00mber/react-grid-dropdown

dropdown google-material grid javascript material material-design material-ui react react-components

Last synced: 2 months ago
JSON representation

Dropdown with customizable grid which allows to separate its content to sections

Awesome Lists containing this project

README

          

# React-Grid-Dropdown

[![npm version](https://img.shields.io/npm/v/react-grid-dropdown.svg?style=flat)](https://www.npmjs.com/package/react-grid-dropdown)
[![travis build](https://travis-ci.org/bl00mber/react-grid-dropdown.svg?branch=master)](https://travis-ci.org/bl00mber/react-grid-dropdown)

![alt tag](https://raw.githubusercontent.com/bl00mber/react-grid-dropdown/master/test/animation.gif)

## Installation
```shell-script
npm install react-grid-dropdown --save
```

## Usage
```jsx
import GridDropdown from 'react-grid-dropdown'
import 'react-grid-dropdown/dist/style.css'

this.setState({ activeItem: 'itemId' })}]
}
/>
```

## Options


Name
Type
Description
Default


label
string


activeItem
string
item to recieve 'active' class when pressed


items
array
items to render in the dropdown


sectionsOrder
array


buttonClass
string
class for dropdown button


dropdownClass
string
class for dropdown container


itemClass
string
class for each item in the dropdown


itemLabelClass
string
class for text of each item


buttonStyle
string
style for dropdown button


dropdownStyle
string
style for dropdown container


itemStyle
string
style for each item in the dropdown


itemLabelStyle
string
style for text of each item

## Item


Name
Type


section
string


label
string


id
string


backgroundImage
string, url


backgroundColor
string, color


onClick
func

## License
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/bl00mber/react-grid-dropdown/blob/master/LICENSE)

Developed by [bl00mber](https://github.com/bl00mber) for [cellular automata generator](https://github.com/bl00mber/cellular-automata)