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 to this section

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

Declaration
public RadzenChip()

Properties

ChildContentLink to this section

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 to this section

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 to this section

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 to this section

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 to this section

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 to this section

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 to this section

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 to this section

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 to this section

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 to this section

Gets or sets the chip size.

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

TabIndexLink to this section

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 to this section

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 to this section

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 to this section

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

GetComponentCssClassLink to this section

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