{"id":14957147,"url":"https://github.com/gartner/react-admin-color-input","last_synced_at":"2025-09-30T03:30:41.619Z","repository":{"id":57134922,"uuid":"303059742","full_name":"gartner/react-admin-color-input","owner":"gartner","description":"\u003cColorInput\u003e and \u003cColorField\u003e components for admin-on-rest","archived":false,"fork":true,"pushed_at":"2022-06-17T17:59:35.000Z","size":562,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T22:11:37.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"vascofg/react-admin-color-input","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gartner.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}},"created_at":"2020-10-11T06:45:48.000Z","updated_at":"2021-02-02T20:13:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gartner/react-admin-color-input","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gartner%2Freact-admin-color-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gartner%2Freact-admin-color-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gartner%2Freact-admin-color-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gartner%2Freact-admin-color-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gartner","download_url":"https://codeload.github.com/gartner/react-admin-color-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234695587,"owners_count":18873004,"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":[],"created_at":"2024-09-24T13:14:14.092Z","updated_at":"2025-09-30T03:30:41.281Z","avatar_url":"https://github.com/gartner.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003cColorInput\u003e and \u003cColorField\u003e`\n\nA color picker for [react-admin](https://github.com/marmelab/react-admin) using [React Color](http://casesandberg.github.io/react-color/), a collection of color pickers.\n\n![color-input.gif](color-input.gif)\n\nAlso includes a color field for just displaying the color value.\n\n![color-field.png](color-field.png)\n\n## Notice\n\nThis module was originally created for [admin-on-rest](https://github.com/marmelab/admin-on-rest) by @dreinke and was forked from his [repository](https://github.com/dreinke/aor-color-input).\n\n## Installation\n\n```sh\nnpm install react-admin-color-input --save-dev\n```\n\n## Usage\n\n```js\nimport React from 'react';\nimport {\n    Show,\n    TextField,\n    Edit,\n    TextInput,\n    LongTextInput,\n} from 'react-admin';\n\nimport { ColorField, ColorInput } from 'react-admin-color-input';\n\nexport const PostShow = (props) =\u003e (\n    \u003cShow {...props}\u003e\n        \u003cTextField source=\"title\" /\u003e\n        \u003cTextField source=\"body\" /\u003e\n        \u003cColorField source=\"color\" /\u003e\n    \u003c/Edit\u003e\n);\n\nexport const PostEdit = (props) =\u003e (\n    \u003cEdit {...props}\u003e\n        \u003cTextInput source=\"title\" validation={{ required: true }} /\u003e\n        \u003cLongTextInput source=\"body\" validation={{ required: true }} /\u003e\n        \u003cColorInput source=\"color\" /\u003e\n    \u003c/Edit\u003e\n);\n```\n\nYou can customize the color picker using the `picker` attribute.\n\n```js\n\u003cColorInput source=\"color\" picker=\"Sketch\"/\u003e\n```\n\n### Pickers\n- Alpha\n- Block\n- Chrome (default)\n- Circle\n- Compact\n- Github\n- Hue\n- Material\n- Photoshop\n- Sketch\n- Slider\n- Swatches\n- Twitter\n\n## License\n\nThis library is licensed under the [MIT Licence](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgartner%2Freact-admin-color-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgartner%2Freact-admin-color-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgartner%2Freact-admin-color-input/lists"}