About
An inline code snippet and preformatted code block for displaying commands or source samples, with a monochrome e-ink style and an inverted "mono" variant.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds E-Ink Code to your project and fits it to your theme.
Code
How E-Ink Code is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Code } from "@/components/ui/code";
export default function CodeInParagraphDemo() {
return (
<div className="p-8">
<p style={{ maxWidth: 480, lineHeight: 1.8 }}>
Run <Code>npm install</Code> to install dependencies, or in mono
contexts render it as <Code mono>npm install</Code> instead.
</p>
</div>
);
}








