bring-shrubbery / squircle-js

A squircle element for your favourite frontend framework!
https://squircle.js.org
MIT License
117 stars 7 forks source link

asChild does not detect changed size #15

Open subproject22 opened 2 months ago

subproject22 commented 2 months ago

My inner components could change the size, but Squircle still clipping content. Found in docs "You can use asChild prop to squircle any element. This is useful when you want to squircle some element that might change size.", but this actually does not work as I expect, the clip-path stays the same even when nested div changes it's actual size.

Is there any way to make it rerender?