#Kuali-UI
npm package
Kuali-UI is a customized version of Material-UI, which is a set of React components that implement
Google's Material Design
specification.
Check out our documentation site for live examples.
It's still a work in progress, but hopefully you can see where we're headed.
Installation
Kuali-UI is available as an npm package.
Stable channel
npm install kuali-ui
React-Tap-Event-Plugin
Some components use
react-tap-event-plugin to
listen for touch events because onClick is not fast enough
This dependency is temporary and will eventually go away. Until then,
be sure to inject this plugin at the start of your app.
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
Usage
Kuali-UI components require a theme to be provided. The quickest way to get up and running is by using the MuiThemeProvider
to inject the theme into your application context. Following that, you can to use any of the components as demonstrated in the documentation.
Here is a quick example to get you started:
./App.js
import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'kuali-ui/styles/MuiThemeProvider';
import MyAwesomeReactComponent from './MyAwesomeReactComponent';
const App = () => (
<MuiThemeProvider>
<MyAwesomeReactComponent />
</MuiThemeProvider>
);
ReactDOM.render(
<App />,
document.getElementById('app')
);
./MyAwesomeReactComponent.js
import React from 'react';
import RaisedButton from 'kuali-ui/RaisedButton';
const MyAwesomeReactComponent = () => (
<RaisedButton label="Default" />
);
export default MyAwesomeReactComponent;
Please refer to each component's documentation page to see how they should be imported.
Customization
We have implemented a default theme to render all Kuali-UI components.
Styling components to your liking is simple and hassle-free. This can be
achieved in the following two ways:
Roadmap
The future plans and high priority features and enhancements can be found
in the ROADMAP.md file.
License
This project is licensed under the terms of the
MIT license