emg-colorpicker
Version:
**emg-color-picker** is a custom color picker built with Svelte that can replace the default browser color picker. It currently supports hexa values (with opacity) and gradients, with plans to add support for RGB and other formats. Saved colors are stored
46 lines (45 loc) • 1.4 kB
TypeScript
/** @typedef {typeof __propDef.props} EmgColorPickerProps */
/** @typedef {typeof __propDef.events} EmgColorPickerEvents */
/** @typedef {typeof __propDef.slots} EmgColorPickerSlots */
export default class EmgColorPicker extends SvelteComponentTyped<{
solidColor: any;
visible?: boolean | undefined;
gradientColors?: {
pourcentage: number;
color: string;
}[] | undefined;
useGradient?: boolean | undefined;
}, {
pointerdown: PointerEvent;
colorchanged: CustomEvent<any>;
colorchanging: CustomEvent<any>;
gradientchanged: CustomEvent<any>;
} & {
[evt: string]: CustomEvent<any>;
}, {}> {
}
export type EmgColorPickerProps = typeof __propDef.props;
export type EmgColorPickerEvents = typeof __propDef.events;
export type EmgColorPickerSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {
props: {
solidColor: any;
visible?: boolean | undefined;
gradientColors?: {
pourcentage: number;
color: string;
}[] | undefined;
useGradient?: boolean | undefined;
};
events: {
pointerdown: PointerEvent;
colorchanged: CustomEvent<any>;
colorchanging: CustomEvent<any>;
gradientchanged: CustomEvent<any>;
} & {
[evt: string]: CustomEvent<any>;
};
slots: {};
};
export {};