InlineCode
Monospace span for identifiers and short code fragments inside prose.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | 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.
Edit src/App.tsx to configure strict: true.
import { InlineCode } from "@solarius/onset";