Table of Contents

Class TwInputGroupAddon

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

Holds text, icons or buttons beside the input of a TwInputGroup.

public class TwInputGroupAddon : TwBlazorComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent
Inheritance
TwInputGroupAddon
Implements
Inherited Members

Remarks

Put static text in a TwInputGroupText, so it is read with the input, and actions in a TwInputGroupButton, so they fit the field. A decorative TwIcon is hidden from screen readers unless it has an AriaLabel.

Constructors

TwInputGroupAddon()

public TwInputGroupAddon()

Properties

Align

Gets or sets where the addon sits in the group. Defaults to InlineStart.

[Parameter]
public InputGroupAlign Align { get; set; }

Property Value

InputGroupAlign

Remarks

The addon is placed here whatever its position in the markup. Addons with the same alignment keep their order.

ChildContent

Gets or sets the content of the addon, such as a TwInputGroupText, a TwIcon or a TwInputGroupButton.

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder