RadzenChip Class

A compact component for displaying short text labels, tags, or statuses with optional icon and remove action.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenChip

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenChip : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenChiplink

A compact component for displaying short text labels, tags, or statuses with optional icon and remove action.

Declaration
public RadzenChip()

Properties

ChildContentlink

Gets or sets custom child content rendered inside the chip.

Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type Description
RenderFragmentGets or sets custom child content rendered inside the chip.

ChipStylelink

Gets or sets the chip semantic style.

Declaration
public BadgeStyle ChipStyle { get; set; }
Property Value
Type Description
BadgeStyleGets or sets the chip semantic style.

Clicklink

Gets or sets the callback invoked when the chip is clicked.

Declaration
public EventCallback<MouseEventArgs> Click { get; set; }
Property Value
Type Description
EventCallback<MouseEventArgs>Gets or sets the callback invoked when the chip is clicked.

Closelink

Gets or sets the callback invoked when the remove button is clicked.

Declaration
public EventCallback<MouseEventArgs> Close { get; set; }
Property Value
Type Description
EventCallback<MouseEventArgs>Gets or sets the callback invoked when the remove button is clicked.

Disabledlink

Gets or sets a value indicating whether the chip is disabled.

Declaration
public bool Disabled { get; set; }
Property Value
Type Description
boolGets or sets a value indicating whether the chip is disabled.

Iconlink

Gets or sets the material icon displayed before the text.

Declaration
public string Icon { get; set; }
Property Value
Type Description
stringGets or sets the material icon displayed before the text.

RemoveChipTitlelink

Gets or sets the title used by the close button for accessibility.

Declaration
public string RemoveChipTitle { get; set; }
Property Value
Type Description
stringGets or sets the title used by the close button for accessibility.

Selectedlink

Gets or sets a value indicating whether the chip is selected.

Declaration
public bool Selected { get; set; }
Property Value
Type Description
boolGets or sets a value indicating whether the chip is selected.

Shadelink

Gets or sets the chip color shade.

Declaration
public Shade Shade { get; set; }
Property Value
Type Description
ShadeGets or sets the chip color shade.

Sizelink

Gets or sets the chip size.

Declaration
public ChipSize Size { get; set; }
Property Value
Type Description
ChipSizeGets or sets the chip size.

TabIndexlink

Gets or sets the tab index of the chip.

Declaration
public int TabIndex { get; set; }
Property Value
Type Description
intGets or sets the tab index of the chip.

Textlink

Gets or sets the text content of the chip.

Declaration
public string Text { get; set; }
Property Value
Type Description
stringGets or sets the text content of the chip.

Variantlink

Gets or sets the chip design variant.

Declaration
public Variant Variant { get; set; }
Property Value
Type Description
VariantGets or sets the chip design variant.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

GetComponentCssClasslink

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string
An error has occurred. This app may no longer respond until reloaded. Reload 🗙