Redpanda UI
RC
Redpanda UI

Code Editor

A code editor component featuring syntax highlighting and animation.

Made by imskyleen
Loading component...

Installation

Usage

<CodeEditor lang="tsx">
  {`const a = 1;
const b = 2;
const c = a + b;`}
</CodeEditor>

If you want to toggle between light and dark themes, you can use the theme prop.

<CodeEditor lang="tsx" theme="dark">
  {`const a = 1;
const b = 2;
const c = a + b;`}
</CodeEditor>

When to use

Use this decision tree to determine when to use the Code Editor component:

Props

Prop

Type

Credits

Built by malinskibeniamin. The source code is available on GitHub.

On this page