Segments are modern approach for traditional radio buttons
body>.oxd .oxd-button-switch {
display: flex;
background-color: #f1f2f5;
width: -webkit-fit-content;
width: fit-content;
border-radius: 3rem;
}
.option-switch {
background-color: #fff;
border: 1px solid #f1f2f5;
position: absolute;
border-radius: 3rem;
width: calc(50% + .5rem);
text-align: center;
box-shadow: 0 4px 12px 0 rgb(0 0 0 / 4%);
padding: .5rem 2rem;
}
body>.oxd .oxd-button-switch .option {
padding: .5rem 2rem;
cursor: pointer;
text-align: center;
color: #929baa;
}
behavior
disabled tab text color: #CFD3DE
disabled input text color: #CFD3DE
Cannot use for optional fields
Dont have a readonly mood. always should active,
Max Options 6 items , cant have long lables
Can use with icons or icon only.