UNPKG

vueless

Version:

Vue Styleless UI Component Library, powered by Tailwind CSS.

43 lines (33 loc) 674 B
import defaultConfig from "./config"; import type { ComponentConfig } from "../types"; export type Config = typeof defaultConfig; export interface Props { /** * Input size. */ size?: "sm" | "md" | "lg"; /** * Hide or show label. */ label?: boolean; /** * Label placement. */ labelAlign?: "topInside" | "top" | "left" | "right"; /** * Input type. */ type?: "input" | "textarea"; /** * Brightness variant. */ variant?: "light" | "default" | "dark"; /** * Component config object. */ config?: ComponentConfig<Config>; /** * Data-test attribute for automated testing. */ dataTest?: string | null; }