Package Exports
- @voluspalabs/lib/hooks/use-copy-to-clipboard
- @voluspalabs/lib/hooks/use-debounce
- @voluspalabs/lib/hooks/use-hot-key
- @voluspalabs/lib/hooks/use-local-storage
- @voluspalabs/lib/hooks/use-media-query
- @voluspalabs/lib/hooks/use-mobile
- @voluspalabs/lib/package.json
- @voluspalabs/lib/utils/cn
- @voluspalabs/lib/utils/format
- @voluspalabs/lib/utils/is-array
- @voluspalabs/lib/utils/try
Readme
@voluspalabs/lib
A collection of high-quality utility functions and React hooks for building modern web applications.
Features
- React Hooks: Collection of useful React hooks for common use cases
- Tailwind Utils: Utilities for handling Tailwind CSS class names
- TypeScript Support: Written in TypeScript for type safety and enhanced developer experience
Installation
Install the package via npm:
npm install @voluspalabs/libOr via Bun:
bun add @voluspalabs/libUsage
Import the component you need from the package. For example, to use the button component:
import { cn } from '@voluspalabs/lib';
const className = cn(
'px-4 py-2',
{ 'bg-blue-500': isPrimary },
'rounded'
);Development
To work on this project locally, follow these steps:
- Clone the repo:
git clone https://github.com/voluspalabs/lib.git - Install dependencies:
bun install
For building the package, run: bun run build
The built files will be output to the dist directory as defined in package.json.
License
This project is licensed under the MIT License. See the LICENSE file for more details.