Code Block
Renders a code block with syntax highlighting. It tokenizes code based on language rules and displays it with optional line numbers, copy button, and typing animation. Use it to display source code in a readable, styled format.
Loading preview
Installation
terminal
npx layro-cli add @educlopez/code-block
npx layro-cli add @educlopez/code-block
bunx layro-cli add @educlopez/code-block
New project? Start with init. Writes third-party code and installs packages with scripts off.
Code
Sign in to see the code
Free, with GitHub, Google or email. The install command above works without an account.
Sign inVersions
1.0.1 · current
Nov 7, 2026
Synced from Smoothui.







