UNPKG

vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

22 lines (21 loc) 768 B
import { ClassType, StyleType } from '@vexip-ui/config'; export type IconPresetEffect = 'spin-in' | 'spin-out' | 'pulse-in' | 'pulse-out'; export type IconEffect = IconPresetEffect | (string & {}); export interface IconBaseProps { icon: Record<string, any>; class?: ClassType; style?: StyleType; scale?: number | string; title?: string; label?: string; flip?: 'horizontal' | 'vertical' | 'both'; effect?: IconEffect; size?: string; color?: string; rotate?: number | string; } export type IconRenderer = (props: IconBaseProps, attrs: Record<string, any>, renderDefault: () => any) => any; export interface IconProps extends IconBaseProps { renderer?: IconRenderer; } export type IconMinorProps = Omit<IconProps, 'icon'>;