1.0.16 β€’ Published 4 months ago

shadlc v1.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

ShadLC - A Modern UI Library for React

ShadLC is a lightweight and customizable UI component library built for React with Tailwind CSS. It provides reusable and stylish components to speed up your development process while keeping your UI clean and modern.


✨ Features

  • πŸ“Œ Pre-styled & Customizable – Components are designed with Tailwind CSS and can be customized easily.
  • ⚑ Lightweight & Fast – Optimized for performance and smooth user experience.
  • πŸ— Reusable Components – Copy-paste-ready components for quick integration.
  • 🎨 Theming Support – Modify styles to match your brand identity.

πŸš€ Installation

To use ShadLC in your project, install it via npm:

npm install shadlc

or with Yarn:

yarn add shadlc

βœ… Tailwind CSS Configuration (For Tailwind 3 & 4)

Make sure you have Tailwind CSS installed in your project. If not, install it:

npm install tailwindcss postcss autoprefixer
npx tailwindcss init

Then, configure your tailwind.config.js to include the library’s styles:

Tailwind CSS v3 Configuration:

module.exports = {
  content: [
    "./node_modules/shadlc/**/*.js",
    "./src/**/*.{js,ts,jsx,tsx}"
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};

Tailwind CSS v4 Configuration:

export default {
  content: [
    "./node_modules/shadlc/**/*.js",
    "./src/**/*.{js,ts,jsx,tsx}"
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};

βœ… Import ShadLC Styles

After installing the package, import the styles in your main entry file:

import "shadlc/style.css";

βœ… To use client components

Use the use client on the top if you are using nextjs.

"use client";

πŸ“š Components Usage Template

Code Clipboard Component

Easily copy code snippets with a click of a button.

πŸ”Ή Usage

import { CodeClipboard } from "shadlc";
import "shadlc/style.css";

const codeSnippet = `const hello = "Hello, World!";`;

const App = () => {
  return (
    <div className="p-6">
      <h1 className="text-xl font-bold mb-4">Copy Code Example</h1>
      <CodeClipboard code={codeSnippet} />
    </div>
  );
};

πŸ”Ή Features

  • πŸ“‹ Click-to-copy button with a clipboard icon
  • βœ… Shows "Copied!" confirmation message
  • 🎨 Customizable styles & animations

πŸ›  Development & Contribution

If you want to contribute or customize the library:

  1. Clone the repository:

    git clone https://github.com/Taha-Asif-313/shadlc.git
    cd shadlc
  2. Install dependencies:

    npm install
  3. Build the package for production:

    npm run build

πŸ“œ License

This project is licensed under the MIT License – feel free to use and modify it as needed.


πŸ’¬ Need Help?

If you have any questions or need support, feel free to open an issue or reach out via email.

1.0.16

4 months ago

1.0.15

4 months ago

1.0.14

4 months ago

1.0.13

4 months ago

1.0.12

4 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago