design-infraGitHub
Report a problem or share feedback← Catalog

Code Block

curatedfree

aceternity/code-block

A configurable code block component built on top of react-syntax-highlighter.

$npx shadcn@latest add @aceternity/code-block

npm deps: @tabler/icons-react, react-syntax-highlighter

Our notes

Syntax-highlighted block with tabs (react-syntax-highlighter).
Source
Aceternity UI
Kind
component
Categories
code, features
Use as
drop-in — replaces your component
Applies to
codefeatures
Motion
not tagged (static or unknown)
Tags
special
Licence
Free for unlimited personal & commercial projects; no redistributing as a competing library. Pro/All-Access is a one-time purchase.
Live demo
ui.aceternity.com
Docs
ui.aceternity.com