File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
docs/data/material/components/popover Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as React from 'react';
22import Popover from '@mui/material/Popover' ;
33import Typography from '@mui/material/Typography' ;
44
5- export default function MouseOverPopover ( ) {
5+ export default function MouseHoverPopover ( ) {
66 const [ anchorEl , setAnchorEl ] = React . useState ( null ) ;
77
88 const handlePopoverOpen = ( event ) => {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as React from 'react';
22import Popover from '@mui/material/Popover' ;
33import Typography from '@mui/material/Typography' ;
44
5- export default function MouseOverPopover ( ) {
5+ export default function MouseHoverPopover ( ) {
66 const [ anchorEl , setAnchorEl ] = React . useState < HTMLElement | null > ( null ) ;
77
88 const handlePopoverOpen = ( event : React . MouseEvent < HTMLElement > ) => {
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ the position of the popover.
3030
3131{{"demo": "AnchorPlayground.js", "hideToolbar": true}}
3232
33- ## Mouse over interaction
33+ ## Mouse hover interaction
3434
3535This demo demonstrates how to use the ` Popover ` component with ` mouseenter ` and ` mouseleave ` events to achieve popover behavior.
3636
37- {{"demo": "MouseOverPopover .js"}}
37+ {{"demo": "MouseHoverPopover .js"}}
3838
3939## Virtual element
4040
You can’t perform that action at this time.
0 commit comments