The Tabs
component is versatile and supports different styles and animations. Below are examples showcasing different tab types.
import Tabs from '../../components/Tabs';
const HorizontalTabs: React.FC = () => {
return (
<Tabs
tabs={[
{ label: 'Tab 1', content: <div>Content for Tab 1</div> },
{ label: 'Tab 2', content: <div>Content for Tab 2</div> },
{ label: 'Tab 3', content: <div>Content for Tab 3</div> },
]}
variant="horizontal"
/>
);
};
export default HorizontalTabs;
import Tabs from '../../components/Tabs';
const VerticalTabs: React.FC = () => {
return (
<Tabs
tabs={[
{ label: 'Tab 1', content: <div>Content for Tab 1</div> },
{ label: 'Tab 2', content: <div>Content for Tab 2</div> },
{ label: 'Tab 3', content: <div>Content for Tab 3</div> },
]}
variant="vertical"
/>
);
};
export default VerticalTabs;
import Tabs from '../../components/Tabs';
import { motion } from 'framer-motion';
const AnimatedTabs: React.FC = () => {
return (
<Tabs
tabs={[
{ label: 'Tab 1', content: <div>Content for Tab 1</div> },
{ label: 'Tab 2', content: <div>Content for Tab 2</div> },
{ label: 'Tab 3', content: <div>Content for Tab 3</div> },
]}
variant="animated"
/>
);
};
export default AnimatedTabs;