<script setup>
const {label} = defineProps({
    label: {
        type: String,
        default: null,
    }
});
</script>

<template>
    <view class="x-form-item">
        <view class="!mb-[8rpx]" v-if="label">{{ label }}</view>
        <slot></slot>
    </view>
</template>

<style scoped lang="scss">
.x-form-item {
    margin-bottom: 20rpx;
}
</style>
