Bootstrap 4/5: Flexbox CardHeader with buttons on the right
To get a right justified button in a card header
<h4 class="card-header d-flex justify-content-between align-items-center"> <div> <i class="fas fa-user-alt"></i> Title Here </div> <button type="button" class="btn btn-sm btn-primary">Button</button> </h4>