Aejkatappaja
Joined 7 months ago
Karma
3
Submissions
15
Member since
Apr 8
Joined 7 months ago
Will give it a try, you won a star
For images/videos I added a load event listener that re-measures once the media loads and takes up space.
For elements that are truly dynamic with no initial size, the best workaround today is setting explicit dimensions via CSS (min-height, aspect-ratio, etc.) which is good practice for CLS anyway.
That said, something like data-shimmer-width / data-shimmer-height attributes to manually override sizing could work well for that use case.
Adding it to the backlog!
React 19 has native custom element support so <phantom-ui> works as-is, no wrapper needed.
Keeping it as a single HTML tag across all frameworks is the whole point.
https://aejkatappaja.com/