A sleek and modern Tabs Component built with React.js, showcasing a clean design and responsive functionality. Perfect for categorizing and presenting content dynamically!
- π Reusable Tab Component with dynamic props.
- π¨ Fully customizable and styled using CSS Modules.
- β‘ Optimized for performance and SVG icons.
- π» Fully responsive and mobile-friendly.
src/
βββ assets/
β βββ icons/
β βββ news.svg
β βββ sports.svg
β βββ health.svg
βββ components/
β βββ Header/
β β βββ Header.jsx
β β βββ Header.css
β βββ Tabs/
β β βββ Tab.jsx
β β βββ TabContent.jsx
β β βββ Tab.css
βββ App.js
βββ index.js
βββ style.css
- React.js βοΈ
- CSS Modules π¨
- SVG Icons πΌοΈ
git clone https://github.com/anissafia90/Tabs.git
cd tabs-with-reactnpm installnpm startNavigate to http://localhost:3000.
- The Header component manages the state for the active tab.
- Each tab is rendered dynamically via props, including its label and SVG icon.
- The active tabβs content is displayed in the TabContent component.
Contributions are welcome! Feel free to:
- Submit issues for bugs or feature requests.
- Fork the project and create a pull request.
- GitHub Repository: [Your GitHub Repo Link](#)