Giter VIP home page Giter VIP logo

plug-n-play-ui-kit's Introduction

Plug-N-Play-Ui-Kit

npm version

Plug-N-Play-Ui-Kit is a design system built with Storybook, Vite, React, TypeScript, and styled-components. It provides a powerful and customizable UI kit for your web applications.

Getting Started

To get started with Plug-N-Play-Ui-Kit, follow these steps:

1. Installation

You can install the library using npm:

npm install plug-n-play-ui-kit

2. Usage

Theming:

To avoid theming issues on components, make sure to wrap your entire application with the PlugNPlayContainer component at the root element level. This will provide the correct theme to all components within your app.

Example:

import React from 'react';
import { PlugNPlayContainer, darkTheme } from 'plug-n-play-ui-kit';
import App from './App'; // Replace with your root component
import './index.css';

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <PlugNPlayContainer theme={darkTheme}>
      <App />
    </PlugNPlayContainer>
  </React.StrictMode>
);

TypeScript Configuration:

To ensure TypeScript can correctly find the declaration files for Plug-N-Play-Ui-Kit, add the following paths to your tsconfig.json:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "plug-n-play-ui-kit": ["./node_modules/plug-n-play-ui-kit/dist/index.d.ts"]
    }
  }
}

Troubleshooting

If you encounter issues like "Could not find a declaration file for module 'plug-n-play-ui-kit,'" make sure to follow the above instructions carefully. If the issue persists, consider the following:

  • Ensure Vite or your build tool correctly handles TypeScript declaration files and module resolution.
  • Make sure you're using the latest version of Plug-N-Play-Ui-Kit.
  • If you need any assistance kindly create an issue in Git Issues

License

This project is licensed under the MIT License.


This README provides clear instructions and guidance for users and potential contributors. Make sure to include the actual code examples and create the corresponding files (like `CONTRIBUTING.md` and `LICENSE`) in your repository to support these sections. This can help attract more users and contributors to your project.

plug-n-play-ui-kit's People

Contributors

srinivasthedeveloper avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.