# ColorPicker Views

The ColorPicker popup can display different views. They allow users to select a color from an interface that matches their preferences. The supported views are:

* [ColorPickerGradientView](https://www.telerik.com/blazor-ui/documentation/components/colorpicker/views#colorpickergradientview) - allows unlimited color selection from an [HSVA](https://en.wikipedia.org/wiki/HSL_and_HSV) canvas. This view also renders textboxes for typing a color in [RGB or HEX format](https://www.telerik.com/blazor-ui/documentation/components/colorpicker/overview#supported-value-formats).
* [ColorPickerPaletteView](https://www.telerik.com/blazor-ui/documentation/components/colorpicker/views#colorpickerpaletteview) - allows color selection from a predefined collection of colors.

By default, both views are enabled and the gradient view is displayed first. Both behaviors can be configured via the ColorPicker [`ColorPickerViews` container and `View` attribute](https://www.telerik.com/blazor-ui/documentation/components/colorpicker/overview#colorpicker-parameters).

## ColorPickerGradientView

The GradientView uses a [`TelerikColorGradient` component](https://www.telerik.com/blazor-ui/documentation/components/colorgradient/overview). The following [ColorGradient attributes](https://www.telerik.com/blazor-ui/documentation/components/colorgradient/overview#colorgradient-parameters) are exposed in the `ColorPickerGradientView` tag:

* `Format`
* `Formats`
* `ShowOpacityEditor`

## ColorPickerPaletteView

The PaletteView uses a [`TelerikColorPalette` component](https://www.telerik.com/blazor-ui/documentation/components/colorpalette/overview). The following [ColorPalette attributes](https://www.telerik.com/blazor-ui/documentation/components/colorpalette/overview#colorpalette-parameters) are exposed in the `ColorPickerPaletteView` tag:

* `Columns`
* `Colors`
* `TileWidth`
* `TileHeight`

## Example

<demo metaUrl="client/colorpicker/views/" height="300"></demo>

## See Also

* [ColorPicker Events](https://www.telerik.com/blazor-ui/documentation/components/colorpicker/events)
* [ColorPicker Views Demo](https://demos.telerik.com/blazor-ui/colorpicker/views)
