[Docs] Provide example for 'Any other properties supplied will be spread to the root element.' #8088
Labels
docs
Improvements or additions to the documentation
good first issue
Great for first contributions. Enable to learn the contribution process.
This sentence shows up quite a bit in the docs.
I think it is worth linking this sentence, wherever it occurs, to some example (the one below may be a good candidate).
What do you think? And where should it go? Happy to PR it.
It took me around 10 minutes to figure out how to disable the ripple effect on the default menu item.
As it turns out,
MenuItem
usesListItem
with thebutton
set to true, and that button is considered theListItem
's 'root'. I had to look at the code for that.So removing the ripple effect involved:
Based on 'Any other properties supplied will be spread to the root element.', this works becaue of the root chain:
MenuItem > ListItem > Button
Which is rather genius, if you ask me.
The text was updated successfully, but these errors were encountered: