Installation
Vite
Start with the example or follow this guide:
npm install ink-web xtermyarn add ink-web xtermpnpm add ink-web xtermbun add ink-web xtermUsage:
"use client";
import { InkXterm, Box, Text } from "ink-web";
import "ink-web/css";
import "xterm/css/xterm.css";
export const Terminal = () => (
<div style={{ width: "100vw", height: "100vh" }}>
<InkXterm focus>
<Box flexDirection="column">
<Text color="green">Hello from Ink!</Text>
</Box>
</InkXterm>
</div>
);
export default Terminal;