UNPKG

materio-mui-react-nextjs-admin-template-free

Version:

Most Powerful & Comprehensive Free MUI React NextJS Admin Dashboard Template built for developers! 🚀

68 lines (62 loc) • 2.51 kB
// ** React Imports import { useState } from 'react' // ** MUI Imports import Tab from '@mui/material/Tab' import Card from '@mui/material/Card' import TabList from '@mui/lab/TabList' import TabPanel from '@mui/lab/TabPanel' import Button from '@mui/material/Button' import TabContext from '@mui/lab/TabContext' import Typography from '@mui/material/Typography' import CardContent from '@mui/material/CardContent' const CardNavigationCenter = () => { // ** State const [value, setValue] = useState('1') const handleChange = (event, newValue) => { setValue(newValue) } return ( <Card> <TabContext value={value}> <TabList centered onChange={handleChange} aria-label='card navigation example'> <Tab value='1' label='Item One' /> <Tab value='2' label='Item Two' /> <Tab value='3' label='Item Three' /> </TabList> <CardContent sx={{ textAlign: 'center' }}> <TabPanel value='1' sx={{ p: 0 }}> <Typography variant='h6' sx={{ marginBottom: 2 }}> Header One </Typography> <Typography variant='body2' sx={{ marginBottom: 4 }}> Pudding tiramisu caramels. Gingerbread gummies danish chocolate bar toffee marzipan. Wafer wafer cake powder danish oat cake. </Typography> <Button variant='contained'>Button One</Button> </TabPanel> <TabPanel value='2' sx={{ p: 0 }}> <Typography variant='h6' sx={{ marginBottom: 2 }}> Header Two </Typography> <Typography variant='body2' sx={{ marginBottom: 4 }}> Dragée chupa chups soufflé cheesecake jelly tootsie roll cupcake marzipan. Carrot cake sweet roll gummi bears caramels jelly beans. </Typography> <Button variant='contained'>Button Two</Button> </TabPanel> <TabPanel value='3' sx={{ p: 0 }}> <Typography variant='h6' sx={{ marginBottom: 2 }}> Header Three </Typography> <Typography variant='body2' sx={{ marginBottom: 4 }}> Icing cake macaroon macaroon jelly chocolate bar. Chupa chups dessert dessert soufflé chocolate bar jujubes gummi bears lollipop. </Typography> <Button variant='contained'>Button Three</Button> </TabPanel> </CardContent> </TabContext> </Card> ) } export default CardNavigationCenter