Repository navigation
Dismissible CloseTrigger components should also support value prop like Trigger components #3237
Closed
elson-currentcorp
started this conversation in
Ideas
Replies: 2 comments
|
Interesting idea. Let me think about this more. |
0 replies
|
Thanks for the idea! Trigger In v2, <button {...api.getCloseTriggerProps()}>Close</button>
<button onClick={() => api.setOpen(false)}>Cancel</button>Closing this one. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
For example, the Dialog component supports multiple trigger elements by passing in a
valueprop togetTriggerProps. I believe that thegetCloseTriggerPropsmethod should also behave the same way by supporting avalueprop so that there can be multiple close triggers within one dismissible.All reactions