[docs][pigment-css-react] Warning: React does not recognize the alignItems
prop on a DOM element
#357
Labels
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Steps:
Stack
from@mui/material-pigment-css/Stack
alignItems="flex-end"
property to itWarning: React does not recognize the
alignItemsprop on a DOM element
message in terminalCurrent behavior
React allow setting any prop and will translate it into real DOM, thus adding non-existent
alignItems
attribute todiv
triggers this warningExpected behavior
Docs should mention this breaking change. I suppose now any styles defined as props should be migrated to
sx
prop for pigment-css to extract?Wasn't really sure where to post this issue and decided to put it at the source since
@mui/material-pigment-css/Stack
simply re-exportspigment-css/react
'sStack
Context
Migrating to MUIv6 + pigment
Your environment
npx @mui/envinfo
Search keywords: "warning", "React does not recognize the
alignItems
prop on a DOM element"The text was updated successfully, but these errors were encountered: