Back to Tag-guidelines

JavaScriptThe latest version of this package is: 0.17.4, Opens in new window

Tag javascript

This component is compatible with ESM (ES6 module) and IIFE. See documentation examples below.

To be able to install this component, please refer to the Project Setup documentation.

$ npm i @ids-js/tag@0.17.4

Table of Contents

API

createTagElement ⇒ DocumentFragment

Creates an interactive button tag element

Kind:

global constant

Returns: DocumentFragment - The tag as a DocumentFragment node

Param Type Description
tag String The text for the tag
[color] String The color for the tag
Contact us, Opens in new window