1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-22 07:42:36 +00:00
bramw_baserow/web-frontend/modules/builder/components/theme/ThemeConfigBlockSection.vue
2024-07-03 12:05:50 +00:00

40 lines
925 B
Vue

<template>
<Expandable default-expanded>
<template #header="{ toggle, expanded }">
<a v-if="title" class="theme-config-block__title" @click="toggle">
{{ title }}
<i
class="theme-config-block__title-icon"
:class="{
'iconoir-nav-arrow-down': expanded,
'iconoir-nav-arrow-right': !expanded,
}"
/>
</a>
</template>
<template #default>
<div class="theme-config-block-section">
<div class="theme-config-block-section__properties">
<slot></slot>
</div>
<div class="theme-config-block-section__preview">
<slot name="preview"></slot>
</div>
</div>
</template>
</Expandable>
</template>
<script>
export default {
name: 'ThemeConfigBlockSection',
props: {
title: {
type: String,
required: false,
default: null,
},
},
}
</script>