#Easy way on changing default mantine button's variants

4 messages · Page 1 of 1 (latest)

meager hollow
#

Is there a way to replace the variants the Button provides?

Change from

  • filled
  • light
  • outline
  • default
  • subtle
<Button variant='filled'>Button</Button>

to

  • primary
  • success
  • etc...

(or some other arbitrary values)

arctic lantern
#

You want to have completely different variants or just create aliases for the names?

meager hollow
#

Create aliases, I'd like to fine a decent and clean approach

meager hollow