MCPcopy Create free account
hub / github.com/LyonSyonII/dioxus-tailwindcss / Code

Function Code

src/app.rs:95–102  ·  view source on GitHub ↗
(cx: Scope<'a>, children: Element<'a>)

Source from the content-addressed store, hash-verified

93
94#[inline_props]
95fn Code<'a>(cx: Scope<'a>, children: Element<'a>) -> Element<'a> {
96 cx.render(rsx! {
97 code {
98 class: "bg-gray-100 text-gray-900 rounded px-1 py-0.5 font-mono text-sm",
99 children
100 }
101 })
102}
103
104const fn wasm_or_else<'a, T: ?Sized>(then: &'a T, _else: &'a T) -> &'a T {
105 if cfg!(target_family = "wasm") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected