Class TwInputLabel
- Namespace
- TwBlazor.Components
- Assembly
- TwBlazor.dll
public class TwInputLabel : TwBlazorComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent
- Inheritance
-
TwInputLabel
- Implements
- Inherited Members
Constructors
TwInputLabel()
public TwInputLabel()
Properties
ChildContent
Renders instead of Label if not null and inside of the label html element.
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
For
Gets or sets the identifier for the target element associated with this component.
[Parameter]
public string For { get; set; }
Property Value
Remarks
This property is typically used to specify the context or purpose of the component, allowing for better integration with other elements or components in the application.
Label
Gets or sets the label text displayed for the associated input element.
[Parameter]
public string Label { get; set; }
Property Value
Remarks
This property allows customization of the label shown to users, enhancing accessibility and usability. The default value is an empty string, which means no label will be displayed unless explicitly set.
OverrideClass
Allows you to completely override the input label theme classes.
[Parameter]
public string OverrideClass { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder