tw-classed
A Stitches & Styled-Components inspired library to create reusable Tailwind based components, fully typed with polymorphic as
prop, media queries and interaction support.
Installation
npm i tw-classed
Usage
Multiple argument support
Using Variants
Using the as
prop
Coverage
Contributing
This library uses pnpm as package manager, Vitest for testing, tsc as compiler and Typescript ^4.7.0 as type checker. Please make sure to use the latest versions of these tools.
- Fork this library
- Create a new branch for your changes. Preferably
<featureName>
- Run
pnpm i
- Once you're happy with your changes, run
pnpm run test
- Make sure coverage is acceptable by running
pnpm run coverage
- Commit your changes and push them to your new branch
- Create a pull request and await review
This is still under development, and the API is subject to change. Thanks for your patience.