-
-
Couldn't load subscription status.
- Fork 32.7k
Description
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/backdrop-slotprops-hyhvct?file=%2Fsrc%2FDemo.tsx
Steps:
- Try to set backdrop in slotProps for Menu or Popover components
Current behavior
Hello 👋
I think this is similar to #38949, but I am unable to set the backdrop slot on the Menu or Popover components - maybe I am misunderstanding, but the BackdropProps prop is deprecated and says to use slotProps.backdrop, but it doesn't seem to work.
Expected behavior
I expected to be able to modify the backdrop props on Menu and Popover components like this:
slotProps={{ backdrop: { style: { backgroundColor: "#fad" } } }}
Context
I'm trying to change the props on the backdrop for Menu and Popover
Your environment
See code sandbox: https://codesandbox.io/p/sandbox/backdrop-slotprops-hyhvct?file=%2Fsrc%2FDemo.tsx
Search keywords: backdrop slot