0.0.13 • Published 5 months ago
@voluspalabs/lib v0.0.13
@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/lib
Or via Bun:
bun add @voluspalabs/lib
Usage
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.