Skip to content

Input ​

Input collects text with sizes aligned to Button, plus password, textarea, clearable, prefix/suffix, status, and round.

Demos ​

Basic

Bind value and listen for input with e.detail.value.

Value: (empty)

Size

Sizes match Button: sm, md, and lg.

Password

type="password" adds a show/hide toggle in the suffix area.

Textarea

type="textarea" renders a multi-line control; set rows for height.

Clearable

clearable shows a clear control when the value is non-empty and the field is interactive.

Prefix / suffix

Use the prefix and suffix slots for adornments. Built-in clear and password toggle render after the suffix slot.
https://$USD

Status

Validation feedback via status: success, warning, or error.

Round

Set round for a fully rounded field.

Disabled / readonly

disabled blocks interaction; readonly keeps focus but prevents edits.

API ​

Input Props ​

PropTypeDefault
type'text' | 'password' | 'textarea''text'
size'sm' | 'md' | 'lg''md'
valuestring''
placeholderstring''
disabledbooleanfalse
readonlybooleanfalse
clearablebooleanfalse
roundbooleanfalse
status'success' | 'warning' | 'error' | ''''
rowsnumber3
namestring''

Input Slots ​

NameDescription
prefixLeading adornment
suffixTrailing adornment (before clear / password toggle)

Input Events ​

NameDescription
inputValue changed (typing or clear); bubbles; composed: true; detail: { value: string }
changeNative-style change (blur/commit or clear); bubbles; composed: true; detail: { value: string }

CSS Parts ​

PartDescription
baseOuter surface
inputNative <input> or <textarea>
prefixPrefix slot wrapper
suffixSuffix slot + built-in controls wrapper
clearClear button
password-toggleShow/hide password button