Color Block Picker
npm install @uiw/react-color-blockReact Color Block
===

  
Block is a subcomponent of @react-color.

``bash`
npm i @uiw/react-color-block
`jsx mdx:preview
import React, { useState } from 'react';
import Block from '@uiw/react-color-block';
export default function Demo() {
const [hex, setHex] = useState("#fff");
return (
<>
Props
`ts
import React from 'react';
import { HsvaColor, ColorResult } from '@uiw/color-convert';
export interface BlockProps extends Omit, 'onChange' | 'color'> {
prefixCls?: string;
showTriangle?: boolean;
color?: string | HsvaColor;
colors?: string[];
onChange?: (color: ColorResult) => void;
}
declare const Block: React.ForwardRefExoticComponent>;
export default Block;
``As always, thanks to our amazing contributors!
Made with contributors.
Licensed under the MIT License.