JSFiddle - React, Tailwind, and code Playground
by core972
HTML
<div class="input-group">
<div clashttps://jsfiddle.net/core972/voepg1xL/#forks="input-group-prepend">
<div class="input-group-text">https://</div>
</div>
<input type="text" class="form-input" placeholder="Le nom de votre book" aria-label="Le nom de votre book" aria-describedby="btnGroupAddon">
<div class="input-group-append">
<div class="input-group-text">.okalys.fr</div>
<button type="button" class="btn btn-connexion">Charger</button>
</div>
</div>
CSS
body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}
.btn {
display: inline-block;
font-weight: 400;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border: 1px solid transparent;
padding: .375rem .75rem;
font-size: .85rem;
line-height: 1.5;
border-radius: .25rem;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.input-group {
position: relative;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-ms-flex-align: stretch;
align-items: stretch;
width: 100%;
}
.input-group-prepend {
margin-right: -1px;
display: flex;
}
.input-group-append {
margin-left: -1px;
}
.input-group-text {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
padding: .375rem .75rem;
margin-bottom: 0;
font-size: .85rem;
font-weight: 400;
line-height: 1.5;
color: #495057;
text-align: center;
white-space: nowrap;
background-color: #e9ecef;
border: 1px solid #ced4da;
}
.input-group-prepend > div{
border-radius: 5px 0 0 5px;
}
.form-input{
font-size: .85rem;
border: 1px solid #ced4da;
border-radius: 0;
}
.input-group > div, .input-group > input {
display: flex;
}
.btn-connexion {
cursor: pointer;
background: #f29300;
border-radius: 0 5px 5px 0;
margin-left: -1px;
}
.btn-connexion:hover {
background: #ffaf33;
}