[Grid] Difference between prop type of the size prop and the typescript definition for string values #323
Labels
component: Grid
The React component.
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Link to live example: https://github.com/ablagoev/pigment-css-grid-size-prop
Steps:
Current behavior
An error message is displayed in the error console about an invalid value used for the size prop of the Grid
Expected behavior
No errors in the dev console
Context
The js prop type does not allow strings, which are needed to support the "grow" and "auto" values, which are present in the typescript typings.
The prop type in the javascript typings is as follows (source):
while the typescript types are (source):
The error displayed in the browser console is as follows:
Your environment
npx @mui/envinfo
Search keywords: grid size prop grow auto
The text was updated successfully, but these errors were encountered: