Code
Code inside running text.
Set NODE_ENV to production before you run the build.
<Text color="secondary"> Set <Code>NODE_ENV</Code> to <Code>production</Code> before you run the build.</Text>Installation
$ npx shadcn@latest add @constella/codeUsage
import { Code } from "@/components/typography/code";<Code>NODE_ENV</Code>Its size is relative, so it sits a step under the text around it at any size. For a block of code, use Code Block.
API Reference
| Prop | Type | Default |
|---|---|---|
render | ReactElement | function | <code> |
sx | Sx, applied last | - |