mithril.component.mdl

0.0.9 • Public • Published

mithril MDL components

This creates http://www.getmdl.io/ components for use with mithril.

Use state to create different components, for example:

m.components.mButton({text: "Hello"})

Is a "normal" coloured button, whereas this:

m.components.mButton({state: {fab: true, colored: true}, text: "add"})

Is a "fab" (round) button with a plus symbol

For further options, see the MDL documentation

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i mithril.component.mdl

      Weekly Downloads

      0

      Version

      0.0.9

      License

      MIT

      Last publish

      Collaborators

      • jsguy