Jun 2, 2024
Not the best way to accomplish this from my perspective. Button styles are best embraced by creating button styles, and not by wrapping Button and Text into distinct components.
Those entities, in particular, offer a lot of customization in terms of internalization and formatting that's lost when hidden behind custom initializers.