/** @packageDocumentation * @module Color */ import "./ColorPickerButton.scss"; import * as React from "react"; import { ColorDef } from "@itwin/core-common"; import type { CommonProps } from "@itwin/core-react"; /** Properties for the [[ColorPickerButton]] React component * @beta * @deprecated in 4.11.0. Props of deprecated component {@link ColorPickerButton}. */ export interface ColorPickerProps extends React.ButtonHTMLAttributes, CommonProps { /** Active color */ initialColor: ColorDef; /** Available colors */ colorDefs?: ColorDef[]; /** Function to run when user selects color swatch */ onColorPick?: ((color: ColorDef) => void) | undefined; /** Show swatches as squares unless round is set to true */ round?: boolean; /** Disabled or not */ disabled?: boolean; /** Readonly or not */ readonly?: boolean; /** Title to show at top of DropDown */ dropDownTitle?: string; /** Number of columns */ numColumns?: number; /** Provides ability to return reference to HTMLButtonElement */ ref?: React.Ref; /** If true show up/down caret next to color */ showCaret?: boolean; } /** ColorPickerButton component * @note Using forwardRef so the ColorEditor (Type Editor) can access the ref of the button element inside this component. * @beta * @deprecated in 4.11.0. Use {@link https://itwinui.bentley.com/docs/colorpicker iTwinUI color picker} instead. */ export declare const ColorPickerButton: (props: ColorPickerProps) => React.ReactNode; //# sourceMappingURL=ColorPickerButton.d.ts.map