You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change size without recurring to SCSS or the :deep helper
Dynamically set the size of the badge for complex scenarios.
Set a default size and overwrite it on demand (again without having to use the :deep helper)
Proposed solution
Make a size prop that accepts a number and (string with number). This number will then be applied as the height and width of the badge with the px unit.
The text was updated successfully, but these errors were encountered:
Problem to solve
:deep
helperProposed solution
Make a
size
prop that accepts a number and (string with number). This number will then be applied as the height and width of the badge with thepx
unit.The text was updated successfully, but these errors were encountered: