File: //home/arjun/projects/buyercall/node_modules/bootstrap-vue-next/src/components/BCard/BCardGroup.vue
<template>
<component :is="tag" :class="cardTypeClass">
<slot />
</component>
</template>
<script setup lang="ts">
import {toRef} from 'vue'
import type {Booleanish} from '../../types'
import {useBooleanish} from '../../composables'
const props = withDefaults(
defineProps<{
columns?: Booleanish
deck?: Booleanish
tag?: string
}>(),
{
columns: false,
deck: false,
tag: 'div',
}
)
defineSlots<{
// eslint-disable-next-line @typescript-eslint/no-explicit-any
default?: (props: Record<string, never>) => any
}>()
const columnsBoolean = useBooleanish(() => props.columns)
const deckBoolean = useBooleanish(() => props.deck)
const cardTypeClass = toRef(() =>
deckBoolean.value ? 'card-deck' : columnsBoolean.value ? 'card-columns' : 'card-group'
)
</script>