Component libraries are great but every time I use one there is always something missing. Why not be able to import the source code directly into your project and customise it as you like.
That is why I created Chills.
What is Chills
Chills is a VS Code Snippet extension that can be used to created React components that are styled with TailwindCSS directly into you project.
Installation
In VS-Code:
- Go to extensions.
Ctrl+Shift+X
- Type in
chills
- Click Install
Project Configuration
For the snippets to work you will need to have a working React based app with TailwindCSS configured. The following guides will get you setup for:
Usage
In your React or Next.JS project:
- Create your component file, lets say
LoginModal.tsx
. - Type in the prefix you want, for a LoginModal
ch-loginModalTS
. - Edit the component name. Change
LoginModalTS
to what is required. - Import your component into your application.
- Customise it as you see fit.
Feedback
I will continue to add components to this Snippet extension and would love any feedback on components I should add. Either comment here or raise an enhancement issue on Github.
Top comments (0)