Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

Code Block

Syntax-highlighted code display with Shiki, file icons, diff markers, and copy for React

Code that actually looks good. Shiki highlighting with 70+ auto-detected file icons—drop in a filename and it shows the React, Docker, or Prisma icon automatically. Line numbers, diff markers (+/-), highlighted regions, focused lines with blur—all the features you'd expect from modern docs. Multi-file blocks with dropdown switching. Dark mode just works. The copy button that every code block needs. Perfect for documentation, tutorials, or anywhere you're showing code.

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.