TurboDOMBuilder is a lightweight TypeScript library designed to accelerate the process of creating and appending DOM elements. With TurboDOMBuilder, you can quickly generate HTML elements with specified properties and seamlessly integrate them into your web applications, all in one line of code.
For now, the library allows you to create any generic HTML element, and has more specialized functions for creating images and inputs. It also has a few custom components to create buttons and icons. You can refer to the documentaion to discover all the possible actions.
You can install TurboDOMBuilder via npm:
npm install turbodombuilder
Alternatively, you can include it directly in your HTML:
<script src="https://raw.githack.com/Carln02/TurboDOMBuilder/main/build/turbodombuilder.js"></script>
// Example: Creating an H2 element and appending it to the body
const div = Turbo.element({tag: "h2", text: "Hello, TurboDOMBuilder!", parent: document.body});
TurboDOMBuilder is licensed under the MIT License.
Generated using TypeDoc