0

What would be the best approach to render a Dropdown Button using Mantine components?

Drop down Button

I'm thinking of sticking 2 Buttons next to each other with the second one wrapped with a Menu, but not only it wouldn't look good with rounded corners, and I'm also not 100% sure how to align the menu with the full width of both buttons.

Plan B could be to hack a Select to look and act like a button but this also seems like it will have drawbacks.

Any other idea to achieve this?

Johann
  • 12,158
  • 11
  • 62
  • 89
  • 1
    Have you seen the component library for mantine, think the last button here look kind of similar https://ui.mantine.dev/category/buttons – Disco Nov 20 '22 at 16:49
  • @Disco No I didn't and that's spot on. Thanks for that! If you want to make this an answer I'll accept it – Johann Nov 21 '22 at 22:46

1 Answers1

1

Have you seen the component library for mantine, think the last button here look kind of similar https://ui.mantine.dev/category/buttons

Disco
  • 1,304
  • 1
  • 6
  • 12