UNPKG

@skillbill/vuelace-3

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/@skillbill%2Fvuelace-3.svg)](https://badge.fury.io/js/@skillbill%2Fvuelace-3)

33 lines (31 loc) 956 B
import { VLInputRuleType, SlFocusEvent, SlBlurEvent, SlInputEvent, SlChangeEvent, SlInvalidEvent, SlClearEvent } from '../utils/types'; export interface VLNumberInputProps { name?: string; defaultValue?: string; size?: 'small' | 'medium' | 'large'; filled?: boolean; pill?: boolean; label?: string; helpText?: string; clearable?: boolean; disabled?: boolean; placeholder?: string; readonly?: boolean; noSpinButtons?: boolean; form?: string; required?: boolean; min?: number; max?: number; step?: number | 'any'; autocomplete?: string; autofocus?: boolean; title?: string; error?: string; rules?: VLInputRuleType[]; onFocus?: (e: SlFocusEvent) => void; onBlur?: (e: SlBlurEvent) => void; onInput?: (e: SlInputEvent) => void; onChange?: (e: SlChangeEvent) => void; onClear?: (e: SlClearEvent) => void; onInvalid?: (e: SlInvalidEvent) => void; }