Code inside a sentence, or a listing across the full width. The listing scrolls sideways — the one thing hand-rolled listings get wrong.
block. When it is TSX, add lang: colour tells a string from a keyword and an attribute from a tag, which on a longer sample is the difference between reading and decoding.<strong>; <code> says "this is code", and when it is not, that is a lie about meaning.children: ReactNode — The code. Not translated.block: boolean — A full-width listing instead of code inside a sentence.lang: "tsx" — Colours the listing's syntax. Only with block, and only when the content is text — otherwise the listing renders as it came.testId: string — data-testid of the element.