Skip to content

[EuiCodeEditor & EuiCodeBlock] Recommendations and migration guidance #3807

Closed
@chandlerprall

Description

@chandlerprall

EuiCodeEditor is now deprecated and will be removed in a future version of EUI

  • If you just want to represent a more or less static code snippet (max length around 15 lines) use EuiCodeBlock.
  • If you need capabilities to edit, or want to print longer code (or potentially don't know how long, because you're printing JSON from APIs), use CodeEditor (within Kibana).
  • Don't use EuiCodeEditor for new places more, and instead favor implementing a Monaco editor like CodeEditor.

Originally posted by @timroes in elastic/kibana#71425

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationIssues or PRs that only affect documentation - will not need changelog entries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions