Build a tabs component that displays a list of tab elements and one associated panel of content at a time.
Requirements:
- Display a row of tabs.
- Clicking on a tab should:
- Highlight the active tab.
- Show the corresponding content panel.
- Only one panel should be visible at a time.
- The component should handle multiple tabs dynamically.