Skip to content

Input

Displays a native text input with ShardUI styling and Blazor form support.

Examples

Disabled

Use native HTML attributes like disabled and placeholder directly on the component.

Custom Styles

Use the Css parameter to extend the base input with Tailwind utilities.

Add utilities without replacing the default input styles.

Live Updates

Set Inmediate to bind on every keystroke instead of waiting for the input to lose focus. Pair it with BindAfter when you want to react after each update. If you choose Value and ValueChanged instead of @bind-Value, make sure you also provide ValueExpression.

Current value: input

With Forms

Because TextInput is built on Blazor's InputText, it works naturally with EditForm, validation, and the companion form components in this library.

Enter 2147483648 and leave the field to see a parsing error, then enter a whole number to clear it.

Last valid quantity: 7

An unhandled error has occurred. Reload 🗙

    Rejoining the server...

    Rejoin failed... trying again in seconds.

    Failed to rejoin.
    Please retry or reload the page.

    The session has been paused by the server.

    Failed to resume the session.
    Please reload the page.