Allow PopupActionItems to be links
ntatko opened this issue · 1 comments
ntatko commented
I have a use case where I want a popup action group where it's just a bunch of links. I realize I could make a func that goes and makes a virtual button that gets clicked, but I think a more elegant solution would be to allow a <PopupActionItem />
which includes link props:
<PopupActionItem href="https://ol-kit.com" target="_blank" onClick={() => setModalState(false)} />
☝️ This would be a link, and would use a styled component styled.a
rather than a styled.span
as we do now
Regular PopupActionItems
would be unchanged,
<PopupActionItem onClick{() => setModalState(false)} />
would be treated as a button, not a link.
ntatko commented
Also, when this ships, I'd love for it to be shipped as a 0.x.x
, so I can use it within Bayer 😄