mirror of
https://github.com/adoyle0/thaw.git
synced 2025-03-13 22:19:49 -04:00
8 lines
224 B
Rust
8 lines
224 B
Rust
use crate::utils::mount_style;
|
|
use leptos::*;
|
|
|
|
#[component]
|
|
pub fn Code(children: Children) -> impl IntoView {
|
|
mount_style("code", include_str!("./code.css"));
|
|
view! { <code class="thaw-code">{children()}</code> }
|
|
}
|