vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
53 lines (41 loc) • 742 B
text/typescript
import defaultConfig from "./config.ts";
import type { ComponentConfig } from "../types.ts";
export type Config = typeof defaultConfig;
export interface Props {
/**
* Rating value.
*/
modelValue: number;
/**
* Rating number of stars.
*/
stars?: number;
/**
* Rating size.
*/
size?: "sm" | "md" | "lg";
/**
* Disable the input.
*/
disabled?: boolean;
/**
* Rating total.
*/
total?: number;
/**
* Show rating counter.
*/
counter?: boolean;
/**
* Make rating selectable.
*/
selectable?: boolean;
/**
* Component config object.
*/
config?: ComponentConfig<Config>;
/**
* Data-test attribute for automated testing.
*/
dataTest?: string | null;
}