Skip to content

Commit

Permalink
update demo name and section title
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Aug 14, 2024
1 parent 960992a commit 558357d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import Popover from '@mui/material/Popover';
import Typography from '@mui/material/Typography';

export default function MouseOverPopover() {
export default function MouseHoverPopover() {
const [anchorEl, setAnchorEl] = React.useState(null);

const handlePopoverOpen = (event) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import Popover from '@mui/material/Popover';
import Typography from '@mui/material/Typography';

export default function MouseOverPopover() {
export default function MouseHoverPopover() {
const [anchorEl, setAnchorEl] = React.useState<HTMLElement | null>(null);

const handlePopoverOpen = (event: React.MouseEvent<HTMLElement>) => {
Expand Down
4 changes: 2 additions & 2 deletions docs/data/material/components/popover/popover.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ the position of the popover.

{{"demo": "AnchorPlayground.js", "hideToolbar": true}}

## Mouse over interaction
## Mouse hover interaction

This demo demonstrates how to use the `Popover` component with `mouseenter` and `mouseleave` events to achieve popover behavior.

{{"demo": "MouseOverPopover.js"}}
{{"demo": "MouseHoverPopover.js"}}

## Virtual element

Expand Down

0 comments on commit 558357d

Please sign in to comment.