Skip to content

printf83/bsts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1e82a7e · Jun 10, 2024
Jul 10, 2023
Jan 17, 2024
Jul 11, 2023
Jul 9, 2023
Mar 9, 2023
Mar 9, 2023
Jul 21, 2023
Jun 10, 2024
Jun 10, 2024
Jul 8, 2023
Jul 8, 2023
Sep 23, 2023
Sep 23, 2023

Repository files navigation

bsts

Maybe this is the stupid way to generate HTML, but, this is the way I learn. This library is just to create bootstrap 5.3 HTML but in TS way.

example :

import {core, b, h} from "@printf83/bsts";

core.documentReady(() => {
	let body = document.getElementById("main") as Element;
	core.replaceChild(body, new h.div([
        new h.p("This is example p tag"),
        new h.p({lead:true,data:{test:"test-data"}},"This is example p tag with attribute"),
        new b.button({id:"btn1",color:"primary"},"Button"),
    ]));
});

Check bsts testing website or github for more example code Update : 21/07/2023

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published