Hello everyone π
Iβm really happy to finally share my first NPM package: taglite π
This package started from a simple need in one of my projects.
I needed a Tag Input component, so I tried several different libraries. Each one had its own limitations. Some were missing features I needed, while others werenβt flexible enough to customize the way I wanted.
So I decided to build my own.
As I kept using it, I gradually added more features and improvements. Eventually, I thought, why not turn it into an independent package and share it with others?
And thatβs how taglite was born. π
What is taglite?
taglite is a lightweight Tag Input component for React.
My goal was to keep the API simple while still providing the features commonly needed in real-world projects.
β¨ Features
π Zero runtime dependencies
π· Full TypeScript support
β¨οΈ Add tags with Enter and define custom keys such as Tab
π Copy & Paste support for creating multiple tags
π§Ή Normalize and Validate tags
π« Prevent duplicate tags
π’ Limit the number of tags
π¬ Custom placeholder and hintText
π Read-only and Disabled modes
π¨ Built-in themes such as Dark, Light, Dracula, and more
π§© Support for custom icons
π Callbacks for adding and removing tags
βοΈ Support for Native HTML Input Attributes
Iβm also working on a new feature that allows you to customize the componentβs color and appearance using a color passed through a prop. Iβm planning to release it in the next few days. π
This was my first experience building and publishing an NPM package, and honestly, the process itself was one of the most interesting parts for me.
From structuring the package and designing the API to testing, building, writing the documentation, and finally publishing it, there was a lot to learn.
This is currently the first version, and Iβm still working on improving it. Iβll probably add more features in future versions based on new needs and feedback.
Iβd really appreciate it if you gave it a try and shared your feedback. β€οΈ
Top comments (1)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.