Skip to content
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

improve: allow adding class names to words #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

uson1x
Copy link

@uson1x uson1x commented Jul 9, 2024

This PR adds new prop wordClassNames, which allows to define custom class name(s) for each word separately.

I believe this can greatly improve the ability to customize word presentation at call-site.
In our project we use it to add shadows and outline per-word (e. g. allows you to have a 'selected word' presented differently)

@uson1x uson1x marked this pull request as draft July 9, 2024 05:39
This commit adds new prop `wordClassNames`, which allows to define
custom class name(s) for each word separately. This expands the ability
to customize words presentation at call-site.
@uson1x uson1x force-pushed the add-class-names branch from 76bd94b to 999e859 Compare July 9, 2024 05:41
@uson1x uson1x marked this pull request as ready for review July 9, 2024 05:49
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.

1 participant