Skip to content

Is there an equivalent to input-group-text for button groups? #40413

Answered by julien-deramond
webJose asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @webJose

Does something like that correspond to what you're trying to achieve? https://codepen.io/julien-deramond/pen/yLWOQPB

The first example uses toggle buttons (real buttons):

<div class="input-group mb-3">
  <span class="input-group-text" id="basic-addon1">@</span>
  <div class="btn-group" role="group" aria-label="Basic example">
    <button type="button" class="btn btn-outline-primary rounded-0">Left</button>
    <button type="button" class="btn btn-outline-primary">Middle</button>
    <button type="button" class="btn btn-outline-primary rounded-0">Right</button>
  </div>
  <input type="text" class="form-control" placeholder="" aria-label="Example text with two button addons">
</div

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@webJose
Comment options

Answer selected by webJose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants