Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Demonstrates tab navigation using Material-UI Tabs component.
import React, { useState } from 'react';
import { Tabs, Tab, Box, Typography } from '@mui/material';
const TabsExample = () => {
const [value, setValue] = useState(0);
return (
<Box sx={{ width: '100%' }}>
<Tabs value={value} onChange={(e, val) => setValue(val)} centered>
<Tab label='Tab 1' />
<Tab label='Tab 2' />
<Tab label='Tab 3' />
</Tabs>
<Box sx={{ mt: 2 }}>
<Typography>{['Content 1','Content 2','Content 3'][value]}</Typography>
</Box>
</Box>
);
};
export default TabsExample;Material-UI (MUI) is a React-based front-end framework that implements Google's Material Design system with prebuilt, customizable components and styling solutions.
Origin & Creator
Created by Olivier Tassinari in 2014 as a React implementation of Material Design.
Industrial Note
MUI is widely used in React projects where Material Design consistency, prebuilt components, and developer productivity are prioritized.