Components · Inline Primitives
Code
StableSince v0.0.1
Inline code span for technical terms and short code snippets.
import { Code } from '@nexub/react';Examples
Default
In prose
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | React.HTMLAttributes<HTMLElement> | — | All standard span/code HTML attributes are forwarded. |
On iOS & Android
Web only
Code has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.