Exentials.MdcBlazor.Tools by Gambarotto Damiano

<PackageReference Include="Exentials.MdcBlazor.Tools" Version="0.7.8-alpha" />

 ChipDataset

public class ChipDataset : ComponentBase
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.CompilerServices; using Microsoft.AspNetCore.Components.Rendering; using System.Collections.Generic; namespace Exentials.MdcBlazor { public class ChipDataset : ComponentBase { [Parameter] public IEnumerable<Chip> DataSource { get; set; } protected override void BuildRenderTree(RenderTreeBuilder __builder) { foreach (Chip item in DataSource) { __builder.OpenComponent<MdcChip>(0); __builder.AddAttribute(1, "Id", RuntimeHelpers.TypeCheck(item.Id)); __builder.AddAttribute(2, "LeadingIcon", RuntimeHelpers.TypeCheck(item.Icon)); __builder.AddAttribute(3, "Text", RuntimeHelpers.TypeCheck(item.Text)); __builder.CloseComponent(); } } } }