UNPKG

vueless

Version:

Vue Styleless UI Component Library, powered by Tailwind CSS.

83 lines (65 loc) 1.38 kB
import defaultConfig from "./config"; import type { ComponentConfig } from "../types"; export type Config = typeof defaultConfig; export interface Props { /** * Input value. */ modelValue: number | string; /** * Input step. */ step?: number; /** * Input min value. */ min?: number; /** * Input max value. */ max?: number; /** * Minimal number of signs after the decimal separator (fractional part of a number). */ minFractionDigits?: number; /** * Maximal number of signs after the decimal separator (fractional part of a number). */ maxFractionDigits?: number; /** * A symbol used to separate the integer part from the fractional part of a number. */ decimalSeparator?: string; /** * A symbol used to separate the thousand parts of a number. */ thousandsSeparator?: string; /** * Prefix to display before input value. */ prefix?: string; /** * Input size. */ size?: "sm" | "md" | "lg"; /** * Make input read-only. */ readonly?: boolean; /** * Disable the input. */ disabled?: boolean; /** * Time in milliseconds before value emit. */ debounce?: number | string; /** * Component config object. */ config?: ComponentConfig<Config>; /** * Data-test attribute for automated testing. */ dataTest?: string | null; }