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
Thanks for building this!
What do you think about being able to customize the returned element via something like an as prop?
I want to use this package within unordered lists to stagger the display of the list items, but wrapping the list items in the package's returned <div> creates invalid HTML.
I was thinking an as prop would be nice so you could maintain the proper markup in this situation.
Thanks for building this!
What do you think about being able to customize the returned element via something like an
as
prop?I want to use this package within unordered lists to stagger the display of the list items, but wrapping the list items in the package's returned
<div>
creates invalid HTML.I was thinking an
as
prop would be nice so you could maintain the proper markup in this situation.Example:
You then add the
as
prop to the component:Default it to
"div"
:and then you change the component's return value to:
The text was updated successfully, but these errors were encountered: