smart-react-components
Version:
React UI library, wide variety of editable ready to use Styled and React components.
30 lines (29 loc) • 909 B
TypeScript
import React from "react";
import InputProps from "./InputProps";
import { JSXElementProps } from "../props";
import { Language } from "../types/color-picker";
export interface Props extends InputProps<string> {
hint?: never;
error?: never;
pickerSize?: string;
pickerSizeSm?: string;
pickerSizeMd?: string;
pickerSizeLg?: string;
pickerSizeXl?: string;
pickerElementProps?: JSXElementProps;
pickerType?: string;
colorFormat?: string;
allowOpacity?: boolean;
showConsole?: boolean;
showButtons?: boolean;
showPalette?: boolean;
allowAddColorPalette?: boolean;
addDefaultPaletteColors?: boolean;
palette?: string[];
lang?: Language;
onChange?: (value: string) => void;
onSave?: () => void;
onCancel?: () => void;
}
declare const InputColorPicker: React.FC<Props>;
export default InputColorPicker;