Components
Syntax Highlight
This documentation is for the preview version of the Dev Portal. If you are using the legacy developer portal, please refer to the docs.
It is used to highlight code blocks in your content.
You can also use backticks to highlight code blocks in Markdown files, see Code Blocks for more information.
Types
Code(ts)
Usage
You can either use children
or code
prop to pass the code to the component.
Code(tsx)
Result
Code
Last modified on