ui-ingredients
Version:
Headless component library for Svelte powered by zag
19 lines (18 loc) • 664 B
TypeScript
import * as colorPicker from '@zag-js/color-picker';
import type { GenericObject } from '../types.js';
export interface ElementIds extends colorPicker.ElementIds {
view?: string;
}
export interface CreateColorPickerProps extends Omit<colorPicker.Props, 'ids' | 'dir' | 'getRootNode'> {
ids?: ElementIds;
}
export interface CreateColorPickerReturn extends colorPicker.Api {
getViewProps(props: {
format: colorPicker.ColorFormat;
}): GenericObject;
getFormats(): {
label: string;
value: colorPicker.ColorFormat;
}[];
}
export declare function createColorPicker(props: CreateColorPickerProps): CreateColorPickerReturn;