button full width bootstrap 5 code example
Example 1: full width bootstrap button
class="btn btn-primary btn-block"
Example 2: bootstrap button full width
Create block level buttons—those that span the full width of a parent—by adding .btn-block.