@baseplate-dev/ui-components
Version:
Shared UI component library
16 lines • 698 B
TypeScript
import type React from 'react';
import type { ComponentPropsWithRef } from 'react';
export interface ColorFieldProps extends Omit<ComponentPropsWithRef<'button'>, 'value' | 'onChange'> {
placeholder?: string;
onChange?: (value: string) => void;
value?: string;
hideInputColor?: boolean;
hideInputText?: boolean;
formatInputText?: (value: string) => string;
}
/**
* A control that allows users to select a color.
*/
declare function ColorPicker({ className, placeholder, onChange, value: controlledValue, hideInputColor, hideInputText, formatInputText, ref, ...rest }: ColorFieldProps): React.ReactElement;
export { ColorPicker };
//# sourceMappingURL=color-picker.d.ts.map