Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-grid-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-grid-dropdown

Dropdown with customizable grid

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-54.55%
Maintainers
1
Weekly downloads
 
Created
Source

React-Grid-Dropdown

npm version travis build

alt tag

Installation

npm install react-grid-dropdown --save

Usage

import GridDropdown from 'react-grid-dropdown'

const { activeItem } = this.state;

<GridDropdown
  label="dropdown"
  activeItem={activeItem}
  items={
    [{section: 'category', label: 'itemLabel', id: 'itemId', backgroundImage: `url(${url})`, onClick: () => 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

Developed by bl00mber for cellular automata generator

Keywords

FAQs

Package last updated on 31 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc