Giter VIP home page Giter VIP logo

mino-ui's Introduction

mino-ui

A minimalist ui components built using riot.js

I like the ease and simple of riot.js, so I decided to create something using it.

Mino-ui provides a list of components that web developer normally use in building web application. It embrace the simplicity of riot.js. Every tag has its own folder, you can grab it and compile yourself if you do not wish to use the whole components. It is an on-going personal project, therefore, it will continue to update with different ui components.

If you find that Mino-ui will be helpful for your project, you are welcome to use it or even modify it as per your needs.

As of now

  1. mino-alert (Alert Message) Alert Message Sample
  riot.mount('mino-alert', {
    type: "auto-dismiss", 
    stay: 3,  
    theme: 'note',
    message: 'Your message', //your message
    class: 'class-you-defined', //css class
    display: 'inline' //display style
  });

  /*******************************************/
    accepted opts
  /*******************************************/
  type : string
  -  'auto-dismiss', 'dismiss', 'display'
  stay: numeric
  theme: string 
  -  'light', 'dark', 'primary', 'success', 'warning', 'note', 'default'
  message: string
  class: string
  -  'css-class'
  display: html style
  -  'inline', 'inline-block'
  <mino-alert theme="primary">
      <font style="color:white">Thanks for doing this great UI!</font>
  </mino-alert>
  1. mino-btn (Button)

Button Sample

  riot.mount('mino-btn', {
    theme: 'css-class',
    onclick:  function(){
      console.log('Hello Mino!')
    }
  });  

  /*******************************************/
  accepted opts
  /*******************************************/
  theme: string
  -  'light', 'dark', 'primary', 'success', 'warning', 'note', 'default'
  type: string
  -  'submit', 'button'    
  <mino-btn theme="primary"></mino-btn>
  1. mino-date (Datepicker)

Datepicker Sample Datepicker Sample Datepicker Sample

    riot.mount('mino-date', {
      theme: 'dark',
      class: 'input-box',
      type: 'modal',
      day: 1,
      month: 1,
      year: 2018,
      rname: 'datepicker1',
      date: 'Jul 13 2018',
      format: 'short',
      numofyears: 10
    });
    
    /*******************************************/
    accepted opts
    /*******************************************/
    theme: string,
    -  'light', 'dark', 'primary', 'success', 'warning', 'note', 'default'
    type: string
    -  'modal'
    class: string
    -  'input-box', 'input-line'
    day,month,year: numeric (set individual day, month, year)
    date: string (will overwrite day,month,year input)
    - 'September 19 2018', '9-19-2018', '19/9/2018'
    rname: string
    - 'datepicker', 'picker, ...
    format: string
    -  'iso', 'short', 'long'
    numofyears: numeric
    -   1,2,3,4,...
  <mino-date rname="datepicket1" day="1" month="2" year="2017" format="iso" type="modal" theme="dark"></mino-date>    
  <mino-date rname="datepicket2" date="September 19 2018" numofyears="20"  class="input-box" theme="success"></mino-date>

Proper document page will be created once this project has enough ui-components created.

Thanks for visiting!

mino-ui's People

Contributors

yjchan avatar

Stargazers

 avatar

Watchers

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