Proper UI

Code editor components

Free and open-source React code editor component with syntax highlighting, line numbers, indentation, bracket auto-close and diagnostics. No editor dependency; styled with Tailwind CSS.

save-bar.tsx

Tab indents. Press Escape, then Tab, to move focus out of the editor.

Installation

npx properui@latest add code-editor

Code editor examples

components.json
tsup.config.ts
  • Error, Line 5:11Cannot find name 'flase'. Did you mean 'false'?
  • Error, Line 6:21',' expected.
  • Warning, Line 7:3Source maps are published with the package.

FAQs