1.4.1 • Published 10 months ago
@kapto/mui-color v1.4.1
<ColorPicker/>
A popover component to display a color tool box. It uses ColorBox and material-ui-popup-state.
import { ColorPicker } from "mui-color";
export const Container = () => (
<div>
<ColorPicker defaultValue="transparent" />
</div>
);At first it display a button + an input
<ColorBox />
A component to display a color tool box
import { ColorBox } from "mui-color";
export const Container = () => (
<div>
<ColorBox defaultValue="transparent" />
</div>
);<ColorInput />
An input component to display/edit color values in different format (plain, hex, rgb, hsl, hsv).
import { ColorInput } from "mui-color";
export const Container = () => (
<div>
<ColorInput defaultValue="red" />
</div>
);<ColorPalette />
A component to display a grid of color buckets.
import { ColorPalette } from "mui-color";
const palette = {
red: "#ff0000",
blue: "#0000ff",
green: "#00ff00",
yellow: "yellow",
cyan: "cyan",
lime: "lime",
gray: "gray",
orange: "orange",
purple: "purple",
black: "black",
white: "white",
pink: "pink",
darkblue: "darkblue",
};
export const Container = () => (
<div>
<ColorPalette palette={palette} />
</div>
);<ColorButton />
Displays a button filled with a color
import { ColorButton } from "mui-color";
export const Container = () => (
<div>
<ColorButton color="red" />
</div>
);Roadmap
v1.1.3 - Current version
- remove
styled-componentsto have less dependencies and reduce size - display wrong color using a red checked box
- bugs fixes
Contribute
Contributions welcome! Read the contribution guidelines first.
License
Released under MIT License