You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm creating a dropdown menu that contains links to share the page on social media.
If the user is on a mobile device, I want to use the Web Share API instead of the triggering the menu.
I'd prefer not to conditionally render either a button or DropdownMenuPrimative.Trigger.
Is there a prop or attribute i can leverage?
I've created a codesandbox if it's helpful: https://codesandbox.io/s/admiring-tdd-kzs7vl?file=/src/App.js
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm creating a dropdown menu that contains links to share the page on social media.
If the user is on a mobile device, I want to use the Web Share API instead of the triggering the menu.
I'd prefer not to conditionally render either a button or
DropdownMenuPrimative.Trigger
.Is there a prop or attribute i can leverage?
I've created a codesandbox if it's helpful:
https://codesandbox.io/s/admiring-tdd-kzs7vl?file=/src/App.js
Beta Was this translation helpful? Give feedback.
All reactions