UNPKG

@trellixio/roaster-coffee

Version:
26 lines 1.25 kB
import * as React from 'react'; export interface ColorFieldProps { /** The HTML ID attribute to be applied to the color field input element (optional). */ id?: string; /** The name attribute to be applied to the color field input element (optional). */ name?: string; /** Whether the color field input should be disabled (optional). */ disabled?: boolean; /** The current value of the color field input (optional). */ value?: string; /** The default value of the color field input (optional). */ defaultValue?: string; /** * A function to be called when the value of the color field input changes (optional). * The function receives the new color of the input as a string. */ onChange?(value: string): void; /** The label to be displayed above the color field input (optional). */ label?: React.ReactNode; /** Help text to be displayed below the color field input (optional). */ helpText?: React.ReactNode; /** CSS class names to be applied to the label element (optional). */ labelClassName?: string; } export declare const ColorField: React.ForwardRefExoticComponent<ColorFieldProps & React.RefAttributes<HTMLInputElement>>; //# sourceMappingURL=ColorField.d.ts.map