Code Editor

Displays a code block with an optional header and output area.

Import the component and piece the parts together.

No props data available for CodeEditor.

Syntax highlighting is provided by the extensions prop.

Linting can be done using @codemirror/lint, and a linter for a given language. The linter can be an async function, and codemirror will track the position of the error while the code changes until the next linting passes.

Dashboard

2 variants found

CodeEditor in Custom Element Accordiondashboard

/branding/edit

CodeEditor in Custom Element Accordiondashboard

/branding/edit

Context

Usage

Used 24 times across 1 package

Dashboard
24

Variant Distribution

align

center
100%

Where it's used

6 files

/branding/edit

packages/dashboard/src/app/(private)/(chromeless)/branding/edit/edit-branding.tsx10
packages/dashboard/src/app/(private)/(chromeless)/branding/edit/custom-element-accordion.tsx3
packages/dashboard/src/components/authentication/jwt-template/template-code-editor.tsx5
packages/dashboard/src/components/authentication/jwt-template/jwt-template-page.tsx4
packages/dashboard/src/components/authentication/jwt-template/template-code-editor.stories.tsx1
packages/dashboard/src/components/authentication/jwt-template/template-preview.tsx1