https://github.com/printf83/ts-bootstrap
https://github.com/printf83/ts-bootstrap
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/printf83/ts-bootstrap
- Owner: printf83
- License: mit
- Created: 2023-10-02T06:22:09.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T14:47:31.000Z (over 2 years ago)
- Last Synced: 2025-02-07T22:49:50.309Z (about 1 year ago)
- Language: TypeScript
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://printf83.github.io/bsts-test/) or [github](https://github.com/printf83/bsts-test) for more example code
Update : 21/07/2023