Skip to content

[EuiAccordion] Migrate from class to function component #9465

Closed

Description

@weronikaolejniczak

EuiAccordion is a collapsible content container with open/close toggle. Commonly used for progressive disclosure UI patterns.

  • File: components/accordion/accordion.tsx
  • Class size: 123 lines
  • State: isOpen
  • Lifecycle: None

Migration notes:

Simple — single boolean state, no lifecycle methods. The component is wrapped with withEuiTheme HOC which may also be replaceable with useEuiTheme hook.

Acceptance criteria:

  • Convert to function component with useState
  • Replace withEuiTheme HOC with useEuiTheme hook if applicable
  • Maintain controlled/uncontrolled open state behavior
  • All existing tests pass

Activity

  1. added
    help wanted
    low hanging fruit
    on Mar 12, 2026
  2. github-actions commented on Mar 12, 2026

    @github-actions

    👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.

  3. antonbc commented on Apr 4, 2026

    @antonbc
    Contributor

    I'd like to work on this issue

  4. self-assigned this
    on Sep 24, 2026
  5. angeles-mzb commented on Sep 24, 2026

    @angeles-mzb
    Contributor

    Acceptance criteria is met by @antonbc 's work on #9558.

    There were some unexpected side effects affecting Kibana which were solved on the upgrade PR.

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

Metadata

Metadata

Assignees

Labels

help wantedlow hanging fruit

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions