Toggle

DaisyUI

Toggle is a checkbox that looks like a switch.

Basic Toggle
Checked
Colors

Different semantic colors.

Sizes

From extra small to extra large.

Disabled

Disabled state.

Code Example
use rsxui::components::{Toggle, Color, Size};
use rsx_macros::rsx;
let html = rsx! {
    <Toggle />
};
// With color and checked
let html = rsx! {
    <Toggle color={Color::Primary} checked={true} />
};