euv_ui/component/checkbox/view/struct.rs
1use crate::*;
2
3/// Props for the `euv_checkbox` component.
4///
5/// Defines the strongly-typed interface for a labeled checkbox.
6#[derive(Clone, CustomDebug, Data, Default, New)]
7pub struct EuvCheckboxProps {
8 /// The unique identifier for the checkbox element.
9 #[get(type(copy))]
10 pub id: &'static str,
11 /// The HTML name attribute for the checkbox element.
12 #[get(type(copy))]
13 pub name: &'static str,
14 /// The autocomplete hint for the browser.
15 #[get(type(copy))]
16 pub autocomplete: &'static str,
17 /// The boolean signal bound to the checkbox checked state.
18 #[get(type(copy))]
19 pub checked: Signal<bool>,
20 /// The label text displayed next to the checkbox.
21 #[get(type(copy))]
22 pub label: &'static str,
23}