feat: add ButtonGroup component
This commit is contained in:
parent
5cf33f6dfa
commit
e902589427
1 changed files with 20 additions and 0 deletions
20
src/components/ButtonGroup.vue
Normal file
20
src/components/ButtonGroup.vue
Normal file
|
@ -0,0 +1,20 @@
|
|||
<script setup lang="ts"></script>
|
||||
|
||||
<template>
|
||||
<div class="btn-group">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
.btn-group {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
justify-content: space-evenly;
|
||||
|
||||
> * {
|
||||
flex: var(--button-group-flex);
|
||||
margin: 1rem 0;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue