acud
Version:
acg react 组件库
24 lines (23 loc) • 685 B
TypeScript
/**
* @file
* @author chenyaqiu@baidu.com
*/
import React from 'react';
import { SelectProps } from '../select/src';
export type ColorPickerType = 'default' | 'simple' | 'custom';
export interface ColorPickerProps extends SelectProps {
defaultColor?: string;
defaultColors?: Array<string>;
disabled?: boolean;
type?: ColorPickerType;
color?: string;
style?: React.CSSProperties;
className?: string;
placeholder?: string;
inputPlaceholder?: string;
prefixCls?: string;
allowClear?: boolean;
onChange?: (hex: string, color?: string | object) => void;
}
declare const ColorPicker: React.FC<ColorPickerProps>;
export default ColorPicker;