[material-ui][docs] Confusion about custom component in Grid demos #40556
Labels
component: Paper
This is the name of the generic UI component, not the React module!
support: docs-feedback
Feedback from documentation page
support: question
Community support but can be turned into an improvement
Related page
https://mui.com/material-ui/react-grid/
Kind of issue
[Added by Sam: When looking at the Grid demos that use the
styled()
utility to define custom components, it's not immediately clear that those are not actually built-in Material UI components.]Issue description
Your page is for Paper, but the demo code is for Box and Item. Item does not seem to work in Vite or is Item deprecated?
With
I get the following error message:
The requested module '/node_modules/.vite/deps/@mui_material.js?v=b5e471c3' does not provide an export named 'Item'
Not import Item doesn't work either.
Context
I am trying to create a series of boxes in a grid for a calendar as an assignment, but Item does not work. Trying out Paper instead but them page does not explain how to increase the height of each Paper.
Search keywords: Item
The text was updated successfully, but these errors were encountered: