pub fn CodeBlock(_: CodeBlockProps) -> ElementExpand description
A read-only block of source code.
§Props
For details, see the props struct definition.
source:CodeSourcelang:Option<String>The language, as
data-fc-lang, e.g. “rust”.layout:CodeLayoutunsupported:boolNo highlighter knows this language: show its name in a bar above the text.
class:Option<String>attributes:Vec<Attribute>