UNPKG

@wulperstudio/cms

Version:
43 lines 1.18 kB
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, Object.assign({ 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, Object.assign({ 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;