Search results

Render palette alone in Blazor ColorPicker component

08 Apr 2021 / 1 minute to read

To render the Palette alone in Color Picker, specify the Mode property as Palette, and set the ModeSwitcher property to false.

In the following sample, the ShowButtons property is set to false to hide the control buttons and it renders only the Palette area.

Copied to clipboard
@using Syncfusion.Blazor.Inputs

<h4>Choose a color</h4>
<SfColorPicker Mode="ColorPickerMode.Palette" ModeSwitcher="false" ShowButtons="false"></SfColorPicker>

Output be like color-picker

To render Picker alone, specify the Mode property as ‘Picker’.