Custom Colors
You can provide your own set of colors to the Blazor Color Palette component. You can use a valid CSS color, and pass a IEnumerable<string>
to the Colors
parameter.
@MyColor
<br />
<TelerikColorPalette Colors="@MyCustomColorList" @bind-Value="@MyColor">
</TelerikColorPalette>
@code {
string MyColor { get; set; }
List<string> MyCustomColorList { get; set; } = new List<string> { "red", "#0f0", "#0000ff" };
}