{"id":21626417,"url":"https://github.com/sm-react/react-material-color-picker","last_synced_at":"2025-04-11T12:46:14.269Z","repository":{"id":10975373,"uuid":"67818701","full_name":"sm-react/react-material-color-picker","owner":"sm-react","description":"react-material-color-picker component for selecting colors from google material color palette :page_with_curl:","archived":false,"fork":false,"pushed_at":"2022-12-07T17:20:50.000Z","size":1349,"stargazers_count":19,"open_issues_count":13,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T09:03:30.847Z","etag":null,"topics":["color","material","material-color-palette","material-ui","picker","react","storybook-addon","tool"],"latest_commit_sha":null,"homepage":"","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/sm-react.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-09T17:27:57.000Z","updated_at":"2022-02-04T03:41:30.000Z","dependencies_parsed_at":"2023-01-13T16:16:04.542Z","dependency_job_id":null,"html_url":"https://github.com/sm-react/react-material-color-picker","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sm-react%2Freact-material-color-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sm-react%2Freact-material-color-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sm-react%2Freact-material-color-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sm-react%2Freact-material-color-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sm-react","download_url":"https://codeload.github.com/sm-react/react-material-color-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247953105,"owners_count":21023946,"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":["color","material","material-color-palette","material-ui","picker","react","storybook-addon","tool"],"created_at":"2024-11-25T01:13:19.090Z","updated_at":"2025-04-11T12:46:14.065Z","avatar_url":"https://github.com/sm-react.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub version](https://badge.fury.io/gh/sm-react%2Freact-material-color-picker.svg)](https://badge.fury.io/gh/sm-react%2Freact-material-color-picker)\n[![npm version](https://badge.fury.io/js/react-material-color-picker.svg)](https://badge.fury.io/js/react-material-color-picker)\n[![@airbnb](https://img.shields.io/badge/code%20style-Airbnb-brightgreen.svg)](https://github.com/sm-react/react-material-color-picker/blob/master/.eslintrc)\n\n# React Material Color Picker Component\n\n[Material Design](https://material.google.com/) is a design language introduced by Google. If you want to find color inspiration for a specific design style based on [material color palette](https://material.google.com/style/color.html#), you can use this component as a development tool. You may find it useful while creating Material apps in combination with such libraries as [Material-UI](http://www.material-ui.com/)\n\n## Appearance\n\n![screen1](https://github.com/sm-react/react-material-color-picker/raw/master/doc/screen1.png)\n\n![screen2](https://github.com/sm-react/react-material-color-picker/raw/master/doc/screen2.png)\n\n![screen3](https://github.com/sm-react/react-material-color-picker/raw/master/doc/screen3.png)\n\n\n## Install\n\n$ npm i react-material-color-picker --save\n\n## Usage\n\n```js\nimport React from 'react';\nimport MaterialColorPicker from 'react-material-color-picker';\n\n// in your app\n\u003cMaterialColorPicker \n    initColor=\"rgba(0, 0, 0, 0.26)\"\n    onSubmit={actionLog()}\n    onReset={actionLog()}\n    style={{width: 400, backgroundColor: '#c7c7c7'}}\n    submitLabel='Apply'\n    resetLabel='Undo'\n/\u003e\n```\n\n## Demo\n[![Live demo](https://img.shields.io/badge/Live%20Demo-%20Storybook-brightgreen.svg)](https://sm-react.github.io/react-material-color-picker/?selectedKind=Material%20Color%20Picker\u0026selectedStory=default%20view\u0026full=0\u0026down=1\u0026left=1\u0026panelRight=1\u0026downPanel=kadirahq%2Fstorybook-addon-actions%2Factions-panel)\n\n## API\n\n#### Props and Callbacks\n**initColor** should be color string from Goggle material color palette\n\n**style** - inline style of the root div node\n\n**submitLabel** and **resetLabel** are titles of the appropriate buttons\n\n**onSubmit** and **onReset** are callbacks wich will be invoked by clicking the appropriate buttons. It will recieve an argument with the following structure:\n```js\nevent = {\n        type, // 'submit' || 'reset', \n        timeStamp, // nativeEvent.timeStamp,\n        target: {\n            value, // currient color string,\n            nativeEvent, // nativeEvent,\n            name: 'MaterialColorPicker',\n            node, // ref to root div element,\n            ...this.props,\n        }\n};\n```\n\n\n## smArtLight\n[![@UsulPro](https://img.shields.io/badge/github-UsulPro-blue.svg)](https://github.com/UsulPro)\n[![@sm-react](https://img.shields.io/badge/github-smARTLight-red.svg)](https://github.com/sm-react)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsm-react%2Freact-material-color-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsm-react%2Freact-material-color-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsm-react%2Freact-material-color-picker/lists"}