bootstrap-mithril-button
Usage
import m from "mithril";
import button from "bootstrap-mithril-button";
const myButton = m(button, {
label: "Button",
});
Add a URL:
const myButton = m(button, {
label: "Button",
url: {
href: "/index",
oncreate: m.route.link,
},
});
Add an onclick event:
const myButton = m(button, {
label: "Button",
events: {
onclick: () => console.log("click"),
},
});