Skip to content

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.

byEdu Calvofrom Smoothui

Loading preview

Installation

terminal
pnpm dlx layro-cli add @educlopez/code-block

New project? Start with init. Writes third-party code and installs packages with scripts off.

Code

Dependencies
Demo

Sign in to see the code

Free, with GitHub, Google or email. The install command above works without an account.

Sign in

Versions

  1. 1.0.1 · current

    Nov 7, 2026

    Synced from Smoothui.

Similar components