gluestack

gluestack Logogluestack

How to make Badge fit its content in width?

mr_house posted this in #support
Open in Discord
Avatar
mr_houseOP
Hey guys,

The Badge component seems to have the width of its parent, but i wanna make the width based on it's content. Sadly 'w-fit' does not seem to work and Ive been struggling to get it to work.

Any ideas how to do it?
(Picture: The badge should be around the badgeText, right now its too wide on the right side (matching the parent container)
Image

1 Reply