{"id":22357720,"url":"https://github.com/bl00mber/react-grid-dropdown","last_synced_at":"2025-07-30T10:33:23.212Z","repository":{"id":66111641,"uuid":"177774137","full_name":"bl00mber/react-grid-dropdown","owner":"bl00mber","description":"Dropdown with customizable grid which allows to separate its content to sections","archived":false,"fork":false,"pushed_at":"2019-09-18T10:06:13.000Z","size":1498,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-15T02:31:44.149Z","etag":null,"topics":["dropdown","google-material","grid","javascript","material","material-design","material-ui","react","react-components"],"latest_commit_sha":null,"homepage":"https://bl00mber.github.io/react-grid-dropdown.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bl00mber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-26T11:24:47.000Z","updated_at":"2021-11-28T17:41:09.000Z","dependencies_parsed_at":"2023-03-10T02:16:38.351Z","dependency_job_id":null,"html_url":"https://github.com/bl00mber/react-grid-dropdown","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"9fd27283355500ed89f84ecc433c1c5b99c56fe8"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl00mber%2Freact-grid-dropdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl00mber%2Freact-grid-dropdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl00mber%2Freact-grid-dropdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl00mber%2Freact-grid-dropdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bl00mber","download_url":"https://codeload.github.com/bl00mber/react-grid-dropdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228124558,"owners_count":17873170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dropdown","google-material","grid","javascript","material","material-design","material-ui","react","react-components"],"created_at":"2024-12-04T14:15:59.320Z","updated_at":"2024-12-04T14:16:00.068Z","avatar_url":"https://github.com/bl00mber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-Grid-Dropdown\n\n[![npm version](https://img.shields.io/npm/v/react-grid-dropdown.svg?style=flat)](https://www.npmjs.com/package/react-grid-dropdown)\n[![travis build](https://travis-ci.org/bl00mber/react-grid-dropdown.svg?branch=master)](https://travis-ci.org/bl00mber/react-grid-dropdown)\n\n![alt tag](https://raw.githubusercontent.com/bl00mber/react-grid-dropdown/master/test/animation.gif)\n\n## Installation\n```shell-script\nnpm install react-grid-dropdown --save\n```\n\n## Usage\n```jsx\nimport GridDropdown from 'react-grid-dropdown'\nimport 'react-grid-dropdown/dist/style.css'\n\n\u003cGridDropdown\n  label=\"dropdown\"\n  activeItem={this.state.activeItem}\n  items={\n    [{section: 'category', label: 'itemLabel', id: 'itemId', backgroundImage: `url(${url})`, onClick: () =\u003e this.setState({ activeItem: 'itemId' })}]\n  }\n/\u003e\n```\n\n## Options\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003e Name \u003c/th\u003e\n    \u003cth\u003e Type \u003c/th\u003e\n    \u003cth\u003e Description \u003c/th\u003e\n    \u003cth\u003e Default \u003c/th\u003e\n  \u003c/tr\u003e\n\n  \u003ctr\u003e\n    \u003ctd\u003e label \u003c/td\u003e\n    \u003ctd colspan=\"3\"\u003e string \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e activeItem \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n    \u003ctd colspan=\"2\"\u003e item to recieve 'active' class when pressed \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e items \u003c/td\u003e\n    \u003ctd\u003e array \u003c/td\u003e\n    \u003ctd colspan=\"2\"\u003e items to render in the dropdown \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e sectionsOrder \u003c/td\u003e\n    \u003ctd colspan=\"3\"\u003e array \u003c/td\u003e\n  \u003c/tr\u003e\n\n  \u003ctr\u003e\n    \u003ctd\u003e buttonClass \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n    \u003ctd colspan=\"2\"\u003e class for dropdown button \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e dropdownClass \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n    \u003ctd colspan=\"2\"\u003e class for dropdown container \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e itemClass \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n    \u003ctd colspan=\"2\"\u003e class for each item in the dropdown \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e itemLabelClass \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n    \u003ctd colspan=\"2\"\u003e class for text of each item \u003c/td\u003e\n  \u003c/tr\u003e\n\n  \u003ctr\u003e\n    \u003ctd\u003e buttonStyle \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n    \u003ctd colspan=\"2\"\u003e style for dropdown button \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e dropdownStyle \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n    \u003ctd colspan=\"2\"\u003e style for dropdown container \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e itemStyle \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n    \u003ctd colspan=\"2\"\u003e style for each item in the dropdown \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e itemLabelStyle \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n    \u003ctd colspan=\"2\"\u003e style for text of each item \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Item\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003e Name \u003c/th\u003e\n    \u003cth\u003e Type \u003c/th\u003e\n  \u003c/tr\u003e\n\n  \u003ctr\u003e\n    \u003ctd\u003e section \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e label \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e id \u003c/td\u003e\n    \u003ctd\u003e string \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e backgroundImage \u003c/td\u003e\n    \u003ctd\u003e string, url \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e backgroundColor \u003c/td\u003e\n    \u003ctd\u003e string, color \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e onClick \u003c/td\u003e\n    \u003ctd\u003e func \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\n## License\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/bl00mber/react-grid-dropdown/blob/master/LICENSE)\n\nDeveloped by [bl00mber](https://github.com/bl00mber) for [cellular automata generator](https://github.com/bl00mber/cellular-automata)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl00mber%2Freact-grid-dropdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbl00mber%2Freact-grid-dropdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl00mber%2Freact-grid-dropdown/lists"}