email_components/components/
container.rs1use yew::{Classes, Html, Properties, function_component, html};
2
3#[derive(Properties, PartialEq)]
4pub struct Props {
5 #[prop_or_default]
6 pub class: Classes,
7 pub children: Html,
8}
9
10#[function_component]
11pub fn Container(props: &Props) -> Html {
12 let Props { class, children } = props;
13
14 html! {
15 <table
16 align="center"
17 width="100%"
18 border=0
19 cellpadding="0"
20 cellspacing="0"
21 role="presentation"
22 class={class.clone()}
23 >
24 <tbody>
25 <tr style="width: 100%">
26 <td>{ children.clone() }</td>
27 </tr>
28 </tbody>
29 </table>
30 }
31}