Skip to content

What is exactly required to have icons displayed for code blocks? #596

Answered by kyrylolvov
kyrylolvov asked this question in Q&A
Discussion options

You must be logged in to vote

For some reason I was passing code component to <MDX />. That fixed the issue

<MDX
  components={{
    pre: ({ ref: _ref, title, ...props }) => (
      <CodeBlock title={title}>
        <Pre {...props} />
      </CodeBlock>
    ),
  }}
/>;

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@fuma-nama
Comment options

@kyrylolvov
Comment options

kyrylolvov Jul 13, 2024
Author Sponsor

Answer selected by kyrylolvov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants