elastic / elastic/eui

[EuiTabbedContent] Migrate from class to function component

Open
#9,463 3 comments 0 reactions 0 assignees View on GitHub
help wanted low hanging fruit
Dominant language
TypeScript
Stars
6.4k
Forks
911
Avg merge
2d 11h
Merged PRs (30d)
65

Description

`EuiTabbedContent` manages tab selection state and renders tab navigation with content panels. A commonly used container component.

- **File:** `components/tabs/tabbed_content/tabbed_content.tsx`
- **Class size:** 135 lines
- **State:** `selectedTabId`, `inFocus`
- **Lifecycle:** None

**Migration notes:**

Straightforward — state fields become `useState`, no lifecycle methods to convert. Constructor initialization maps to `useState` initial values.

**Acceptance criteria:**

- [ ] Convert to function component with `useState`
- [ ] Maintain controlled/uncontrolled tab selection behavior
- [ ] All existing tests pass

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.