Install

To install this library, you can use npm for package management, the CDN for direct inclusion, or manually download it from the GitHub releases page.

  1. Install use-bootstrap-tag in your Node.js powered apps with the npm package:

    npm install use-bootstrap-tag
  2. After installation, you can import the library into your project as follows:

    import 'use-bootstrap-tag/dist/use-bootstrap-tag.css'
    import UseBootstrapTag from 'use-bootstrap-tag'

You can use use-bootstrap-tag directly via CDN:

<link href="https://cdn.jsdelivr.net/npm/use-bootstrap-tag@2.2.2/dist/use-bootstrap-tag.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/use-bootstrap-tag@2.2.2/dist/use-bootstrap-tag.min.js"></script>

Example

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/use-bootstrap-tag@2.2.2/dist/use-bootstrap-tag.min.css" rel="stylesheet">
    <title>Example</title>
  </head>
  <body>
    <div class="container pt-4">
      <input type="text" class="form-control" value="html,css,js" id="example">
    </div>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/use-bootstrap-tag@2.2.2/dist/use-bootstrap-tag.min.js"></script>
    <script>
      UseBootstrapTag(document.getElementById('example'))
    </script>
  </body>
</html>

Visit the GitHub releases page to download the latest version