Skip to content

Input

Text input with label, helper text, and validation.

<reke-input label="Email" type="email" placeholder="you@example.com"></reke-input>
<reke-input size="xs" placeholder="Search..." style="width: 90px;"></reke-input>
PropertyTypeDefaultDescription
valuestring''Current value
placeholderstring''Placeholder text
type'text' | 'password' | 'email' | 'number' | 'search' | 'url''text'Input type
size'xs' | 'sm' | 'md' | 'lg''md'Size
disabledbooleanfalseDisables the input
errorbooleanfalseError state
labelstring''Label text
EventDetailDescription
reke-input{ value }Fired on every keystroke
reke-change{ value }Fired on blur
PartDescription
inputThe native input element

Use ::part(input) to customize the input styling, e.g. ::part(input) { border-style: dashed; }.