Skip to content
TEXT AND NUMBERS · FREE

InputGroup

InputGroup is part of RayCraft Free.

Example

<InputGroup PrefixText="https://" SuffixText=".example.com" Label="Address">
    <TextField @bind-Value="_host" Placeholder="company" />
</InputGroup>
<InputGroup PrefixText="EUR" Label="Amount">
    <NumericField TValue="decimal" @bind-Value="_amount" aria-label="Amount" />
</InputGroup>
<InputGroup Label="Search">
    <Suffix><Button Variant="Variant.Filled" StartIcon="IconName.Search">Search</Button></Suffix>
    <ChildContent><TextField @bind-Value="_query" Placeholder="Type to search" /></ChildContent>
</InputGroup>

@code {
    private string? _host;
    private string? _query;
    private decimal _amount = 25;
}

A short fragment. Add @using RayCraft.Blazor.Components to your page and use an interactive render mode.

Included in RayCraft Free. Working examples are in the GitHub repository (MIT); it holds example and demo code, not the library code.

All controls ยท Documentation