Skip to content

Commit 68d6b27

Browse files
committed
Add menu arrow that points towards its anchor element
1 parent fc461a1 commit 68d6b27

File tree

9 files changed

+297
-136
lines changed

9 files changed

+297
-136
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@szhsin/react-menu",
3-
"version": "0.10.4",
3+
"version": "0.10.5",
44
"description": "React menu components",
55
"author": "Zheng Song",
66
"license": "MIT",

src/components/ControlledMenu.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const ControlledMenu = React.memo(function ControlledMenu({
1919
debugging,
2020
anchorPoint,
2121
anchorRef,
22+
arrow,
2223
align,
2324
direction,
2425
isOpen,
@@ -39,6 +40,7 @@ export const ControlledMenu = React.memo(function ControlledMenu({
3940
styles,
4041
anchorPoint,
4142
anchorRef,
43+
arrow,
4244
align,
4345
direction,
4446
isOpen,

src/components/Menu.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const Menu = React.memo(function Menu({
2222
animation,
2323
debugging,
2424
keepMounted,
25+
arrow,
2526
align,
2627
direction,
2728
menuButton,
@@ -97,6 +98,7 @@ export const Menu = React.memo(function Menu({
9798
className,
9899
styles,
99100
anchorRef: buttonRef,
101+
arrow,
100102
align,
101103
direction,
102104
isOpen,

0 commit comments

Comments
 (0)