Initial commit

This commit is contained in:
2022-03-21 15:24:12 +00:00
commit 2414ccb287
19 changed files with 809 additions and 0 deletions

16
src/iconnav.rs Normal file
View File

@@ -0,0 +1,16 @@
use yew::{classes, function_component, html, Children, Properties};
#[derive(Properties, PartialEq)]
pub struct IconNavProps {
#[prop_or_default]
pub children: Children,
}
#[function_component(IconNav)]
pub fn icon_nav(IconNavProps { children }: &IconNavProps) -> Html {
html! {
<div class={classes!("uk-iconnav")}>
{ for children.iter() }
</div>
}
}