Tabs
The Tabs component is a navigation element that allows users to switch between different sections of content within the same page. Tabs are typically used to organize content into categories or steps, providing a cleaner and more organized interface. Use cases for Tabs include settings pages where different configurations are grouped under separate tabs, or in content-heavy applications where different types of information (e.g., description, reviews, Q&A) are displayed in an organized manner.
TabCard
The TabCard component is a UI element that combines tabs with a card layout, allowing users to switch between different sections of content within the same interface. This component is particularly useful in scenarios where you need to present related content in a compact and organized manner, such as in user profiles, settings pages, or product details. For instance, in an e-commerce product page, TabCards could be used to display the product description, specifications, and reviews in separate tabs.
Code
import { Tabs, TabCard } from "@lumina-design/core/Tabs"; //modes: 'default' / 'contained' <Tabs mode="default"> <TabCard active={true} title={<span>TAB I</span>}> <div>TAB ONE</div> </TabCard> <TabCard title={<span>TAB II</span>}> <div>TAB one</div> </TabCard> <TabCard title={<span>TAB III</span>}> <div>TAB Two</div> </TabCard> </Tabs>