Utilities
Params
Bit.BlazorUI
BitParams lets you cascade shared parameter objects to compatible components so you can define common defaults once.
Usage
Every example is live. Open its code to see exactly what produced the component running underneath.
Basic
Use BitParams to share parameters between child components.
BitText with provided parameters
BitTag with provided parameters
Overriding cascaded values
You can override cascaded parameters by setting them directly on the component.
BitText with provided and overriden parameters
BitTag with provided and overriden parameters
Changing parameter values
You can change provided cascading values at runtime.
BitText with provided parameters
BitTag with provided parameters
Nesting Params
Inner BitParams can override or extend outer defaults for a scoped area.
Outer defaults
These tags use the parent BitParams values.
Global TeamNested overrides
Inner BitParams changes colors and variants for this scope.
Alert HighlightAPI
Every parameter, public member, sub-class and enum this component exposes.
BitParams parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| ChildContent | RenderFragment? | null | The content to which the values should be provided. |
| Parameters | IEnumerable<IBitComponentParams>? | null | List of parameters to provide for the children components. |
IBitComponentParams properties
Defines the contract for parameters that can be cascaded by BitParams.
| Name | Type | Default value | Description |
|---|---|---|---|
| Name | string | Gets the name associated with the current instance of BitComponentParams. |
BitComponentBaseParams properties
Base class shared by BitParams models to map BitComponentBase defaults.
| Name | Type | Default value | Description |
|---|---|---|---|
| AriaLabel | string? | null | Gets or sets the accessible label for the component, used by assistive technologies. |
| Class | string? | null | Gets or sets the CSS class name(s) to apply to the rendered element. |
| Dir | BitDir? | null | Gets or sets the text directionality for the component's content. |
| ForceAnimation | bool? | null | Gets or sets a value indicating whether the component's animations play at their full duration even when reduced motion is requested. |
| HtmlAttributes | Dictionary<string, object>? | null | Captures additional HTML attributes to be applied to the rendered element, in addition to the component's parameters. |
| Id | string? | null | Gets or sets the unique identifier for the component's root element. |
| IsEnabled | bool? | true | Gets or sets a value indicating whether the component is enabled and can respond to user interaction. |
| Style | string? | null | Gets or sets the CSS style string to apply to the rendered element. |
| TabIndex | string? | null | Gets or sets the tab order index for the component when navigating with the keyboard. |
| Visibility | BitVisibility? | null | Gets or sets the visibility state (visible, hidden, or collapsed) of the component. |
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.