UNPKG

vueless

Version:

Vue Styleless UI Component Library, powered by Tailwind CSS.

58 lines (50 loc) 922 B
import defaultConfig from "./config.ts"; import type { ComponentConfig } from "../types.ts"; export type Config = typeof defaultConfig; export interface Props { /** * Loader stripe color. */ color?: | "grayscale" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "gray" | "white" | "brand"; /** * API resource names (endpoint URIs). */ resources?: string | string[] | "any" | ["any"]; /** * 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; }