You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
The text was updated successfully, but these errors were encountered:
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 touseFitText
is needed; like:{ ... initialFontSize: 200, // OR: initialFontSize: "full-width" }
And also while applying
text-align: center;
, the retrievedfontSize
fromuseFitText
is different from "not applying this style".The text was updated successfully, but these errors were encountered: