-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add options on the SplitTextWrapper
component
#148
Comments
From what I understood, the last time I checked this, is that GSAP / SplitText doesn't support anything but Do you have an example that shows that you can change it? And if so, I presume it only works for certain modes (e.g. never in line mode, maybe only in word/char mode where it doesn't wrap over multiple lines?) |
I'm not talking about the tags that SplitText itself renders, you can already change that with the But I'm talking about the |
…he-splittextwrapper-component #148 Make SplitTextWrapper polymorphic and add option to provide any …
There are some options I think would make this component more useable.
className
as a prop to the rendered elementtag
prop for what element is rendered (default adiv
, butspan
would fix hydration issues I believeAnd this is perhaps a typing issue, but SplitText has an
elements
field, but it's not in the typing. Now it's impossible to reach the rendered wrapper element in code. How could we achieve this?The text was updated successfully, but these errors were encountered: