Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs][material-ui][Popover] Fix description and title of hover interaction section #43290

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 3 additions & 3 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 and the mouseover event to achieve popover behavior.
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
Loading