Utility
AI
Terminal
Image rendering uses terminal-specific protocols (iTerm2, Kitty) and falls back to ASCII art. Results vary by terminal emulator.
Installation
pnpm dlx shadcn@latest add https://termcn.dev/r/image.json
Usage
import { Image } from "@/components/ui/image";<Image src="./screenshot.png" width={40} alt="Application screenshot" />API Reference
Image
| Prop | Type | Default |
|---|---|---|
src | string | required |
width | number | 20 |
height | number | undefined |
protocol | "auto" | "iterm2" | "kitty" | "ascii" | "auto" |
alt | string | undefined |