Lucas Castro

Results 7 comments of Lucas Castro

Right now, I feel that `defaultVariants` is dangerous to use in composition, so I've created this API for my component lib's components: ```TSX // Define your component normally function Button(props:...

It looks like this is happening at the intersection of an intentional feature (reusing of classes for identical styles), and a bug (composition of styled components causing conflicts). I'd still...

> I'm on react 18 and after days of working with spectrum I just found out I cannot use it because it uses some deprecated context api Do you have...

Okay, thanks @ivanjeremic. Sounds like it's the same issues and workarounds we see here, unless for some reason you CANNOT disable strict mode.

I have no idea, I'm not part of the project team. But I agree that hopefully this will still be addressed at some point.

> type MyBoxProps = { > // --- how do I get the `as` prop type here? --- // > } Based on what I can see in the code,...

Another solution is to make sure node has a `self` property, via: https://www.npmjs.com/package/node-self.