ziko
Version:
A versatile JavaScript library offering a rich set of Hyperscript Based UI components, advanced mathematical utilities, interactivity ,animations, client side routing and more ...
15 lines • 365 B
JavaScript
import {UINode} from "../constructors/UINode.js";
class ZikoUIText extends UINode {
constructor(...value) {
super("span", "text", false, ...value);
this.element = globalThis?.document?.createTextNode(...value)
}
isText(){
return true
}
}
const text = (...str) => new ZikoUIText(...str);
export{
ZikoUIText,
text
}