Skip to main content

ColorField

Function ColorField 

Source
pub fn ColorField(props: ColorFieldProps) -> impl IntoView
Expand description

A native color picker bound to an [f32; 3] RGB signal (components in 0.0..=1.0). Emits (rgb, committed) through on_change, with committed false during input and true on change.

§Required Props

  • label: impl Into<String>
  • value: [Signal<[f32; 3]>]
  • on_change: [Callback<([f32; 3], bool)>]

§Optional Props