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

Fill the whole width initially & 'text-align: center;' problem #33

Open
alivtar opened this issue Dec 13, 2022 · 0 comments
Open

Fill the whole width initially & 'text-align: center;' problem #33

alivtar opened this issue Dec 13, 2022 · 0 comments

Comments

@alivtar
Copy link

alivtar commented Dec 13, 2022

Hi, Thanks for the package.

Is there a way to tell useFitText to fill the whole width initially?
I mean the fontSize should be determined based on parent width initially but it is always at 100%; (needed for large parent element width)
maybe a field in the options object passed to useFitText is needed; like:
{ ... initialFontSize: 200, // OR: initialFontSize: "full-width" }

And also while applying text-align: center;, the retrieved fontSize from useFitText is different from "not applying this style".

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

No branches or pull requests

1 participant