Skip to main content
Text input with variants, sizes, an error state with message, and optional leading icon or trailing suffix slots. Supports text, number, email, and password types.

Usage

Reference

Parameters

attr · default | embedded | null
default:"default"
attr · md | sm | lg | xl | null
default:"md"
prop · InputTypeHTMLAttribute
default:"text"
attr · string
attr · boolean
default:"false"
attr · string
attr · boolean
default:"false"
attr · string
prop · string | number
required

Events

The element dispatches native CustomEvents; the payload is in event.detail.
CustomEvent
event.detail: [value: string | number]

Slots

slot