Skip to content

[EuiCodeEditor & EuiCodeBlock] Recommendations and migration guidance #3807

Closed

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

Activity

  1. added
    documentation
    on Jul 27, 2020
  2. changed the title [-]Update EuiCodeEditor & EuiCodeBlock documentation with some more recommendations/guidance[/-] [+][EuiCodeEditor & EuiCodeBlock] Update documentation with some more recommendations/guidance[/+] on Sep 20, 2020
  3. changed the title [-][EuiCodeEditor & EuiCodeBlock] Update documentation with some more recommendations/guidance[/-] [+][EuiCodeEditor & EuiCodeBlock] Recommendations and migration guidance[/+] on Jul 27, 2021
  4. thompsongl commented on Nov 15, 2021

    @thompsongl
    Contributor

    #5323 removed EuiCodeEditor and the docs have recommendations in place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions