Open heatlikeheatwave opened 2 years ago
Can you tell us a little more about the use case here? What do you need users to be able to click? Wondering if we need a UI component we don't have right now. If you have mockups those would be super appreciated - you are welcome to email them to me if you like.
hey @mjohnsonpint-stripe, thanks for getting back to me! I'll follow up in an email with mock ups :)
Hi @heathergh Let us know if you have those mocks or more information. Thanks! Sandhya
Is your feature request related to a problem? Please describe. The only components that allow a click event handler are the
<Button>
and<Link>
components. I'm trying to implement functionality similar to the details element where clicking toggles visibility of interactive content within the<Box>
because the<Box>
component allows more styling.Describe the solution you'd like Add Component, and pass the event so
onPress
event handler to theevent.stopPropagation()
can be added when the user clicks on interactive content within the component. For example, the<Box>
component contains aTextField
component when toggled 'open' that the user can type into, which would necessitateevent.stopProgation()
to not close the<Box>
.Describe alternatives you've considered Adding a link/button that toggles the visibility of hidden content with the box element
Additional context N/A