pub fn Swatch(props: SwatchProps) -> impl IntoViewExpand 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
- color:
impl Into<String>
§Optional Props
- active:
impl Into<Signal<bool>> - on_select:
Callback<()>