UNPKG

vueless

Version:

Vue Styleless UI Component Library, powered by Tailwind CSS.

88 lines (74 loc) 1.28 kB
import defaultConfig from "./config.ts"; import type { ComponentConfig } from "../types.ts"; export type Config = typeof defaultConfig; export interface Props { /** * Badge label. */ label?: string; /** * Badge variant. */ variant?: "primary" | "secondary" | "thirdary"; /** * Add border to the `thirdary` variant. */ bordered?: boolean; /** * Badge size. */ size?: "sm" | "md" | "lg"; /** * Badge color. */ color?: | "grayscale" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "gray" | "white" | "brand"; /** * Icon name (appears instead of label). */ icon?: string; /** * Left icon name. */ leftIcon?: string; /** * Right icon name. */ rightIcon?: string; /** * Set badge corners rounded. */ round?: boolean; /** * Controls the keyboard “Tab” focus order of elements. */ tabindex?: string; /** * Component config object. */ config?: ComponentConfig<Config>; /** * Data-test attribute for automated testing. */ dataTest?: string | null; }