smart-react-components
Version:
React UI library, wide variety of editable ready to use Styled and React components.
26 lines (25 loc) • 812 B
TypeScript
import React from "react";
import { SizeProps } from "../props/size-props";
import { JSXElementProps, SetValue } from "../props";
import { Language } from "../types/color-picker";
export interface Props extends SizeProps {
elementProps?: JSXElementProps;
type?: string;
value: string;
setValue: SetValue<string>;
colorFormat?: string;
allowOpacity?: boolean;
showConsole?: boolean;
showButtons?: boolean;
showPalette?: boolean;
allowAddColorPalette?: boolean;
addDefaultPaletteColors?: boolean;
palette?: string[];
setPalette?: SetValue<string[]>;
lang?: Language;
onChange?: (value: string) => void;
onSave?: () => void;
onCancel?: () => void;
}
declare const ColorPicker: React.FC<Props>;
export default ColorPicker;