Skip to content
nexubDesign System
v12.7.0

Components · Inline Primitives

Code

StableAdded v0.0.1

Inline code span for technical terms and short code snippets.

import { Code } from '@nexub/react';
View as Markdown

Playground

Props

npm install
TSX
<Code>npm install</Code>

Examples

Default

npm installuseTheme()@nexub/react

In prose

Use the useTheme() hook to access the current theme from any component.

Props

Props
PropTypeDefaultDescription
...propsReact.HTMLAttributes<HTMLElement>—All standard span/code HTML attributes are forwarded.
inlinebooleantrue
languagestring—

On iOS & Android