1Sponsor

Image

Image renderer with iTerm2/Kitty protocol and ASCII fallback

Terminal

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

PropTypeDefault
srcstringrequired
widthnumber20
heightnumberundefined
protocol"auto" | "iterm2" | "kitty" | "ascii""auto"
altstringundefined