xbpr
Version:
xbp react ui by @arco-design/web-react
33 lines (32 loc) • 793 B
TypeScript
import { CSSProperties } from "react";
export interface ColorPickerProps {
style?: CSSProperties;
className?: string | string[];
/**
* @zh 颜色值
* @en color value
* @defaultValue ''
*/
value?: string;
/**
* @zh 按钮的尺寸
* @en Size of the button
* @defaultValue default
*/
size?: "mini" | "small" | "default" | "large";
/**
* @zh 是否禁用
* @en Whether to disable the button
*/
disabled?: boolean;
/**
* @zh 按钮宽度随容器自适应。
* @en Whether the width of the button should adapt to the container.
*/
long?: boolean;
/**
* @zh 值改变后回调
* @en Callback fired when the color is change
*/
onChange?: (color: string) => void;
}