you can rename the button function in core_components.ex to button_core or whatever you like
and the <.button will render the petal component button as you like.
I thought about that. But if I use phx.new.live, I think it will generate code using core_component function components. If that is correct, renaming core component functions probably isn’t ideal.
Did you end up finding a solution that you were happy with? I’m looking at Primer, and Petal, and renaming the default core_componenets doesn’t excite me either.
I see 2 workarounds;
A) you only import the petal components you need, or leave out modal, button and table (those are the ones that have the same name in core_components). Then you could style them in core_components. The instructions for this are on this page.
B) you rename modal, button and table in core_components, and customize phx_gen_live and other generators to use the changed component names, so you can keep using the generators.