# aor-color-input

> component for admin-on-rest

Latest version **1.2.1** (published 2018-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install aor-color-input
pnpm add aor-color-input
yarn add aor-color-input
bun add aor-color-input
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2018-08-02 |
| First published | 2017-01-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 11 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Davi Reinke |
| Maintainers | davireinke |
| Keywords | reactjs, rest, react, color, picker, html |

## Links

- npm: https://www.npmjs.com/package/aor-color-input
- Repository: https://github.com/dreinke/aor-color-input
- Homepage: https://github.com/dreinke/aor-color-input#readme
- Issues: https://github.com/dreinke/aor-color-input/issues
- npm.io page: https://npm.io/package/aor-color-input

## Dependencies (4)

- [inflection](https://npm.io/package/inflection.md) ^1.12.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0
- [material-ui](https://npm.io/package/material-ui.md) ^0.20.0
- [react-color](https://npm.io/package/react-color.md) ^2.11.1

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.2.1 (latest) — 2018-08-02
- 1.2.0 — 2018-05-18
- 1.1.3 — 2018-01-14
- 1.1.2 — 2017-09-06
- 1.1.0 — 2017-02-08
- 1.0.0 — 2017-01-25

## README

# `<ColorInput>`

A color picker for [admin-on-rest](https://github.com/marmelab/admin-on-rest) using [React Color](http://casesandberg.github.io/react-color/), a collection of color pickers.

![color-input.gif](color-input.gif)

## Installation

```sh
npm install aor-color-input --save-dev
```

## Usage

```js
import React from 'react';
import {
    Edit,
    TextInput,
    LongTextInput,
} from 'admin-on-rest/mui';

import ColorInput from 'aor-color-input';

export const PostEdit = (props) => (
    <Edit {...props}>
        <TextInput source="title" validation={{ required: true }} />
        <LongTextInput source="body" validation={{ required: true }} />
        <ColorInput source="color" />
    </Edit>
);
```

You can customize the color picker using the `picker` attribute.

```js
<ColorInput source="color" picker="Sketch"/>
```

### Pickers
- Alpha
- Block
- Chrome (default)
- Circle
- Compact
- Github
- Hue
- Material
- Photoshop
- Sketch
- Slider
- Swatches
- Twitter

## react-admin
If you are looking for a react-admin(2.x) support, visit [react-admin-color-input](https://github.com/vascofg/react-admin-color-input).

## License

This library is licensed under the [MIT Licence](LICENSE).

---
_Source: https://npm.io/package/aor-color-input · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
