import * as React from 'react'; import PropTypes from 'prop-types'; import { Global } from '@emotion/react'; import { styled } from '@mui/material/styles'; import CssBaseline from '@mui/material/CssBaseline'; import { grey } from '@mui/material/colors'; import Button from '@mui/material/Button'; import Box from '@mui/material/Box'; import Skeleton from '@mui/material/Skeleton'; import Typography from '@mui/material/Typography'; import SwipeableDrawer from '@mui/material/SwipeableDrawer'; const drawerBleeding = 56; const Root = styled('div')(({ theme }) => ({ height: '100%', backgroundColor: grey[100], ...theme.applyStyles('dark', { backgroundColor: (theme.vars || theme).palette.background.default, }), })); const StyledBox = styled('div')(({ theme }) => ({ backgroundColor: '#fff', ...theme.applyStyles('dark', { backgroundColor: grey[800], }), })); const Puller = styled('div')(({ theme }) => ({ width: 30, height: 6, backgroundColor: grey[300], borderRadius: 3, position: 'absolute', top: 8, left: 'calc(50% - 15px)', ...theme.applyStyles('dark', { backgroundColor: grey[900], }), })); function SwipeableEdgeDrawer(props) { const { window } = props; const [open, setOpen] = React.useState(false); const toggleDrawer = (newOpen) => () => { setOpen(newOpen); }; // This is used only for the example const container = window !== undefined ? () => window().document.body : undefined; return ( .MuiPaper-root': { height: `calc(50% - ${drawerBleeding}px)`, overflow: 'visible', }, }} /> 51 results ); } SwipeableEdgeDrawer.propTypes = { /** * Injected by the documentation to work in an iframe. * You won't need it on your project. */ window: PropTypes.func, }; export default SwipeableEdgeDrawer;