cabin/html/elements/
span.rs

1use super::common::Common;
2use super::global::Global;
3use crate::html::attributes::Attributes;
4use crate::html::{Aria, Html};
5use crate::View;
6
7// TODO:
8pub fn span(content: impl View) -> Html<marker::Span, (), impl View> {
9    #[cfg(debug_assertions)]
10    let content = content.boxed();
11    Html::new("span", (), content)
12}
13
14pub mod marker {
15    pub struct Span;
16}
17
18impl<A: Attributes, V: 'static> Common for Html<marker::Span, A, V> {}
19impl<A: Attributes, V: 'static> Global for Html<marker::Span, A, V> {}
20impl<A: Attributes, V: 'static> Aria for Html<marker::Span, A, V> {}