@material-ui/core/#Tab JavaScript Examples
The following examples show how to use
@material-ui/core/#Tab.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Inventory.js From inventory-management-web with MIT License | 6 votes |
StyledTab = withStyles(theme => ({
root: {
textTransform: 'none',
color: '#000',
fontWeight: 'bold',
fontSize: theme.typography.pxToRem(24),
marginRight: theme.spacing(1),
'&:focus': {
opacity: 1,
},
},
}))(props => <Tab disableRipple {...props} />)
Example #2
Source File: Transaction.js From inventory-management-web with MIT License | 6 votes |
StyledTab = withStyles(theme => ({
root: {
textTransform: 'none',
color: '#000',
fontWeight: 'bold',
fontSize: theme.typography.pxToRem(24),
marginRight: theme.spacing(1),
'&:focus': {
opacity: 1,
},
},
}))(props => <Tab disableRipple {...props} />)
Example #3
Source File: index.jsx From product-collector with MIT License | 6 votes |
export default function DashBoard() {
const { filter, countries } = React.useContext(TrendContext);
const [value, setValue] = React.useState(0);
const handleChange = (event, newValue) => {
setValue(newValue);
};
return (
<section className={styles.dashboard}>
<Tabs
variant='fullWidth'
value={value}
indicatorColor='primary'
textColor='primary'
onChange={handleChange}
aria-label='tabs dashboard'
className={styles.tabs}
>
<Tab label='Publicados' {...a11yProps(0)} />
<Tab label='Vendidos' {...a11yProps(1)} />
<Tab label='Precio' {...a11yProps(2)} />
</Tabs>
{value === 0 && <PublishedProducts />}
{value === 1 && <SoldProducts />}
{value === 2 &&
(!!filter['country'] ? (
<PriceProducts country={countries[filter['country']]} />
) : (
countries.map((country) => {
if (country != 'Todos'){
return <PriceProducts country={country} />;
}
})
))}
</section>
);
}