basecoat_core/props/label.rs
1use crate::{AttrMap, BasecoatProps, Children};
2use std::borrow::Cow;
3
4/// Label — maps to CSS class `.label`. No variants.
5#[derive(BasecoatProps, Default, Clone, Debug)]
6pub struct LabelProps {
7 #[prop(optional, into)]
8 pub class: Option<Cow<'static, str>>,
9 /// `for` attribute linking to an input id.
10 #[prop(optional, into)]
11 pub r#for: Option<Cow<'static, str>>,
12 #[prop(extend)]
13 pub attrs: AttrMap,
14 pub children: Children,
15}