UNPKG

vueless

Version:

Vue Styleless UI Component Library, powered by Tailwind CSS.

62 lines (50 loc) 1.01 kB
import defaultConfig from "./config.ts"; import type { ComponentConfig } from "../types.ts"; export type Config = typeof defaultConfig; export interface Props { /** * Avatar label (username, nickname, etc.). */ label?: string; /** * Badge variant. */ variant?: "solid" | "outlined" | "subtle" | "soft"; /** * Avatar size. */ size?: "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl"; /** * Avatar color. */ color?: | "primary" | "secondary" | "error" | "warning" | "success" | "info" | "notice" | "neutral" | "grayscale"; /** * Avatar corner rounding. */ rounded?: "none" | "sm" | "md" | "lg" | "full"; /** * Avatar image source. */ src?: string; /** * Avatar placeholder icon. */ placeholderIcon?: string; /** * Component config object. */ config?: ComponentConfig<Config>; /** * Data-test attribute for automated testing. */ dataTest?: string | null; }