use leptos::*; use melt_ui::{mount_style, Code}; #[slot] pub struct DemoCode { #[prop(optional)] html: &'static str, children: Children, } #[component] pub fn Demo(demo_code: DemoCode, children: Children) -> impl IntoView { mount_style("demo", || ("", prisms::prism_css!())); view! {
{ children() }
                    { (demo_code.children)() }
                
} }