leptonic 0.5.0

The Leptos component library.
1
2
3
4
5
6
7
8
9
use std::borrow::Cow;

use leptos::{html::span, *};

#[component]
pub fn SafeHtml(#[prop(into)] html: Cow<'static, str>) -> impl IntoView {
    // TODO: Sanitize input?
    span().inner_html(html)
}