Table of Contents

Interface ITwComponent

Namespace
TwBlazor.Abstraction
Assembly
TwBlazor.dll

Defines the contract for all TwBlazor components.

public interface ITwComponent

Properties

AriaLabel

Gets or sets the ARIA label for accessibility.

string? AriaLabel { get; set; }

Property Value

string

Remarks

Provides a text label for assistive technologies when a visible label is not present.

AriaLabelledBy

Gets or sets the ID of another element that labels this component for accessibility.

string? AriaLabelledBy { get; set; }

Property Value

string

Remarks

References another element that serves as the label for this component.

Attributes

Gets or sets a collection of additional attributes to apply to the component.

Dictionary<string, object> Attributes { get; set; }

Property Value

Dictionary<string, object>

Remarks

This captures any unmatched HTML attributes that can be passed to the component.

Class

Gets or sets the CSS class(es) to apply to the component.

string Class { get; set; }

Property Value

string

Id

Gets or sets the unique identifier for the component.

string? Id { get; set; }

Property Value

string

Remarks

If not provided, a unique ID will be automatically generated.

Rounded

Gets or sets the border radius for the component.

Rounded? Rounded { get; set; }

Property Value

Rounded?

Remarks

If not set, uses the global default from DefaultRounded. Set to None to explicitly remove border radius.

Shadow

Gets or sets the shadow (elevation) level for the component.

Shadow? Shadow { get; set; }

Property Value

Shadow?

Remarks

If not set, uses the global default from DefaultShadow. Set to None to explicitly remove shadow.

Style

Gets or sets inline CSS styles to apply to the component.

string? Style { get; set; }

Property Value

string