Nana's Plush Muppet

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

    Keywords

    none

    Install

    npm i bootstrap-mithril-button

    DownloadsWeekly Downloads

    0

    Version

    1.0.5-alpha.0

    License

    MIT

    Unpacked Size

    5.3 kB

    Total Files

    6

    Last publish

    Collaborators

    • nickgoodliff