import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Typography from '@material-ui/core/Typography'; import Box from '@material-ui/core/Box'; interface TabPanelProps { children?: React.ReactNode; index: number; value: number; } function TabPanel(props: TabPanelProps) { const { children, value, index, ...other } = props; return ( ); } interface DemoTabsProps { labelId: string; onChange: (event: unknown, value: number) => void; selectionFollowsFocus?: boolean; value: number; } function DemoTabs(props: DemoTabsProps) { const { labelId, onChange, selectionFollowsFocus, value } = props; return ( ); } const useStyles = makeStyles({ root: { flexGrow: 1, }, }); export default function AccessibleTabs() { const classes = useStyles(); const [value, setValue] = React.useState(0); const handleChange = (event: unknown, newValue: number) => { setValue(newValue); }; return (
Tabs where selection follows focus Tabs where each tab needs to be selected manually Item One Item Two Item Three
); }