Import
import { Input } from '@strongtie/design-system/input';
Usage
<Input placeholder="Enter text here" />
Props
type
"text" | "password" | "email" | "number" | "search" | "tel" | "url"
default:"text"
The type of input.
The placeholder text for the input.
If true, the input will be disabled.
The default value of the input.
The current value of the input.
Callback function that is called when the value changes.
Styling Classes
The following CSS classes are applied by the Input component:For more examples, visit the Storybook.<StudsInput type="text" placeholder="Enter text here" @bind="inputValue" />
Parameters
If true, the input will be read-only.
The maximum length of the input.
Specifies whether to remove any leading or trailing whitespace from the value. Set to false by default.
Gets or sets a value indicating the type of built-in autocomplete the browser should use. “Blazor.AutoCompleteType”
The tab index of the input.
The placeholder text for the input.
If true, the input will be disabled.
Callback function that is called when the value changes.
Callback function that is called when the value changes.
The expression for the value.
Attributes
Dictionary<string, object>
Specifies additional custom attributes that will be rendered by the component.
MouseEnter
EventCallback<ElementReference>
Gets or sets the callback that is invoked when the mouse enters an item.
MouseLeave
EventCallback<ElementReference>
Gets or sets the callback that is invoked when the mouse leaves an item.
A callback that will be invoked when the user right-clicks the component. Commonly used to display a context menu.
Culture
CultureInfo
default:"CultureInfo.CurrentCulture"
Gets or sets the culture used to display localizable data (numbers, dates). Set by default to “CultureInfo.CurrentCulture”.
Gets or sets the inline CSS style.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is visible. Invisible components are not rendered.
Styling Classes
The following CSS classes are applied by the Input component:
input – Base input class (inherited from FormComponentWithAutoComplete)
For more examples, visit the Storybook.