vael-ui v0.3.10

Forms & Inputs

Input

A single-line text field with sizes, states, and slots for icons or hints.

Install

import { Input } from 'vael-ui'

Playground

import { Input } from 'vael-ui'

<Input type="text" size="md" :disabled="false" :readonly="false" :invalid="false" placeholder="">Input</Input>

Props

NameTypeDefaultDescription
typestring | undefined"text"
size"md" | "sm" | "lg""md"
disabledboolean | undefinedfalse
readonlyboolean | undefinedfalse
invalidboolean | undefinedfalseStandalone override; ORed with the nearest Field's `error` state.
placeholderstring | undefined
uiPartial<{ root: UiPartValue; input: UiPartValue; start: UiPartValue; end: UiPartValue; }> | undefined
modelValuestring | undefined""

Slots

NameTypeDescription
startanyInline leading content (icon, kbd hint, a copy Button).
endanyInline trailing content.

Events

NameTypeDescription
update:modelValue[value: string]

Exposed

NameTypeDescription
elHTMLElement | null
inputElHTMLInputElement | null