ColorPicker

fun ColorPicker(color: Color, onColorChanged: (Color) -> Unit, modifier: Modifier = Modifier, showPreview: Boolean = true, hapticEffect: SliderDefaults.SliderHapticEffect = SliderDefaults.DefaultHapticEffect, colorSpace: ColorSpace = ColorSpace.HSV)

A ColorPicker component with Miuix style that supports multiple color spaces.

Parameters

color

The color of the picker.

onColorChanged

The callback to be called when the color changes.

modifier

The modifier to be applied to the color picker.

showPreview

Whether to show a preview of the selected color.

hapticEffect

The haptic effect of the ColorSlider.

colorSpace

The color space to use for the picker.