Hi there, talented developers!
I'm attempting to create a design with a combination of radio buttons and dropdown menus using Bootstrap, similar to what is achieved with bootstrap input-group(Buttons with dropdowns).
The twist in my design is that instead of a text box, I want to use a radio button along with a label. Here's an example of what I have in mind: https://i.sstatic.net/qtro9.png
Despite trying various combinations, I haven't been able to get the desired output. This is what I've tried so far:
<div class="row">
<div class="col-3">
<div class="input-group">
<div style="border: 1px solid;">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked>
<label class="form-check-label" for="exampleRadios1">
Default radio
</label>
</div>
<div class="input-group-append">
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div role="separator" class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</div>
</div>
</div>
<div class="col-3">
<div class="input-group">
<input type="radio" class="form-control">
<div class="input-group-append">
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div role="separator" class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</div>
</div>
</div>
</div>
Unfortunately, the current output looks rather unappealing. https://i.sstatic.net/xHnz7.png
Could you provide some guidance on achieving the design shown in the reference sketch?