maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
60 lines (59 loc) • 1.64 kB
TypeScript
export interface MazAnimatedCounterProps {
/**
* The number to animate
*/
count: number;
/**
* Duration of the animation in milliseconds
* @default 1000
*/
duration?: number;
/**
* Suffix to display next to the number
*/
prefix?: string;
/**
* Suffix to display next to the number
*/
suffix?: string;
/**
* Delay before the animation starts in milliseconds
* @default 100
*/
delay?: number;
/**
* Play the animation only once
* @default true
*/
once?: boolean;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
prefix?(_: {}): any;
prefix?(_: {}): any;
suffix?(_: {}): any;
suffix?(_: {}): any;
};
refs: {
elementRef: HTMLSpanElement;
};
rootEl: HTMLSpanElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<MazAnimatedCounterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazAnimatedCounterProps> & Readonly<{}>, {
duration: number;
delay: number;
once: boolean;
prefix: string;
suffix: string;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
elementRef: HTMLSpanElement;
}, HTMLSpanElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};