Skip to content

lowfront/element-mold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Element mold

A collection of simple HTML/SVG Element generation functions. Supports typescript!

example

import {section, h1, div, span, b} from 'element-mold/dist/html';

let ref1, ref2;
const refSection = section({className: 'container'}, [
  ref1 = h1('Heading Text'), 
  ref2 = div({className: 'container-body'}, [
    'test',
    span({}, [
      ' text',
      b('bold'),
      ' text',
    ]),
  ]),
]);

console.log(refSection, ref1, ref2);

About

A collection of simple HTML/SVG Element generation functions. Supports typescript!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published