Zum Inhalt springen
TEXT UND ZAHLEN · FREE

InputGroup

InputGroup gehört zu RayCraft Free.

Beispiel

<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;
}

Ein kurzes Fragment. Fügen Sie @using RayCraft.Blazor.Components zu Ihrer Seite hinzu und nutzen Sie einen interaktiven Render-Modus.

In RayCraft Free enthalten. Funktionierende Beispiele finden Sie im GitHub-Repository (MIT); es enthält Beispiel- und Democode, nicht den Code der Bibliothek.

Alle Steuerelemente ยท Dokumentation