0.0.3 • Published 2 years ago

element-mold v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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);
0.0.3

2 years ago

0.0.2

3 years ago

0.0.1

3 years ago