<:import src="base.htm" /> <:define tag="bs-badge:span" // parameters ::variant=${'primary'} ::pill=${false} ::position=${null} // 'top-end' | 'bottom-end' — for a badge on a button // private :_class=${[ 'badge', `text-bg-${variant}`, pill ? 'rounded-pill' : '', position ? 'position-absolute translate-middle' : '', position === 'top-end' ? 'top-0 start-100' : '', position === 'bottom-end' ? 'top-100 start-100' : '', ].filter(s => s).join(' ')} class=${_class} ><:slot />