element-plus
Version:
A Component Library for Vue 3
12 lines (11 loc) • 375 B
TypeScript
import Color from '../utils/color';
type CommonColorProps = {
modelValue?: string | null;
showAlpha: boolean;
colorFormat?: string;
};
type CommonColorEmits = (event: 'update:modelValue', ...args: any[]) => void;
export declare const useCommonColor: <P extends CommonColorProps, E extends CommonColorEmits>(props: P, emit: E) => {
color: Color;
};
export {};