pub mod web {
use crate::builder::IntoProp;
use crate::element::Prop;
pub struct WebAttr(pub &'static str, pub Prop<String>);
pub fn class(v: impl IntoProp<String>) -> WebAttr {
WebAttr("class", v.into_prop())
}
pub fn id(v: impl IntoProp<String>) -> WebAttr {
WebAttr("id", v.into_prop())
}
pub fn title(v: impl IntoProp<String>) -> WebAttr {
WebAttr("title", v.into_prop())
}
pub fn aria_label(v: impl IntoProp<String>) -> WebAttr {
WebAttr("aria-label", v.into_prop())
}
pub fn role(v: impl IntoProp<String>) -> WebAttr {
WebAttr("role", v.into_prop())
}
}
pub mod native {
use crate::builder::Lit;
use crate::element::Cursor;
pub enum NativeAttr {
Cursor(Cursor),
}
pub fn cursor(v: Lit<Cursor>) -> NativeAttr {
NativeAttr::Cursor(v.0)
}
pub use Cursor::{Default as default, Pointer as pointer, Text as text};
}