1.0.5-alpha.0 • Published 6 years ago

bootstrap-mithril-button v1.0.5-alpha.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

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"),
	},
});