Skip to main content

Swatch

Function Swatch 

Source
pub fn Swatch(props: SwatchProps) -> impl IntoView
Expand description

A single color swatch button showing color as its background, marked active via the active signal. Runs the optional on_select callback when clicked.

§Required Props

§Optional Props