Skip to content

Input

Text input field with label, border, and focus ring. Includes a search variant with a built-in icon.

Usage

html
<tx-input label="Full Name" placeholder="John Doe"></tx-input>
<tx-input label="Email" placeholder="john@example.com" type="email"></tx-input>
<tx-input search placeholder="Search anything..."></tx-input>

Properties

PropertyTypeDefaultDescription
labelstring''Label text above the field
namestring''Input name attribute
placeholderstring''Placeholder text
valuestring''Current value
typestring'text'Input type (text, email, etc.)
searchbooleanfalseSearch variant with icon

Events

EventDetailDescription
tx-input{ value: string }Fires on input change

CSS Parts

PartDescription
inputThe native input element

Live Demo

Fields