color-picker-svelte
Version:
Color picker for Svelte
15 lines (14 loc) • 502 B
TypeScript
import type { Color } from './color.svelte.js';
import { Position } from './utils.js';
interface Props {
color: Color;
isOpen?: boolean;
showAlphaSlider?: boolean;
position?: Position;
/** Element used to figure out position (probably an input element) */
positioningContextElement: HTMLElement;
onInput?: () => void;
}
declare const ColorPicker: import("svelte").Component<Props, {}, "color">;
type ColorPicker = ReturnType<typeof ColorPicker>;
export default ColorPicker;