Code

Thin wrapper that renders an inline <code> element.

Preview

Run pnpm install to get started.

Import from @bambi-ui/code in your components.

Usage

import { Code } from "@bambi-ui/code";

<p>Run <Code>pnpm install</Code> to get started.</p>

Props

Prop Type Required Description
childrenReactNodeCode content.
classNamestringAdditional Tailwind classes or custom CSS class.