Mithril bindings for Onsen UI
With Onsen UI you can create beautiful and performant hybrid apps that run on both Android and iOS. This package contains Mithril.js v2 bindings and components that makes it easy to integrate the Onsen UI components in Mithril apps.
For more information of what's included in Onsen UI please see:
Package Manager (yarn, npm)
yarn add onsenui mithril-onsenui --save
Including Mithril.js and Onsen UI
ES6 imports and Webpack (with CSS imports)
Direct include in index.html
<!-- Mithril.use(MithrilOnsen) is called automatically if window.Mithril is defined -->
Examples - Running the development server
The examples are located under
/bindings/mithril/examples directory in the main repo.
You can serve these examples by running the development server. First you need to build the main repo. When that is done you can run the following commands from
yarn install yarn run dev
This will open a development server with a kitchen sink app in
Otherwise, have a look at the playground for online examples.
If you find any bug or want to request features/ API changes, please open an issue. Make sure to include all information necessary to reproduce it if you file a bug report.