pub fn CodeThemeStyles(_: CodeThemeStylesProps) -> ElementExpand description
Inject the shared syntax theme stylesheet and selected theme stylesheet.
use dioxus::prelude::*;
use dioxus_code::{CodeTheme, Theme};
use dioxus_code::advanced::CodeThemeStyles;
fn _example() -> Element {
rsx! { CodeThemeStyles { theme: CodeTheme::fixed(Theme::TOKYO_NIGHT) } }
}ยงProps
For details, see the props struct definition.
theme:CodeTheme