secret-lib
v0.2.11
Published
A personal lightweight library for React, focused on filling the gaps left by other libraries.
Maintainers
Readme
🔧 Secret Lib
A personal lightweight library for React, focused on filling the gaps left by other libraries.
Pre Requirements
- TailwindCSS ~ 3.4
- React >= 18
- clsx >= 2.0
- tailwind-merge* >= 3.2
It uses the cn utility function, which relies on clsx and tailwind-merge. This pattern is common in libraries that work with TailwindCSS.
✨ Why did I build this?
- ⚙️ Useful components usually missing in other libraries
- 🧠 Ready-to-use hooks for everyday recurring problems
- 🎯 Focused on filling the gaps left by other libraries
- 💅 Fully compatible with TailwindCSS
🚀 Installation
pnpm add secret-lib tailwind-merge clsxThen, you'll need to update your tailwind.config.js
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
'./node_modules/secret-lib/**/*.{js,ts,jsx,tsx}' /** add this line */
],
darkMode: 'class',
/** Other configs */
}