The CodeBlock
component is used when you want to display a code snippet.
CodeBlock Props:
- title: string
- language: a string representing the language of the code snippet
Single CodeBlock
This would look like:
Node.js SDK
Multiple CodeBlocks
If you’d like to have tabs to show multiple CodeBlocks at a time, you can use the CodeBlocks
component.
This would look like: