Skip to main content

euv_ui/component/label/view/
struct.rs

1use super::*;
2
3/// Props for the `euv_label` component.
4///
5/// A label names a control through the `for` attribute, so the text is
6/// both the visible caption and the accessible name of the control it
7/// points at.
8#[derive(Clone, CustomDebug, Data, Default, New)]
9pub struct EuvLabelProps {
10    /// The id of the control the label names.
11    #[get(type(copy))]
12    pub html_for: &'static str,
13    /// The visible label text.
14    #[get(type(copy))]
15    pub text: &'static str,
16    /// Whether the labelled control is disabled.
17    #[get(type(copy))]
18    pub disabled: Signal<bool>,
19    /// An optional application class composed with the label classes.
20    pub class: Css,
21}