Skip to content

[Feature Request] Dynamically set size of badge #20837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tauromachian opened this issue Jan 5, 2025 · 1 comment · May be fixed by #21509
Open

[Feature Request] Dynamically set size of badge #20837

Tauromachian opened this issue Jan 5, 2025 · 1 comment · May be fixed by #21509
Assignees
Labels

Comments

@Tauromachian
Copy link
Contributor

Problem to solve

  • 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.

@jcjp
Copy link
Contributor

jcjp commented May 31, 2025

Added a new props width and height to resize the VBadge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants