Skip to content

Textarea

Displays a multi-line text input with ShardUI styling and Blazor form support.

Examples

Rows And Placeholder

Use native textarea attributes like rows, placeholder, and maxlength directly on the component.

Disabled

Disabled textareas keep the same structure and styling while clearly signaling that editing is unavailable.

Custom Styles

Use the Css parameter to layer in Tailwind utilities without replacing the base textarea styles.

Use utility classes to adapt the presentation to the surrounding layout.

Live Updates

Set Inmediate to update on every keystroke. If you use Value and ValueChanged instead of @bind-Value, you also need to supply ValueExpression.

Character count: 13

With Forms

Because TextAreaInput is built on Blazor's InputBase<string>, it works naturally with EditForm, validation, and the rest of the form components in this library.

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.