Skip to content

Conversation

@Josem1801
Copy link
Contributor

Related Issue

Related to #10

Summary

Responsive badge component with:

  • variant
  • type
  • count

Details

  • Using unions to make count property required when type is "numeric"
  • Type options as unknown to pass TS checks in App.tsx (maybe ShowComponent doesn’t support unions)

Passes pnpm lint

Type-safe (pnpm check:tsc)
Integrated into showcase/App.tsx

Screenshots

Captura 1 Captura 2 Captura 3 Captura 4 Captura 5

@Brayan-724 Brayan-724 linked an issue Jun 21, 2025 that may be closed by this pull request
@Brayan-724 Brayan-724 added React Related to React.js New Component labels Jun 21, 2025
@Brayan-724 Brayan-724 merged commit 0b3d6ea into RustLangES:main Jun 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Component React Related to React.js

Projects

None yet

Development

Successfully merging this pull request may close these issues.

React - Badge

2 participants