Code Reveal
Vista previa de Code Reveal
Escena

Code Reveal

@remotionui/code-reveal

De RemotionUI

Editor window that writes a syntax-highlighted file character by character, then focuses the lines that matter

Instalación

npx remotion-ui@latest add code-reveal

Props (9)

  • codestring

    Source shown in the editor; surrounding blank lines are trimmed.

  • highlightedLinesnumber[]

    1-based lines focused once the listing finishes writing.

  • titlestring= "explainer.tsx"

    Filename on the editor tab.

  • languagestring= "tsx"

    Language badge on the right of the header.

  • startLinenumber= 1

    First line number in the gutter, for excerpts.

  • showLineNumbersboolean= true

    Shows the gutter.

  • accentColorstring= "#E8B86D"

    Caret, focus band and glow color.

  • theme"dark" | "light"= "dark"

    Editor palette.

  • speednumber= 1

    Animation speed multiplier.

Depende de

Paquetes npm

Categorías