<div class="wrapper">
	<button class="button">HTML</button>
</div>
.wrapper {
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 4rem;
}

.button {
  background: #ddd;
/*   color: #fff; */
  border-radius: 4px;
  flex: 0 1 31%;
  padding: 2rem;
}

.tippy-box[data-theme~='original-1'] {
  background-color: tomato;
  color: yellow;
}

.title {
	border-bottom: 1px solid #ddd;
	padding: .5rem;
	margin: .5rem 0;
	font-size: 1.125rem;
	line-height: 1;
}

.description {
	padding: .5rem;
}
const buttons = document.querySelectorAll('button');

buttons.forEach( button => {
	const options = {
		content: '<h2 class="title">allowHTML</h2><div class="description">trueの場合HTMLを使用できます。<br>falseの場合HTMLは文字列として表示されます。</div>',
		allowHTML: true,
	};
	
	
	tippy( button, options );
} );

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/tippy.js/6.3.7/themes/light.min.css
  2. https://cdnjs.cloudflare.com/ajax/libs/tippy.js/6.3.7/themes/light-border.min.css
  3. https://cdnjs.cloudflare.com/ajax/libs/tippy.js/6.3.7/themes/material.min.css
  4. https://cdnjs.cloudflare.com/ajax/libs/tippy.js/6.3.7/themes/translucent.min.css

External JavaScript

  1. https://unpkg.com/@popperjs/core@2
  2. https://unpkg.com/tippy.js@6