RayCraftDocs
v1.0.3 raycraft.dev
On this page

TextField

Free

Single-line text input. Works with EditForm and DataAnnotations; the error message appears below the field.

Example

TextField control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
DisplayNamestringName used in validation messages.
HelperTextstringHint shown below the field.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
LinesintNumber of text lines; above 1 the field becomes a multiline text area.
MaxLengthint?Largest number of characters allowed.
PlaceholderstringPlaceholder shown when the field is empty.
ReadOnlyboolShows the value but does not allow changes.
RevealableboolPassword fields only: adds a button that shows or hides the text.
ShowCounterboolShows the number of typed characters next to MaxLength.
StylestringInline style added to the root element.
TypestringHow the cell is drawn: Text, Check, Image, Progress, Link, Badge or Dropdown.
ValuestringCurrent value. Use with @bind-Value.

Events

EventTypeDescription
ValueChangedEventCallback<string>Raised when the value changes.

Package

TextField is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.