Answers to common questions from the community.
tw-classed supports almost all modern browsers. It is tested on the latest versions of Chrome, Firefox, Safari, and Edge. We compile down to ES2018, which is supported by all modern browsers. If you need to support older browsers, you can use a transpiler like Babel or SWC to compile down to ES5.
tw-classed works with browsers supporting
Proxy. Polyfill these if needed.
No. You can use
@tw-classed/react is that
@tw-classed/core returns string returning functions instead of React components.
CVA is excellent, but it was not designed to be a react first library, features like automatic typescript intellisense, composability, and ref forwarding are not supported. With
tw-classed, you get all these features and more!