DocsBlogChangelog

CodeInline

Server Only

Renders an inline code element with optional syntax highlighting.

This component is automatically set up to override the code element when using the Next.js plugin.

Examples

In React, <span style={{ color: 'blue' }}> changes the color of the text to blue.

Basic

API Reference

CodeInline

View Source

value *

string

Code snippet to be highlighted.

language

Languages

Language of the code snippet.

className

string

Class name to apply to the wrapping element.

style

React.CSSProperties

Style to apply to the wrapping element.

Last updated