vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
52 lines (43 loc) • 862 B
text/typescript
import defaultConfig from "./config";
import type { ComponentConfig } from "../types";
declare global {
interface Window {
__VuelessProgressLoaderInstance?: number;
}
}
export type Config = typeof defaultConfig;
export interface Props {
/**
* Loader progress color.
*/
color?:
| "primary"
| "secondary"
| "error"
| "warning"
| "success"
| "info"
| "notice"
| "neutral"
| "grayscale";
/**
* API resource names (endpoint URIs).
*/
resources?: string | string[] | "any" | ["any"];
/**
* Loader progress size.
*/
size?: "xs" | "sm" | "md" | "lg";
/**
* Loader state (shown / hidden).
*/
loading?: boolean;
/**
* Component config object.
*/
config?: ComponentConfig<Config>;
/**
* Data-test attribute for automated testing.
*/
dataTest?: string | null;
}