tinkr 0.0.43

Tinkr is a web framework for quickly building full-stack web applications with Leptos.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use leptos::prelude::*;
use tw_merge::tw_merge;

#[component]
pub fn Page(children: Children, #[prop(optional)] class: &'static str) -> impl IntoView {
    view! {
        <div class=tw_merge!(
            "bg-white shadow-xl dark:bg-neutral-900/50 rounded w-full",
    "border border-neutral-200 dark:border-neutral-800 p-6 flex flex-col gap-5", class
        )>{children()}</div>
    }
}