@wulperstudio/cms
Version:
Wulper Studio Library Components CMS
44 lines • 1.23 kB
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import React from 'react';
import { styled, Tab, Tabs } from '@mui/material';
import { jsx as _jsx } from "react/jsx-runtime";
export var StyledTabs = styled(function (props) {
return /*#__PURE__*/_jsx(Tabs, _extends({
variant: "scrollable",
scrollButtons: false,
visibleScrollbar: true
}, props));
})({
width: '100%',
overflow: 'auto',
'& .MuiTabs-indicator': {
display: 'flex',
justifyContent: 'center',
backgroundColor: 'transparent'
}
});
export var StyledTab = styled(function (props) {
return /*#__PURE__*/_jsx(Tab, _extends({
disableRipple: true
}, props));
})(function (_ref) {
var theme = _ref.theme;
return {
textTransform: 'none',
fontWeight: theme.typography.fontWeightRegular,
fontSize: theme.typography.pxToRem(15),
marginRight: theme.spacing(1),
color: theme.palette.primary.main,
backgroundColor: theme.palette.primary.light,
borderRadius: '20px',
'&.Mui-selected': {
color: theme.palette.background["default"],
backgroundColor: theme.palette.primary.main
}
};
});
var styles = {
StyledTab: StyledTab,
StyledTabs: StyledTabs
};
export default styles;