Lumeo

Input

Displays a form input field.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<Input />

When to Use

  • Collect single-line text input such as names, emails, or search queries.
  • Build form fields for login, registration, or profile editing flows.
  • Pair with prefix/suffix slots for currency inputs, search bars, or URL fields.

Value:

This will be your public display name.

Enter a valid promo code to receive a discount.

0/60
0 of 20 chars
$
USD

Pick a size to see the height change live.

Keyboard Interactions

Key Action
TabMoves focus into or out of the input field.
EscapeClears the input value when a clearable behavior is implemented.
EnterSubmits the parent form when the input is inside a form element.

Parameter Coverage

Every Lumeo.Size value plus the key bool parameters demoed exhaustively.

Size

Xs
Sm
Md
Lg
Xl
Xxl
Xxs

Disabled

Disabled = false

Disabled = true

Clearable

Clearable = false

Clearable = true

Invalid

Invalid = false

Invalid = true

API Reference

Input

Property Type Default Description
Value string? null The current value of the input field.
OnInput EventCallback<ChangeEventArgs> Callback invoked on every keystroke as the value changes.
Prefix RenderFragment? Content rendered before the input.
Suffix RenderFragment? Content rendered after the input.
ValueChangedEventCallback<string?>Two-way binding callback; fires when the value changes.
SizeInputSizeDefaultControl height. Values: Sm, Default, Lg.
DisabledboolfalseDisables user interaction and applies disabled styling.
ClearableboolfalseShows an inline clear button when the value is non-empty.
OnClearEventCallbackInvoked when the clear button is clicked.
RequiredboolfalseMarks the field as required; forwarded to FormField when nested.
InvalidboolfalseApplies a destructive ring to indicate a validation error.
ErrorTextstring?nullError message shown below the field when Invalid is true (standalone, not inside FormField).
HelperTextstring?nullHelp text shown below the field when there is no error (standalone, not inside FormField).
Labelstring?nullInline label rendered above the input (standalone, not inside FormField).
Namestring?nullHTML name attribute for form identification and EditForm binding.
FormFieldFormFieldContext?nullCascaded context from a parent FormField. Drives Invalid, Required, and error display automatically.
  • Textarea — Use for multi-line text input like comments or descriptions.
  • OtpInput — Specialized input for one-time password or verification codes.
  • Select — Use when the input value must come from a predefined list.
  • Form — Wraps inputs with validation, labels, and error messages.