Frontendx
Frontendx
README.md
SOLUTION.md
main.tsxentry
App.tsx
App.css
index.html
vite.config.ts
Plugins
Installed
react@^19.2.0
react-dom@^19.2.0
Editor
Tabs
Description
Build a tabbed interface component with multiple tab buttons and corresponding content panels. Clicking a tab should display its associated content while hiding all others.
Example 1:
Click 'Tab 2' => Shows content associated with Tab 2, hides Tab 1 content
Constraints
- Only one panel visible at a time
- Active tab should be visually distinct
- Clicking same tab twice does nothing
Store activeTab index in state; render tab buttons with onClick handlers.
Preview
Terminal
Test Results
Tabs
Build a tabs component that displays a list of tab elements and one associated panel at a time.