InlineCode
Data Display

InlineCode

Monospace span for identifiers and short code fragments inside prose.

Props

InlineCodeProps props
PropTypeDefaultDescription
childrenReactNode—The inline code content.

Examples

Use InlineCode to render identifiers, file names, or short code fragments within running text. It renders a <code> element with the monospace font stack.

Use the useHydrated hook to detect hydration.

Inline code in prose

Edit src/App.tsx to configure strict: true.

Multiple references
ImportTSX
import { InlineCode } from "@solarius/onset";