koel/resources/assets/js/components/ui/form/BtnGroup.vue

32 lines
491 B
Vue
Raw Normal View History

2024-04-04 22:20:42 +00:00
<template>
2024-05-19 05:49:42 +00:00
<span class="btn-group inline-flex relative flex-nowrap">
2024-04-04 22:20:42 +00:00
<slot />
</span>
</template>
<style lang="postcss" scoped>
.btn-group {
:deep(button) {
&:not(:first-child) {
@apply rounded-none;
}
&:first-of-type {
@apply rounded-l-md rounded-r-none;
}
&:last-of-type {
@apply rounded-r-md rounded-l-none;
}
&:only-of-type {
@apply rounded;
}
}
2024-05-19 05:49:42 +00:00
&[uppercase] :deep(button) {
2024-04-04 22:20:42 +00:00
@apply uppercase;
}
}
</style>