koel/resources/assets/js/components/ui/BtnGroup.vue
2022-07-16 12:14:19 +02:00

37 lines
653 B
Vue

<template>
<span class="btn-group">
<slot></slot>
</span>
</template>
<style lang="scss">
.btn-group {
--radius: 9999px;
display: flex;
position: relative;
flex-wrap: nowrap;
button {
&:not(:first-child) {
border-radius: 0;
}
&:first-of-type {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-top-left-radius: var(--radius);
border-bottom-left-radius: var(--radius);
}
&:last-of-type {
border-top-right-radius: var(--radius);
border-bottom-right-radius: var(--radius);
}
}
&[uppercased] button {
text-transform: uppercase;
}
}
</style>