# FlatColorPicker Views

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

* [FlatColorPickerGradientView](https://www.telerik.com/blazor-ui/documentation/components/flatcolorpicker/views#flatcolorpickergradientview) - 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).
* [FlatColorPickerPaletteView](https://www.telerik.com/blazor-ui/documentation/components/flatcolorpicker/views#flatcolorpickerpaletteview) - 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 FlatColorPicker [`FlatColorPickerViews` container and `View` attribute](https://www.telerik.com/blazor-ui/documentation/components/flatcolorpicker/overview#flatcolorpicker-parameters).

## FlatColorPickerGradientView

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 `FlatColorPickerGradientView` tag:

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

## FlatColorPickerPaletteView

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 `FlatColorPickerPaletteView` tag:

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

## Example

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

## See Also

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