singlestage/components/empty/
description.rs1use leptos::prelude::*;
2
3#[component]
5pub fn EmptyDescription(
6 children: Children,
7
8 #[prop(optional, into)]
13 accesskey: MaybeProp<String>,
14 #[prop(optional, into)]
19 autocapitalize: MaybeProp<String>,
20 #[prop(optional, into)]
23 autofocus: MaybeProp<bool>,
24 #[prop(optional, into)]
26 class: MaybeProp<String>,
27 #[prop(optional, into)]
31 contenteditable: MaybeProp<String>,
32 #[prop(optional, into)]
36 dir: MaybeProp<String>,
37 #[prop(optional, into)]
39 draggable: MaybeProp<bool>,
40 #[prop(optional, into)]
42 enterkeyhint: MaybeProp<String>,
43 #[prop(optional, into)]
45 exportparts: MaybeProp<String>,
46 #[prop(optional, into)]
48 hidden: MaybeProp<String>,
49 #[prop(optional, into)]
51 id: MaybeProp<String>,
52 #[prop(optional, into)]
54 inert: MaybeProp<bool>,
55 #[prop(optional, into)]
58 inputmode: MaybeProp<String>,
59 #[prop(optional, into)]
61 is: MaybeProp<String>,
62 #[prop(optional, into)]
64 itemid: MaybeProp<String>,
65 #[prop(optional, into)]
67 itemprop: MaybeProp<String>,
68 #[prop(optional, into)]
70 itemref: MaybeProp<String>,
71 #[prop(optional, into)]
73 itemscope: MaybeProp<String>,
74 #[prop(optional, into)]
76 itemtype: MaybeProp<String>,
77 #[prop(optional, into)]
79 lang: MaybeProp<String>,
80 #[prop(optional, into)]
82 nonce: MaybeProp<String>,
83 #[prop(optional, into)]
85 part: MaybeProp<String>,
86 #[prop(optional, into)]
88 popover: MaybeProp<String>,
89 #[prop(optional, into)]
91 slot: MaybeProp<String>,
92 #[prop(optional, into)]
96 spellcheck: MaybeProp<String>,
97 #[prop(optional, into)]
99 style: MaybeProp<String>,
100 #[prop(optional, into)]
102 tabindex: MaybeProp<usize>,
103 #[prop(optional, into)]
105 title: MaybeProp<String>,
106 #[prop(optional, into)]
108 translate: MaybeProp<String>,
109) -> impl IntoView {
110 let global_attrs_1 = view! {
111 <{..}
112 accesskey=move || accesskey.get()
113 autocapitalize=move || autocapitalize.get()
114 autofocus=move || autofocus.get()
115 contenteditable=move || contenteditable.get()
116 dir=move || dir.get()
117 draggable=move || draggable.get()
118 enterkeyhint=move || enterkeyhint.get()
119 exportparts=move || exportparts.get()
120 hidden=move || hidden.get()
121 id=move || id.get()
122 inert=move || inert.get()
123 inputmode=move || inputmode.get()
124 is=move || is.get()
125 itemid=move || itemid.get()
126 />
127 };
128
129 let global_attrs_2 = view! {
130 <{..}
131 itemprop=move || itemprop.get()
132 itemref=move || itemref.get()
133 itemscope=move || itemscope.get()
134 itemtype=move || itemtype.get()
135 lang=move || lang.get()
136 nonce=move || nonce.get()
137 part=move || part.get()
138 popover=move || popover.get()
139 slot=move || slot.get()
140 spellcheck=move || spellcheck.get()
141 style=move || style.get()
142 tabindex=move || tabindex.get()
143 title=move || title.get()
144 translate=move || translate.get()
145 />
146 };
147
148 view! {
149 <div
150 class=move || {
151 format!("singlestage-empty-description {}", class.get().unwrap_or_default())
152 }
153
154 {..global_attrs_1}
155 {..global_attrs_2}
156 >
157 {children()}
158 </div>
159 }
160}