-
Hey, is it okay to open a Side Modal using a Menu item? I see from the docs Side Modal renders a Button so I used variant="reset" size="reset" and added it to my Menu. I got it working in the Prototype kit but want to make sure this is an okay approach.
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @andoyle, Menu items can trigger an action like opening a side modal without having to use a button. Here's an example: https://paste.twilio.design/components/menu#performing-actions Can you share a link to your codesandbox? Our team can look at your exact implementation. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hey @loreina :) Yeah, that's my understanding of Menu, just the Side Modal uses a Button within the Side Modal container so wasn't sure if that's cool: https://paste.twilio.design/components/side-modal#sidemodalbutton |
Beta Was this translation helpful? Give feedback.
Hey @loreina :)
Yeah, that's my understanding of Menu, just the Side Modal uses a Button within the Side Modal container so wasn't sure if that's cool: https://paste.twilio.design/components/side-modal#sidemodalbutton