Framer Motion like tag-extending API #28
raimondlume
started this conversation in
Ideas
Replies: 1 comment
-
Although I don't recommend adding this to all paragraphs (because it makes the width of each paragraph different, so an article with multiple paragraphs will not look good), but maybe h1~h6 makes sense? Another thing is <p {...rest}>
<Balancer>{children}</Balancer>
</p> Maybe it's an overkill? I'm not sure. Can probably be built-into another design system? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It quickly got repetitive wrapping all text-based tags with
Balancer
, so I created this quick helper utility for myself, inspired by Framer Motionsmotion
component.Screen.Recording.2023-01-12.at.16.37.36.mov
What do you think, could this interface be implemented (with all text-based tags) into the framework itself?
Beta Was this translation helpful? Give feedback.
All reactions