Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

ColorPicker

Color Picker using the host's theme-aware color selection presentation.

Import

import { ColorPicker } from "@dartwic/interface-sdk/ui";

Declaration

export const ColorPicker: HostComponent<ColorPickerProps>;

ColorPickerProps

Theme-aware host color selector.

export interface ColorPickerProps extends HostComponentProps {
    value?: string;
    onValueChange?: (value: string) => void;
    ariaLabel?: string;
    disabled?: boolean;
    variant?: "swatch" | "field";
    allowThemeColors?: boolean;
}
PropTypeRequirementDescription
valuestringOptional
onValueChange(value: string) => voidOptional
ariaLabelstringOptional
disabledbooleanOptional
variant"swatch" | "field"Optional
allowThemeColorsbooleanOptional
classNamestringOptionalAdditional Tailwind or host CSS classes.
childrenHostNodeOptionalChild content rendered by the host component.
idstringOptionalOptional DOM identifier.
styleRecord<string, unknown>OptionalInline style values passed to the host component.