[EuiTabbedContent] Migrate from class to function component
Open
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
Assessment
This issue has not been assessed yet.