@printf83/bsts
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @printf83/bsts

Weekly Downloads

593

Version

1.1.1

License

MIT

Unpacked Size

1.4 MB

Total Files

1619

Last publish

Collaborators

  • printf83