Skip to content

[EuiCopy] Migrate from class to function component #9466

@weronikaolejniczak

Description

@weronikaolejniczak

EuiCopy provides a render-prop pattern for copying text to clipboard with a tooltip confirmation.

  • File: components/copy/copy.tsx
  • Class size: 41 lines
  • State: tooltipText
  • Lifecycle: None

Migration notes:

Tiny component. Single state field, no lifecycle. Direct conversion.

Acceptance criteria:

  • Convert to function component with useState
  • Maintain clipboard copy and tooltip feedback behavior
  • All existing tests pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedThe EUI team is unlikely prioritize. (Don't delete - used for automation)low hanging fruitAn issue, often a bug, that is lower effort and clearly ought to be fixed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions