Sharkey/packages/client/src/components/form/group.vue

37 lines
546 B
Vue
Raw Normal View History

2021-11-28 12:07:37 +01:00
<template>
2022-01-02 13:35:23 +01:00
<div v-sticky-container class="adfeebaf _formBlock">
2021-11-28 12:07:37 +01:00
<div class="label"><slot name="label"></slot></div>
<div class="main _formRoot">
<slot></slot>
</div>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
});
</script>
<style lang="scss" scoped>
.adfeebaf {
padding: 24px 24px;
2022-01-02 13:35:23 +01:00
border: solid 1px var(--divider);
2021-11-28 12:07:37 +01:00
border-radius: var(--radius);
> .label {
font-weight: bold;
padding: 0 0 16px 0;
&:empty {
display: none;
}
}
> .main {
}
}
</style>