className doesn't work for new buttons "@atlaskit/button/new"

Hello!

The className attribute doesn’t work for the new beta buttons “@atlaskit/button/new”, or am I doing something wrong?

https://atlassian.design/components/button/examples

Kind regards,
VortexWeb Innovations

Hey @VortexWebInnovations :wave:
className attribute is removed from the new Button APIs, along with css and style props as they encourage unsafe style overrides. You can consider using the new primitive Pressable to build a custom button with Atlassian Design System styling and built-in event tracking.
Cheers, Meng

1 Like