ben-rogerson / twin.macro

๐Ÿฆนโ€โ™‚๏ธ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
MIT License
7.89k stars 184 forks source link

Add 'as' prop to types #846

Closed klzns closed 7 months ago

klzns commented 7 months ago

Add missing type for prop as.

This removes the need for the workaround proposed here:

Also, it works better because the as prop is only available for styled components.

ben-rogerson commented 7 months ago

Thanks heaps for adding this PR - i'll include it within the next update.

klzns commented 7 months ago

@ben-rogerson not rushing or anything, but when do you plan to do the next update?

Thanks for your work! I'm a huge fan!

ben-rogerson commented 7 months ago

Next version is now published - thanks again for adding the missing type. And great to hear you're enjoying twin ๐ŸŽ‰