Skip to content

LastStar/mdc-rum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdc-rum

A ClojureScript library designed for use of the Material Design Components for Web in Rum based ClojureScript applications.

Not complete, just what I needed so far. Feel free to PR some more.

Usage

Add to dependencies: [laststar/mdc-rum "0.2.0"].

Clone this repository, and in it run lein install.

For css styles you need to add link to MDC styles:

<link rel="stylesheet" href="cljsjs/material-components/production/material-components.min.inc.css">

to your index.hml.

Namespaces

mdc-rum.core namespace contains keyword constants for hiccup style MDC elements:

(require '[mdc-rum.core :as mdc])

[mdc/icon "face"] ;; <span class="material-icons">face</span>`

mdc-rum.components namespace contains Rum components:

(require '[mdc-rum.components :as mdcc])

[mdcc/button {:some :options} "Label"] 

mdc-rum.mixins namespace contains MDC mixins, used mostly internally by the components.

Discussion

I definitely know about other libraries, which solve similar problem like rum-mdc. But I am not sure I need to create Rum component for every element and reimplement all the MDC JavaScript myself.

Still probably these other libraries are better for you :-).

License

Copyright © 2017 LastStar.eu

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Releases

No releases published

Packages

No packages published