{
  "name": "code-editor",
  "componentName": "CodeEditor",
  "displayName": "CodeEditor",
  "regions": [],
  "functions": [
    {
      "name": "focus",
      "description": "Sets input focus onto the code editor control.",
      "returnType": "void",
      "parameters": []
    }
  ],
  "properties": [
    {
      "name": "ace",
      "type": "any",
      "optional": false,
      "description": "The ace object.",
      "formattedType": "any"
    },
    {
      "name": "ariaDescribedby",
      "type": "string",
      "optional": true,
      "description": "Adds `aria-describedby` to the component. If you're using this component within a form field,\ndon't set this property because the form field component automatically sets it.\n\nUse this property if the component isn't surrounded by a form field, or you want to override the value\nautomatically set by the form field (for example, if you have two components within a single form field).\n\nTo use it correctly, define an ID for each element that you want to use as a description\nand set the property to a string of each ID separated by spaces (for example, `\"id1 id2 id3\"`).",
      "formattedType": "string"
    },
    {
      "name": "ariaLabel",
      "type": "string",
      "optional": true,
      "description": "Adds `aria-label` to the code editor's textarea element.",
      "formattedType": "string"
    },
    {
      "name": "ariaLabelledby",
      "type": "string",
      "optional": true,
      "description": "Adds `aria-labelledby` to the component. If you're using this component within a form field,\ndon't set this property because the form field component automatically sets it.\n\nUse this property if the component isn't surrounded by a form field, or you want to override the value\nautomatically set by the form field (for example, if you have two components within a single form field).\n\nTo use it correctly, define an ID for the element you want to use as label and set the property to that ID.",
      "formattedType": "string"
    },
    {
      "name": "controlId",
      "type": "string",
      "optional": true,
      "description": "Specifies the ID of the native form element. You can use it to relate\na label element's `for` attribute to this control.\n\nIt defaults to an automatically generated ID that\nis provided by its parent form field component.",
      "formattedType": "string"
    },
    {
      "name": "editorContentHeight",
      "type": "number",
      "optional": true,
      "description": "Specifies the height of the code editor document.",
      "formattedType": "number"
    },
    {
      "name": "getModalRoot",
      "type": "((options: { abortSignal: AbortSignal; }) => Promise<HTMLElement>)",
      "inlineType": {
        "name": "(options: { abortSignal: AbortSignal; }) => Promise<HTMLElement>",
        "type": "function",
        "returnType": "Promise<HTMLElement>",
        "parameters": [
          {
            "name": "options",
            "type": "{ abortSignal: AbortSignal; }"
          }
        ]
      },
      "optional": true,
      "description": "Use this property to specify a different dynamic modal root for the dialog.\nThe function will be called when a user clicks on the trigger button.",
      "formattedType": " (options: {\n  abortSignal: AbortSignal\n}) => Promise<HTMLElement>"
    },
    {
      "name": "i18nStrings",
      "type": "CodeEditorProps.I18nStrings",
      "inlineType": {
        "name": "CodeEditorProps.I18nStrings",
        "type": "object",
        "properties": [
          {
            "name": "cursorPosition",
            "optional": true,
            "type": "((row: number, column: number) => string)",
            "inlineType": {
              "name": "(row: number, column: number) => string",
              "type": "function",
              "returnType": "string",
              "parameters": [
                {
                  "name": "row",
                  "type": "number"
                },
                {
                  "name": "column",
                  "type": "number"
                }
              ]
            }
          },
          {
            "name": "editorGroupAriaLabel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "errorsTab",
            "optional": true,
            "type": "string"
          },
          {
            "name": "errorState",
            "optional": true,
            "type": "string"
          },
          {
            "name": "errorStateRecovery",
            "optional": true,
            "type": "string"
          },
          {
            "name": "loadingState",
            "optional": true,
            "type": "string"
          },
          {
            "name": "paneCloseButtonAriaLabel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesButtonAriaLabel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesModalCancel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesModalCloseAriaLabel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesModalConfirm",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesModalDarkThemes",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesModalHeader",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesModalLightThemes",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesModalTheme",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesModalThemeFilteringAriaLabel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesModalThemeFilteringClearAriaLabel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesModalThemeFilteringPlaceholder",
            "optional": true,
            "type": "string"
          },
          {
            "name": "preferencesModalWrapLines",
            "optional": true,
            "type": "string"
          },
          {
            "name": "resizeHandleAriaLabel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "resizeHandleTooltipText",
            "optional": true,
            "type": "string"
          },
          {
            "name": "statusBarGroupAriaLabel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "warningsTab",
            "optional": true,
            "type": "string"
          }
        ]
      },
      "optional": true,
      "description": "An object containing all the necessary localized strings required by the component.\nThe object should contain, among others:\n\n* `loadingState` - Specifies the text to display while the component is loading.\n* `errorState` - Specifies the text to display if there is an error loading Ace.\n* `errorStateRecovery`: Specifies the text for the recovery button that's displayed next to the error text.\n   Use the `recoveryClick` event to do a recovery action (for example, retrying the request).",
      "i18nTag": true,
      "formattedType": "CodeEditorProps.I18nStrings {\n  cursorPosition?: (\n    row: number,\n    column: number\n  ) => string\n  editorGroupAriaLabel?: string\n  errorsTab?: string\n  errorState?: string\n  errorStateRecovery?: string\n  loadingState?: string\n  paneCloseButtonAriaLabel?: string\n  preferencesButtonAriaLabel?: string\n  preferencesModalCancel?: string\n  preferencesModalCloseAriaLabel?: string\n  preferencesModalConfirm?: string\n  preferencesModalDarkThemes?: string\n  preferencesModalHeader?: string\n  preferencesModalLightThemes?: string\n  preferencesModalTheme?: string\n  preferencesModalThemeFilteringAriaLabel?: string\n  preferencesModalThemeFilteringClearAriaLabel?: string\n  preferencesModalThemeFilteringPlaceholder?: string\n  preferencesModalWrapLines?: string\n  resizeHandleAriaLabel?: string\n  resizeHandleTooltipText?: string\n  statusBarGroupAriaLabel?: string\n  warningsTab?: string\n}"
    },
    {
      "name": "language",
      "type": "CodeEditorProps.Language",
      "inlineType": {
        "name": "CodeEditorProps.Language",
        "type": "union",
        "values": [
          "\"stylus\"",
          "\"d\"",
          "\"mask\"",
          "\"r\"",
          "\"html\"",
          "\"ruby\"",
          "\"svg\"",
          "\"text\"",
          "\"json\"",
          "\"red\"",
          "\"space\"",
          "\"dot\"",
          "\"properties\"",
          "\"abc\"",
          "\"actionscript\"",
          "\"c_cpp\"",
          "\"clojure\"",
          "\"coffee\"",
          "\"csound_document\"",
          "\"csound_orchestra\"",
          "\"css\"",
          "\"dart\"",
          "\"diff\"",
          "\"django\"",
          "\"drools\"",
          "\"edifact\"",
          "\"erlang\"",
          "\"fsl\"",
          "\"gobstones\"",
          "\"graphqlschema\"",
          "\"haml\"",
          "\"haskell\"",
          "\"io\"",
          "\"java\"",
          "\"javascript\"",
          "\"jsp\"",
          "\"liquid\"",
          "\"lsl\"",
          "\"lua\"",
          "\"makefile\"",
          "\"markdown\"",
          "\"maze\"",
          "\"perl\"",
          "\"php\"",
          "\"python\"",
          "\"razor\"",
          "\"rst\"",
          "\"sh\"",
          "\"snippets\"",
          "\"sql\"",
          "\"sqlserver\"",
          "\"tcl\"",
          "\"tex\"",
          "\"textile\"",
          "\"velocity\"",
          "\"wollok\"",
          "\"slim\"",
          "\"abap\"",
          "\"ada\"",
          "\"alda\"",
          "\"apache_conf\"",
          "\"apex\"",
          "\"aql\"",
          "\"asciidoc\"",
          "\"asl\"",
          "\"assembly_x86\"",
          "\"autohotkey\"",
          "\"batchfile\"",
          "\"c9search\"",
          "\"cirru\"",
          "\"cobol\"",
          "\"coldfusion\"",
          "\"crystal\"",
          "\"csharp\"",
          "\"csound_score\"",
          "\"curly\"",
          "\"dockerfile\"",
          "\"eiffel\"",
          "\"ejs\"",
          "\"elixir\"",
          "\"elm\"",
          "\"forth\"",
          "\"fortran\"",
          "\"fsharp\"",
          "\"ftl\"",
          "\"gcode\"",
          "\"gherkin\"",
          "\"gitignore\"",
          "\"glsl\"",
          "\"golang\"",
          "\"groovy\"",
          "\"handlebars\"",
          "\"haskell_cabal\"",
          "\"haxe\"",
          "\"hjson\"",
          "\"html_elixir\"",
          "\"html_ruby\"",
          "\"ini\"",
          "\"jack\"",
          "\"jade\"",
          "\"json5\"",
          "\"jsoniq\"",
          "\"jssm\"",
          "\"jsx\"",
          "\"julia\"",
          "\"kotlin\"",
          "\"latex\"",
          "\"less\"",
          "\"lisp\"",
          "\"livescript\"",
          "\"logiql\"",
          "\"luapage\"",
          "\"lucene\"",
          "\"matlab\"",
          "\"mediawiki\"",
          "\"mel\"",
          "\"mixal\"",
          "\"mushcode\"",
          "\"mysql\"",
          "\"nginx\"",
          "\"nim\"",
          "\"nix\"",
          "\"nsis\"",
          "\"nunjucks\"",
          "\"objectivec\"",
          "\"ocaml\"",
          "\"pascal\"",
          "\"perl6\"",
          "\"pgsql\"",
          "\"php_laravel_blade\"",
          "\"pig\"",
          "\"powershell\"",
          "\"praat\"",
          "\"prisma\"",
          "\"prolog\"",
          "\"protobuf\"",
          "\"puppet\"",
          "\"qml\"",
          "\"rdoc\"",
          "\"rhtml\"",
          "\"rust\"",
          "\"sass\"",
          "\"scad\"",
          "\"scala\"",
          "\"scheme\"",
          "\"scss\"",
          "\"sjs\"",
          "\"smarty\"",
          "\"soy_template\"",
          "\"swift\"",
          "\"terraform\"",
          "\"toml\"",
          "\"tsx\"",
          "\"twig\"",
          "\"typescript\"",
          "\"vala\"",
          "\"vbscript\"",
          "\"verilog\"",
          "\"vhdl\"",
          "\"visualforce\"",
          "\"xml\"",
          "\"xquery\"",
          "\"yaml\"",
          "\"zeek\"",
          "string & { _?: undefined; }"
        ]
      },
      "optional": false,
      "description": "Specifies the programming language. You can use any of the programming languages supported by the `ace` object that you provide.\nAlternatively, this can be used to set a language that is not supported by the default `language` list. Make sure you've added the highlighting support for this language to the Ace instance.\nFor more info on custom languages, see the [Code editor API](/components/code-editor?tabId=api) page.",
      "formattedType": "CodeEditorProps.Language"
    },
    {
      "name": "languageLabel",
      "type": "string",
      "optional": true,
      "description": "Specifies a custom label language. If set, it overrides the default language label.",
      "formattedType": "string"
    },
    {
      "name": "loading",
      "type": "boolean",
      "optional": true,
      "description": "Renders the code editor in a loading state.",
      "formattedType": "boolean"
    },
    {
      "name": "preferences",
      "type": "Partial<CodeEditorProps.Preferences>",
      "inlineType": {
        "name": "Partial<CodeEditorProps.Preferences>",
        "type": "object",
        "properties": [
          {
            "name": "theme",
            "optional": false,
            "type": "string",
            "inlineType": {
              "name": "CodeEditorProps.Theme",
              "type": "union",
              "values": [
                "terminal",
                "sqlserver",
                "chrome",
                "clouds",
                "crimson_editor",
                "dawn",
                "dreamweaver",
                "eclipse",
                "github",
                "iplastic",
                "solarized_light",
                "textmate",
                "tomorrow",
                "xcode",
                "kuroir",
                "katzenmilch",
                "cloud_editor",
                "ambiance",
                "chaos",
                "clouds_midnight",
                "dracula",
                "cobalt",
                "gruvbox",
                "gob",
                "idle_fingers",
                "kr_theme",
                "merbivore",
                "merbivore_soft",
                "mono_industrial",
                "monokai",
                "nord_dark",
                "pastel_on_dark",
                "solarized_dark",
                "tomorrow_night",
                "tomorrow_night_blue",
                "tomorrow_night_bright",
                "tomorrow_night_eighties",
                "twilight",
                "vibrant_ink",
                "cloud_editor_dark"
              ]
            }
          },
          {
            "name": "wrapLines",
            "optional": false,
            "type": "boolean"
          }
        ]
      },
      "optional": true,
      "description": "Specifies the component preferences.\n\nIf set to `undefined`, the component uses the following default value:\n\n```\n{\n  wrapLines: true,\n  theme: 'dawn'\n}\n```\n\nYou can use any theme provided by Ace.",
      "formattedType": "Partial<CodeEditorProps.Preferences> {\n  theme: string\n  wrapLines: boolean\n}"
    },
    {
      "name": "removeModalRoot",
      "type": "((container: HTMLElement | null) => void)",
      "inlineType": {
        "name": "(container: HTMLElement | null) => void",
        "type": "function",
        "returnType": "void",
        "parameters": [
          {
            "name": "container",
            "type": "HTMLElement | null"
          }
        ]
      },
      "optional": true,
      "description": "Use this property when `getModalRoot` is used to clean up the modal root\nelement after a user closes the dialog. The function receives the return value\nof the most recent getModalRoot call as an argument.",
      "formattedType": " (container: HTMLElement | null) => void"
    },
    {
      "name": "themes",
      "type": "CodeEditorProps.AvailableThemes",
      "inlineType": {
        "name": "CodeEditorProps.AvailableThemes",
        "type": "object",
        "properties": [
          {
            "name": "dark",
            "optional": false,
            "type": "ReadonlyArray<string>"
          },
          {
            "name": "light",
            "optional": false,
            "type": "ReadonlyArray<string>"
          }
        ]
      },
      "optional": true,
      "description": "List of Ace themes available for selection in preferences dialog. Make sure you include at least one light and at\nleast one dark theme. If not set explicitly, it will render all Ace themes available for selection, except\n\"cloud_editor\" and \"cloud_editor_dark\".",
      "formattedType": "CodeEditorProps.AvailableThemes {\n  dark: ReadonlyArray<string>\n  light: ReadonlyArray<string>\n}"
    },
    {
      "name": "value",
      "type": "string",
      "optional": false,
      "description": "Specifies the content that's displayed in the code editor.",
      "formattedType": "string"
    }
  ],
  "events": [
    {
      "name": "onChange",
      "description": "An event handler called when the value changes.\nThe event `detail` contains the current value of the code editor content.\n**Deprecated** Replaced by `onDelayedChange`.",
      "cancelable": false,
      "detailType": "CodeEditorProps.ChangeDetail",
      "detailInlineType": {
        "name": "CodeEditorProps.ChangeDetail",
        "type": "object",
        "properties": [
          {
            "name": "value",
            "optional": false,
            "type": "string"
          }
        ]
      },
      "formattedDetailType": "CodeEditorProps.ChangeDetail {\n  value: string\n}"
    },
    {
      "name": "onDelayedChange",
      "description": "An event handler called when the value changes.\nThe event `detail` contains the current value of the code editor content.\nA user interaction can cause multiple change events to be emitted by the Ace editor. They are batched together into a single `onDelayedChange` event to avoid bugs when controlling the `value` field.",
      "cancelable": false,
      "detailType": "CodeEditorProps.ChangeDetail",
      "detailInlineType": {
        "name": "CodeEditorProps.ChangeDetail",
        "type": "object",
        "properties": [
          {
            "name": "value",
            "optional": false,
            "type": "string"
          }
        ]
      },
      "formattedDetailType": "CodeEditorProps.ChangeDetail {\n  value: string\n}"
    },
    {
      "name": "onEditorContentResize",
      "description": "Called when the user resizes the editor by dragging the resize icon.\nThe event `detail` contains the new height of the editor in pixels.",
      "cancelable": false,
      "detailType": "CodeEditorProps.ResizeDetail",
      "detailInlineType": {
        "name": "CodeEditorProps.ResizeDetail",
        "type": "object",
        "properties": [
          {
            "name": "height",
            "optional": false,
            "type": "number"
          }
        ]
      },
      "formattedDetailType": "CodeEditorProps.ResizeDetail {\n  height: number\n}"
    },
    {
      "name": "onPreferencesChange",
      "description": "Called when any of the preferences change.\nThe event `detail` contains the value of all the preferences as submitted by the user.",
      "cancelable": false,
      "detailType": "CodeEditorProps.Preferences",
      "detailInlineType": {
        "name": "CodeEditorProps.Preferences",
        "type": "object",
        "properties": [
          {
            "name": "theme",
            "optional": false,
            "type": "string",
            "inlineType": {
              "name": "CodeEditorProps.Theme",
              "type": "union",
              "values": [
                "terminal",
                "sqlserver",
                "chrome",
                "clouds",
                "crimson_editor",
                "dawn",
                "dreamweaver",
                "eclipse",
                "github",
                "iplastic",
                "solarized_light",
                "textmate",
                "tomorrow",
                "xcode",
                "kuroir",
                "katzenmilch",
                "cloud_editor",
                "ambiance",
                "chaos",
                "clouds_midnight",
                "dracula",
                "cobalt",
                "gruvbox",
                "gob",
                "idle_fingers",
                "kr_theme",
                "merbivore",
                "merbivore_soft",
                "mono_industrial",
                "monokai",
                "nord_dark",
                "pastel_on_dark",
                "solarized_dark",
                "tomorrow_night",
                "tomorrow_night_blue",
                "tomorrow_night_bright",
                "tomorrow_night_eighties",
                "twilight",
                "vibrant_ink",
                "cloud_editor_dark"
              ]
            }
          },
          {
            "name": "wrapLines",
            "optional": false,
            "type": "boolean"
          }
        ]
      },
      "formattedDetailType": "CodeEditorProps.Preferences {\n  theme: string\n  wrapLines: boolean\n}"
    },
    {
      "name": "onRecoveryClick",
      "description": "Called when the user clicks the recovery button in the error state.\nUse this to retry loading the code editor or to provide another option for the user to recover from the error.",
      "cancelable": false
    },
    {
      "name": "onValidate",
      "description": "Annotations returned from Ace syntax checker after code validation.",
      "cancelable": false,
      "detailType": "CodeEditorProps.ValidateDetail",
      "detailInlineType": {
        "name": "CodeEditorProps.ValidateDetail",
        "type": "object",
        "properties": [
          {
            "name": "annotations",
            "optional": false,
            "type": "Array<Ace.Annotation>"
          }
        ]
      },
      "formattedDetailType": "CodeEditorProps.ValidateDetail {\n  annotations: Array<Ace.Annotation>\n}"
    }
  ],
  "path": "/components/code-editor"
}