bootstrap-mithril-button

1.0.5-alpha.0 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i bootstrap-mithril-button

    Weekly Downloads

    1

    Version

    1.0.5-alpha.0

    License

    MIT

    Unpacked Size

    5.3 kB

    Total Files

    6

    Last publish

    Collaborators

    • nickgoodliff