Skip to main content

Code

Function Code 

Source
pub fn Code(props: CodeProps) -> Element
Expand description

Inline code, or a code block with syntax highlighting, a header, and an optional copy button.

Highlighting uses the same tokenizer as lumen-core, for JavaScript, TypeScript, JSON, Bash, Lua, Markdown, HTML and other markup, SQL, and YAML.