Code
The Code component can be used to display code snippets and code blocks.
Installation
CLI
Manual
Code Block
View
Code
Snippet
You may hide line-numbers by passing lineNumbers={false}
View
Code
Filename
View
Code
Language
View
Code
Theme
View
Code
Theme
You can specify the theme for light and dark mode
<Code theme={{ light: 'github-light', dark: 'github-dark' }} />
Highlight Lines
View
Code