Reusable material-design-lite react components written with rum
[rum "0.10.7"]
[rum-mdl "0.2.1"]
(require
'[rum.core :as rum]
'[rum.mdl :as mdl])
Normally default mdl stylesheet is required for proper site rendering.
As you are using boot, then you can retrieve mdl css files with sift
task from cljsjs/material
jar.
If you’re using order version of boot than
2.6.0
,you should add additional dep coord
[cljsjs/material "x.y.z-w"]
. (See details.)
(sift :add-jar {'cljsjs/material #".*.css$"})
(sift :move {#".*/material.inc.css" "material.inc.css"
#".*/material.min.inc.css" "material.min.inc.css"})
and add a <link>
tag in your index.html
.
[:link {:rel "stylesheet" :href "material.inc.css"}]
- https://github.com/google/material-design-lite
- https://github.com/google/material-design-lite/blob/mdl-1.x/src/mdlComponentHandler.js
- https://design.google.com/icons/
- Full wrapping mdl components
Here is the list of components which are not fully wrapped yet.
- tabs
- footer
- Documentation
- much more introduction
- Bumped cljsjs/material to 1.3.0-0
- Bumped cljsjs/material to 1.2.1-0
- Added chips components
mdl/chip
mdl/chip-text
mdl/chip-contact
mdl/chip-action
- Added
:key-fn
mixins to toggles- checkbox
- radio
- icon-toggle
- switch
- [ BREAK ] Revised the
header
componentmdl/header
doesn’t wrap its contents into.mdl-layout__header-row
anymore.- Added explicit header-row component,
mdl/header-row
.
- Workaround #2.
- Generate a content react key based on a content position.
- Respect existing key of react components. #1
:should-update
of mixinmdl-type
now compares:rum.mdl/orig-args
not:rum/args
.
Copyright © 2016 aJchemist
Licensed under Eclipse Public License.