HxChipList

Presents a list of chips as badges.
Usualy being used to present filter-criteria gathered by HxFilterForm.

onetwothree
<HxChipList Chips="@chips" />

@code
{
	private ChipItem[] chips =
	{
		new() { ChipTemplate = GetRenderFragment("one"), Removable = true },
		new() { ChipTemplate = GetRenderFragment("two") },
		new() { ChipTemplate = GetRenderFragment("three") }
	};

	private static RenderFragment GetRenderFragment(string text) => builder =>
	{
		builder.AddContent(1, text);
	};
}

API

Parameters

Name Type Description
Chips IEnumerable<ChipItem> Chips to be presented.

Event Callbacks

Name Type Description
OnChipRemoveClick EventCallback<ChipItem> Called when chip remove button is clicked.

Methods

Method Returns Description
HandleRemoveClick(ChipItem chipItemToRemove) Task
An unhandled error has occurred. Reload 🗙