src/platform/plugins/shared/esql/README.md
The editor accepts the following properties:
{esql: from index1 | limit 10})Error.
To use it on your application, you need to add the textBasedLanguages to your requiredBundles and the @kbn/esql to your tsconfig.json and use the component like that:
import { ESQLLangEditor } from '@kbn/esql/public';
<ESQLLangEditor
query={query}
onTextLangQueryChange={onTextLangQueryChange}
errors={props.textBasedLanguageModeErrors}
isDisabled={false}
onTextLangQuerySubmit={onTextLangQuerySubmit}
/>
The ESQLEditor is currently part of the unified search component. If your application uses the dataview picker then it can be enabled by adding
textBasedLanguages: ['ESQL'],
om the dataViewPickerProps property.
It is also part of the:
Follow this guide.