Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://kysonic.github.io/riot-mui/
Set of material ui components for riot js.
https://kysonic.github.io/riot-mui/
Last synced: 27 days ago
JSON representation
Set of material ui components for riot js.
- Host: GitHub
- URL: https://kysonic.github.io/riot-mui/
- Owner: kysonic
- License: mit
- Created: 2015-10-25T09:17:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-06T08:49:35.000Z (about 7 years ago)
- Last Synced: 2024-05-12T23:02:08.584Z (7 months ago)
- Language: JavaScript
- Size: 480 KB
- Stars: 151
- Watchers: 14
- Forks: 14
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-riotjs - Riot Material UI
README
# riot-mui
## Welcome!
[Riot JS](http://riotjs.com/) is the tiniest (by size) library allowing to create user interfaces. Riot is robust, fast and has enjoyable syntax. Unfortunately Riot doesn't have library of material UI components. This project aims to fix this problem.
Any person who loves Riot and material UI willing to be a part of this project - welcome! We have great chance to create set of components which will provide basic features of [Material UI](https://www.google.com/design/spec/material-design/introduction.html) for Riot.
### [DEMO](http://kysonic.github.io/riot-mui/)
### Riot V3
We have moved to Riot v3! Version 2 is no longer supported. Big thanks [Joxit](https://github.com/Joxit) for this update.
### News
- Webpack in da house! Now if you want to launch riot MUI just run `npm start`. (Global webpack, webpack-dev-server required...)
### Source code of demo pages is placed here:
[https://github.com/kysonic/riot-mui-page](https://github.com/kysonic/riot-mui-page)
## How to get riot-mui?
Github:
```
git clone https://github.com/kysonic/riot-mui
```
Npm:
```
npm install riot-mui
```
Bower:
```
bower install riot-mui
```
## Getting startedIf you use Browserify (or presumably other NPM-based bundlers), you can simply require('riot-mui') and all tags and mixins will be registered with Riot.js
If you don't use some build system like webpack or gulp (+broserify) you can just include riot-mui.js and riot-mui.css (or their minimized versions) in your project.
```
....
```Add material ui component:
```
Button
```
And mount it:
```
riot.mount('material-button');
```
In another case you can use source files of this project:```
require('material-elements/material-checkbox/material-checkbox.scss');
require('material-elements/material-checkbox/material-checkbox.tag');
```
Don't forget that some components have dependency of another components, for example material-button include material-waves. In this case you have to include it at first:```
require('material-elements/material-waves/material-waves.scss');
require('material-elements/material-waves/material-waves.tag');
require('material-elements/material-button/material-button.scss');
require('material-elements/material-button/material-button.tag');
```Learn more about riot-mui [here](https://github.com/kysonic/riot-mui/tree/master/examples).
## A few words about styling
All components styles located in Sass file which has same name like a component file.
All components styles encapsulated using tag name like a name space of component.
All components styles has special section - "Variables for quick styling" which will help you to style main features of components really quickly. Also you have possibility to override it whatever you want.## Bugs, enhancements, suggestions
If you want to help make this project better you can add your suggestions [here](https://github.com/kysonic/riot-mui/issues). This also applies to bugs and enhancements.
## Contributing
1. Fork the repo.
2. Write your code.
3. Submit your pull request to dev branch of this project.