Skip to main content

CodeThemeStyles

Function CodeThemeStyles 

Source
pub fn CodeThemeStyles(_: CodeThemeStylesProps) -> Element
Expand 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.