Coder Social home page Coder Social logo

kocierik / dropify Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.06 MB

Dropify - A simple library with some useful component

Home Page: https://www.npmjs.com/package/@kocierik/dropify

License: MIT License

HTML 3.49% TypeScript 82.13% JavaScript 13.78% CSS 0.59%
component-library components hooks react styled-components

dropify's Introduction


useWorker

GitHub GitHub TypeScript Support


๐ŸŽจ Features

  • Run asynchronous function
  • Supports Promises
  • Typescript support

๐Ÿ’พ Install

  • @latest
npm install --save @kocierik/dropify

๐Ÿ”จ Import

import { DropDown, Setting } from "@kocierik/dropify";

๐Ÿ“™ Documents


๐Ÿพ Usage DropDown

import { DropDown } from '@kocierik/dropify';

const App = () => {
  const list = ['a', 'b', 'c', 'd']
  const [filter, setFilter] = React.useState([])
  return (
    <div className='flex flex-1 p-5'>
      <div>
        <DropDown label={'label'} list={list} filter={filter} setFilter={setFilter} />
      </div>
      <div className='p-5 flex-row flex'>
        {filter.map((item, index) => {
          return <div key={index} className='p-5'>{item}</div>;
        })
        }
      </div>
    </div>
  );
};

๐Ÿพ Usage Setting

import { Setting } from '@kocierik/dropify';

const App = () => {
  const setting: Isetting[] = [{
    label: 'helper',
    handler: () => {
      alert('help!')
    }
  }, {
    label: 'Click me',
    handler: () => {
      alert('clicked!')
    }
  }
  ]
  return (
    <div className='flex flex-1 p-5'>
      <Setting settings={setting} />
    </div>
  );
};

๐Ÿ–ผ Live Demo

dropdown demo setting demo

๐Ÿ”ง Roadmap

  • [] Add more components
  • [] Add more style
  • [] Add animation

๐ŸŒ Contribute? Bug? New Feature?

The library is experimental so if you find a bug or would like to request a new feature, open an issue


๐Ÿ’ป Mantainers


๐Ÿ“œ License

MIT


dropify's People

Contributors

kocierik avatar

Stargazers

Andrea Bianchi avatar  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.