score:1
assuming you're using the latest mui, it can be as simple as adding overflowy: 'scroll'
and setting a maxheight
via the grid
container's sx
prop (or its parent element). for example:
<grid
sx={{ overflowy: "scroll", maxheight: "250px" }}
container
spacing={2}
>
...
</grid>
working codesandbox: https://codesandbox.io/s/mui-5-scrollable-grid-gjxfq?file=/demo.js
Source: stackoverflow.com
Related Query
- How to implement vertical scrolling of a grid items within a grid in material ui?
- How to align items across nested Grid (React Material UI)
- How do I center a vertical divider within a Material UI (v5) Grid?
- Material UI Vertical Divider within Grid not showing
- How do I align two Grid items left and one right in Material UI when the first Grid item is a fixed width?
- How do you align a title to the left-most object within a Grid with justify="space-between" in Material UI?
- How to make border around material ui grid items only
- How can I get flex items positioned within a grid element aligned to the center
- How to Implement dynamic routing in routes.js for generated menu items in sidebar in universal react redux boilerplate by erikras
- how to make material data grid width to fill the parent component in react js
- Material UI grid with independent scrolling columns
- How do I organise 5 items evenly in a row with material-ui's grid system?
- How do I set container within React Material UI's AppBar Component?
- How to implement SSR for Material UI's media queries in NextJs?
- MUI: How to prevent Grid items from going on next row?
- How to add a new row for grid item in material ui?
- How to make a Material UI grid element sticky?
- How to add horizontal scroll in Material UI grid
- React: how to get Material UI's grid spacing to work?
- How to animate change of grid item size Material UI
- How to implement buttons inside a AG grid rows in react
- In React and Material-UI how do I make my Grid items take up 100% of available horizontal space w/o wrapping to the next row?
- How to save state of column visibility in material ui data grid
- How to Align One Item Left, and Another Right using Material UI Grid Components
- Grid Items aren't beside eachother Material UI
- How to implement horizontal scrolling of tiles in MUI GridList?
- How do I vertically align my items in a material-UI Grid row?
- How to fill React Grid Layout item with material UI Card
- How to align content differently for xs and md in material ui grid
- How to fix placeholder text within the input in material ui text field
More Query from same tag
- react.js not updating state in html on array data update
- ReactJS onClick not working on first element in menu
- React MomentJS get duration from start time and end time
- Where to put babel setting in lerna setup as it is not recognizing jsx code in shared code directory
- React Isomorphic Rendering - handle window resize event
- Calls to local host not working with ReactJS/Axios/Express
- this.context does not contain router when using react-router
- Issues trying to do 'npm install create-react-app' - why am i getting a saveError with a package.lock.json?
- cannot update this.state.mostVoted
- How to automatically create a Sentry release and upload source-maps to Sentry in a react project?
- React useState and useEffect state is behind by one step
- Change character color with regex in typescript/react
- Adding data to Array inside an object using React Hook
- Use GraphQL data in gatsby-browser?
- How to upload an array of images
- How to pass props to one React Class to Another React Class?
- Sorting array of objects in MUI cards depending on social media
- Update State within Chrome Extension React app
- How to upload file to S3 bucket with Spring backend from React front-end?
- How to fire a function that closes a Bootstrap modal using React? (I'm not using jQuery)
- React JS react-router-dom results in 404
- Slide animation for text in container infinitely
- How can I have multiple sibling instances of the same top level fragment container?
- How to pass styles via props with styled components without having to create the component inside the component
- Multiple Errors when using TypeScript + React
- React Component - set page title
- How can I pass function using props in React Router Link?
- Listen for bootstrap modal close event in reactjs
- Losing animation after creating a component
- Type 'string' is not assignable to type 'undefined'