0.4.17 • Published 4 years ago
tag v0.4.17
tag
Installation
npm install tag --save
or
<script src="tag.iife.js"></script>
tag(name, *attributes, children)
- Parameters
- name: String
- attributes: Object (optional)
- children: Array | String
- Returns - HTMLElement
Example
import tag from 'tag';
tag('div', { id: 'content' }, 'content');
tag('div', { id: 'content' }, [tag('span', 'content')]);
tag('div', [tag('span', '<strong>content</strong>')]);
tag('hr');
tag('label', [tag('input', { type: 'text' }), 'Label text']);
License and Copyright
This software is released under the terms of the MIT license.
0.4.17
4 years ago
0.4.16
5 years ago
0.4.15
5 years ago
0.4.14
5 years ago
0.4.13
5 years ago
0.4.12
6 years ago
0.4.11
6 years ago
0.4.10
6 years ago
0.4.9
6 years ago
0.4.8
6 years ago
0.4.7
6 years ago
0.4.6
6 years ago
0.4.5
6 years ago
0.4.4
6 years ago
0.4.3
6 years ago
0.4.2
6 years ago
0.4.1
6 years ago
0.4.0
6 years ago
0.3.0
9 years ago
0.1.0
10 years ago
1.3.0
11 years ago
1.2.0
12 years ago
1.1.1
13 years ago
1.1.0
13 years ago
1.0.0
14 years ago