Git Product home page Git Product logo

mithril-components-bootstrap's Introduction

mithril-components-bootstrap

Components targeted toward Bootstrap's CSS. Neither jQuery nor bootstrap.js are required.

Web site (in progress): https://eddyystop.github.io/mithril-components-bootstrap

There seem to be 2 design approaches to writing Bootstrap components. One focuses on writing Bootstrap HTML by hand (as it has always been done) and then wrapping Mithril around that HTML.

The other approach, the one this repo uses, is to write components which implement common Bootstrap structures. The components themselves produce the Bootstrap HTML via Mithril.

The components here are finalized but this doc is temporary.

Sub-components all the way down

A Nav bar component is implemented. It may contain (multiple instances of) Tabs, Dropdowns, Buttons, Dropdown Buttons, Search forms, and Text sub-components.

The Tabs component may contain (multiple instances of) Dropdown sub-components. The ButtonDropdown component also contains Dropdown as a sub-component.

The design used is based on discussions at

Such a sub-component design allows anyone to leverage existing components into more complex entities.

Roadmap

I'm working on components required for a high-end web site for this repo.

Please feel free to contribute your components.

Tests

There are fairly extensive tests for each component. Node.js must be installed. Then run

gulp test

p.s. There presently seem to be caching or async issues with the gulp features being used. Run the tests several times to flush lingering false negatives.

mithril-components-bootstrap's People

Contributors

eddyystop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lambder

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.