Skip to content

Input

Single-line text input with addons, prefix / suffix slots, clear button, and character count.

Basic usage

Example

With addons

https://
.com
Example

Clearable + character count

States

API

Props

NameTypeDefaultDescription
valueInputValue""
labelstring""
placeholderstring""
typeInputType"text"
disabledbooleanfalse
readonlybooleanfalse
borderedbooleantrue
allowClearbooleanfalse
maxLengthunionnull
showCountbooleanfalse
prefixstring""
suffixstring""
addonBeforestring""
addonAfterstring""
assistiveTextstring""
alertMessagestring""
stateDataEntryState"default"
sizeEpSizeundefined
autocompletestringundefined
clearLabelstring"Clear"
searchLabelstring"Search"

Events

EventPayloadDescription
update:value{"names":["InputValue"]}
change{"names":["InputValue"]}
clear
enter{"names":["InputValue"]}
search{"names":["InputValue"]}
focus{"names":["FocusEvent"]}
blur{"names":["FocusEvent"]}

Slots

SlotScopeDescription
addonBefore
prefix
suffix
addonAfter

Released under the MIT License. Built with VitePress.