/** @packageDocumentation * @module Color */ import "./Swatch.scss"; import * as React from "react"; import type { ColorDef } from "@itwin/core-common"; import type { CommonProps } from "@itwin/core-react"; /** Properties for the [[ColorSwatch]] React component * @beta * @deprecated in 4.11.0. Props of deprecated component {@link ColorSwatch}. */ export interface ColorSwatchProps extends React.ButtonHTMLAttributes, CommonProps { /** color specification */ colorDef: ColorDef; /** function to run when user selects color swatch */ onColorPick?: ((color: ColorDef, e: React.MouseEvent) => void) | undefined; /** Show swatches as squares unless round is set to true */ round?: boolean; } /** ColorSwatch Functional component displays a color swatch in a button * @beta * @deprecated in 4.11.0. Use {@link https://itwinui.bentley.com/docs/colorpicker iTwinUI color picker} instead. */ export declare function ColorSwatch(props: ColorSwatchProps): React.JSX.Element; //# sourceMappingURL=Swatch.d.ts.map