Tooltip placements
Top, right, bottom or left with data-bs-placement. If there
isn't room, the tooltip flips to the other side on its own.
Show code
<button type="button" class="btn btn-outline-secondary"
data-bs-toggle="tooltip" data-bs-placement="right"
data-bs-title="Tooltip on the right">Right</button>
<script>
document.querySelectorAll('[data-bs-toggle="tooltip"]')
.forEach((el) => new bootstrap.Tooltip(el));
</script>