Skip to content

Adds count formatFn#16

Closed
manconeg wants to merge 1 commit intoyasaricli:masterfrom
manconeg:master
Closed

Adds count formatFn#16
manconeg wants to merge 1 commit intoyasaricli:masterfrom
manconeg:master

Conversation

@manconeg
Copy link

@manconeg manconeg commented Jan 23, 2024

This change allows a developer to provide a function which formats the count text as required by their needs. For instance:

<Counter start="1" formatFn={(count) => `${count}%`} />

will display the count like 1%.

Let me know if you have feedback or would prefer a different implementation to achieve this.

@yasaricli yasaricli self-assigned this Mar 6, 2026
@yasaricli
Copy link
Owner

This will be available in version 1.3.1. You can update and use it once published.

Thanks again for the contribution!

@yasaricli yasaricli closed this Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants