UnflowUI
Components

InlineCode

Code inside running text, such as a variable, a command or a file name.

Overview

InlineCode renders a <code> element styled for use inside a sentence. Markdown uses it for inline code spans. For multi-line code, use CodeBlock.

Import

import { InlineCode } from '@unflowio/ui/components/InlineCode';

Props

InlineCode takes the props of a native <code> element (BaseHTMLProps<HTMLElement>): children, className, ref and the rest.

Basic usage

Set APP_ENV before running bun run report.

<p>
  Set <InlineCode>APP_ENV</InlineCode> before running <InlineCode>bun run report</InlineCode>.
</p>