A compact component for displaying short text labels, tags, or statuses with optional icon and remove action.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.GetIdAttribute
RadzenComponent.SetParametersAsync
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.DefaultUICulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenChip : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRenderA compact component for displaying short text labels, tags, or statuses with optional icon and remove action.
public RadzenChip()Gets or sets custom child content rendered inside the chip.
public RenderFragment ChildContent { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets custom child content rendered inside the chip. |
Gets or sets the chip list that renders the chip. RadzenChipList<T> supplies it as a cascading value. Inside a chip list the chip is the content of a listbox option, so it renders no role and no tab stop and the option carries the selection and the keyboard behaviour.
public IRadzenChipList ChipList { get; set; }
| Type | Description |
|---|---|
| IRadzenChipList | Gets or sets the chip list that renders the chip. RadzenChipList<T> supplies it as a cascading value. Inside a chip list the chip is the content of a listbox option, so it renders no role and no tab stop and the option carries the selection and the keyboard behaviour. |
Gets or sets the chip semantic style.
public BadgeStyle ChipStyle { get; set; }
| Type | Description |
|---|---|
| BadgeStyle | Gets or sets the chip semantic style. |
Gets or sets the callback invoked when the chip is clicked.
public EventCallback<MouseEventArgs> Click { get; set; }
| Type | Description |
|---|---|
| EventCallback<MouseEventArgs> | Gets or sets the callback invoked when the chip is clicked. |
Gets or sets the callback invoked when the chip is removed with the remove affordance or with Delete or Backspace. Setting it renders the remove affordance.
public EventCallback<MouseEventArgs> Close { get; set; }
| Type | Description |
|---|---|
| EventCallback<MouseEventArgs> | Gets or sets the callback invoked when the chip is removed with the remove affordance or with Delete or Backspace. Setting it renders the remove affordance. |
Gets or sets a value indicating whether the chip is disabled.
public bool Disabled { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether the chip is disabled. |
Gets or sets the material icon displayed before the text.
public string Icon { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the material icon displayed before the text. |
Gets or sets the tooltip of the remove affordance. The affordance is a mouse-only control; keyboard users remove the focused chip with Delete or Backspace.
public string RemoveChipTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the tooltip of the remove affordance. The affordance is a mouse-only control; keyboard users remove the focused chip with Delete or Backspace. |
Gets or sets a value indicating whether the chip is selected.
public bool Selected { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether the chip is selected. |
Gets or sets the chip color shade.
public Shade Shade { get; set; }
| Type | Description |
|---|---|
| Shade | Gets or sets the chip color shade. |
Gets or sets the chip size.
public ChipSize Size { get; set; }
| Type | Description |
|---|---|
| ChipSize | Gets or sets the chip size. |
Gets or sets the tab index of the chip.
public int TabIndex { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the tab index of the chip. |
Gets or sets the text content of the chip.
public string Text { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the text content of the chip. |
Gets or sets the chip design variant.
public Variant Variant { get; set; }
| Type | Description |
|---|---|
| Variant | Gets or sets the chip design variant. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |