@aldabil/next-progress
Version:
Probably the easiest progress bar/skeleton for Next.js
32 lines (31 loc) • 716 B
TypeScript
interface Configurations {
type: "bar" | "fullpage";
background: string;
height: number;
svg?: string;
}
declare class Progress {
private type;
private background;
private height;
private from;
private to;
private timer;
private svg?;
constructor(initials: Configurations);
private get body();
private get bar();
private get fullpage();
start(): void;
complete(): void;
configure(configs: Partial<Configurations>): void;
/**
* Inners
*/
private _startFullpage;
private _startBar;
private _increment;
private _unsubscribe;
}
declare const _default: Progress;
export default _default;