Code Monkey home page Code Monkey logo

shelly-ui's Introduction

Shelly-UI

Logo Shelly UI

Shelly-UI is a lightweight and flexible component library developed by Shellret. This library is built entirely in TypeScript and leverages modern web development technologies such as Tailwind CSS, DaisyUI, and Headless UI to provide a powerful and easy-to-use solution for building user interfaces.

Installation

To install Shelly-UI in your project, run the following command:

npm install @shellrent/shelly-ui
# or
yarn add @shellrent/shelly-ui

Configuration

  1. Make shure you have installed https://tailwindcss.com/
  2. Edit the tailwind.config.js including shelly-ui files:
/** @type {import('tailwindcss').Config} */

export default {
	content: [
    // ...
		"./node_modules/shelly-ui/dist/**/*.{js,jsx,ts,tsx}"
	],
  // ...
	plugins: [require("daisyui")],
}
  1. To enable all the features of shelly wrap your application with ShellyProvider>
import React, { Suspense } from "react";
import { ShellyConfig, ShellyProvider } from '@shellrent/shelly-ui';
import Spinner from "./common/components/Spinner";
import App from "./App";

const config: ShellyConfig = {
	// ...your configuration
};

const Root: React.FC = () => {
	return <>
		<Suspense fallback={<Spinner />}>
			<ShellyProvider config={config}>
				<App/>
			</ShellyProvider>
		</Suspense >
	</>;
};

export default Root;

Usage

Import the desired components into your TypeScript application and start using them:

import { Button, Alert } from '@shellrent/shelly-ui';

// Use the components as needed
const MyComponent = () => {
  return (
    <div>
      <Button>Click me</Button>
      <Alert type="success">Operation completed successfully!</Alert>
    </div>
  );
};

shelly-ui's People

Contributors

matteomiotello avatar

Stargazers

 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.