Class Chip
A coloured status pill. It shows the action (indigo) tone by default, or reuses a message-level hue ramp when Level is set, so a chip and a same-level button or validity outline always agree.
public class Chip : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
- Inheritance
-
Chip
- Implements
- Inherited Members
Properties
ChildContent
The chip's label.
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
Level
Colour the chip with a message-level hue (success / info / warning / error / debug) instead of the default action tone.
[Parameter]
public MessageLevel? Level { get; set; }
Property Value
Splat
[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object>? Splat { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder