A Mithril Styled Checkbox.
You can watch the demo here
<link rel="stylesheet" href="dist/css/mithril-checkbox.css" />
<script src="dist/js/mithril-checkbox.js"></script>
m.component(mCheckbox, {
name: 'ClickMe', // The name of the input, very useful when using labels
iconClass: '', // Icon's Class
valueProp: ctrl.trueOrFalse, // m.prop getter-setter, will be True when checked and False when not
pushToArray: ctrl.arrayOfThings, // Given array, the input name will be pushed to it, when being checked.
})