Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 755944d

Browse files
guguMatt Goo
authored and
Matt Goo
committed
docs(menu-surface): constants.ts link fixed (#852)
1 parent ab443e1 commit 755944d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/menu-surface/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import '@material/react-menu-surface/dist/menu-surface.css';
2626

2727
#### Anchored to Element
2828

29-
React Menu Surface accepts one child element. Please see the below example if you need to anchor the menu surface to a specific element. In this case, we wrapper `<button>` and `<MenuSurface>` element within the anchor, and give the `mdc-menu-surface--anchor` class to the element. You can specify a corner for the menu surface to appear from, otherwise it defaults to top-left. For a list of different anchor corner values, please see the [MDC Web Menu Surface constants.js file](https://github.com/material-components/material-components-web/blob/master/packages/mdc-menu-surface/constants.js#L74).
29+
React Menu Surface accepts one child element. Please see the below example if you need to anchor the menu surface to a specific element. In this case, we wrapper `<button>` and `<MenuSurface>` element within the anchor, and give the `mdc-menu-surface--anchor` class to the element. You can specify a corner for the menu surface to appear from, otherwise it defaults to top-left. For a list of different anchor corner values, please see the [MDC Web Menu Surface constants.ts file](https://github.com/material-components/material-components-web/blob/master/packages/mdc-menu-surface/constants.ts#L75).
3030

3131
> NOTE: `<MenuSurface>` also has an `onClose` callback method prop, which is called when the menu closes. Use this as an opportunity to update your application's state.
3232

0 commit comments

Comments
 (0)