A political conference and discussion platform, in Rust and Dioxus
Something went wrong. Try again.
123456789101112131415161718192021222324252627use dioxus::prelude::*;use dioxus_icons::lucide::Check;use dioxus_primitives::checkbox::{self, CheckboxProps};
#[css_module("/src/components/ui/checkbox/style.css")]struct Styles;
#[component]pub fn Checkbox(props: CheckboxProps) -> Element { rsx! { checkbox::Checkbox { class: Styles::dx_checkbox, checked: props.checked, default_checked: props.default_checked, required: props.required, disabled: props.disabled, name: props.name, value: props.value, on_checked_change: props.on_checked_change, attributes: props.attributes, checkbox::CheckboxIndicator { class: Styles::dx_checkbox_indicator, Check { size: "1rem" } } } }}