<script setup>
const props = defineProps(["df"]);
</script>

<template>
  <div class="control editable">
    <div class="field-controls">
      <slot name="label" />
      <slot name="actions" />
    </div>
    <div class="signature-field"></div>
    <div v-if="df.description" class="mt-2 description" v-html="df.description"></div>
  </div>
</template>

<style lang="scss" scoped>
.signature-field {
  border-radius: 6px;
  height: 200px;
  display: flex;
  justify-content: center;
  background-color: #f9fafb;
  border: 1px dashed #d1d5db;

  &::before {
    content: "";
    background-color: #9ca3af;
    width: 70%;
    height: 2px;
    margin-top: 150px;
  }
}

.description {
  font-size: 12px;
  color: #6b7280;
}

.mt-2 {
  margin-top: 0.5rem;
}
</style>
