ColorPalette

fun ColorPalette(color: Color, onColorChanged: (Color) -> Unit, modifier: Modifier = Modifier, rows: Int = 7, hueColumns: Int = 12, includeGrayColumn: Boolean = true, showPreview: Boolean = true, cornerRadius: Dp = 16.dp, indicatorRadius: Dp = 10.dp)

A color palette component that allows users to select colors from a grid of HSV values.

Parameters

color

The color to display in the palette.

onColorChanged

Callback invoked when the selected color changes.

modifier

Modifier for styling the palette.

rows

Number of rows in the color grid.

hueColumns

Number of columns for hue variations.

includeGrayColumn

Whether to include a gray column in the palette.

showPreview

Whether to show a preview of the selected color.

cornerRadius

Corner radius for the palette's shape.

indicatorRadius

Radius of the selection indicator circle.