Table of Contents

Class Chip

Namespace
The.Web.Controls
Assembly
Instagile.Web.Client.dll

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

RenderFragment

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

MessageLevel?

Splat

[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object>? Splat { get; set; }

Property Value

Dictionary<string, object>

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder