onClick event listener in UI Kit - Button only?

Hi,

Is Button the only component in UI Kit that accept onClick event listener? I’m trying out some ideas to build a simple UI and looked thru the components here: https://developer.atlassian.com/platform/forge/ui-kit/components/

Just wanted to confirm in case I missed something. Thanks.

Regards,
Michael

Hi @michaelwan,

Yes, I believe the button component is the only one with an onClick event.

Was there something in particular you were looking for?

Cheers
Mel

hi @mpaisley,

Thanks for your reply. I’m going to build a re-useable typeahead component, Button should work, I was just wondering if there are other components that I should be looking into. I will post back here the component for review/feedback soon.

Regards,
Michael

We’re looking to create an icon only button that has little to no padding.
With the current implementation of Button there seems to be inner padding in the button that prevents us to achieve this.

Could you advise on a workaround @mpaisley ?

Best regards