Esc
Documentation
On this page

Props

PropTypeDefaultDescription
language requiredstringNoneSyntax language
value requiredstringNoneCurrent content
onChange(value: string) => voidNoneEdit callback

Example

ts
CodeEditor({ language: "sql", value: query, onChange: setQuery })

View the source on GitHub