vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
83 lines (68 loc) • 1.3 kB
text/typescript
import defaultConfig from "./config";
import type { ComponentConfig } from "../types";
export type Config = typeof defaultConfig;
export interface Props {
/**
* Progress value (current step).
*/
value: number;
/**
* Progress max amount of steps.
*/
max?: number | (string | number)[];
/**
* Progress size.
*/
size?: "xs" | "sm" | "md" | "lg" | "xl";
/**
* Progress color.
*/
color?:
| "primary"
| "secondary"
| "error"
| "warning"
| "success"
| "info"
| "notice"
| "neutral"
| "grayscale";
/**
* Progress variant.
*/
variant?: "stepper" | "progress";
/**
* Progress indicator visibility.
*/
indicator?: boolean;
/**
* Component config object.
*/
config?: ComponentConfig<Config>;
/**
* Data-test attribute for automated testing.
*/
dataTest?: string | null;
}
export interface StepperProgressProps {
/**
* Stepper progress percent value.
*/
progressPercent: string;
/**
* Stepper progress value (current step).
*/
value: number;
/**
* Stepper progress color.
*/
color: string;
/**
* Component config object.
*/
config?: ComponentConfig<Config>;
/**
* Data-test attribute for automated testing.
*/
dataTest?: string | null;
}