<script setup lang="ts">
defineProps<{
  text: string
  required?: boolean
  width?: string
}>()
</script>

<template>
  <label
    :style="{ width: width || '120px' }"
    style="display: inline-block; font-weight: 700; color: #2C3E50; text-align: right; padding-right: 8px; font-size: 12px; box-sizing: border-box;">
    <span v-if="required" style="color: #E74C3C; margin-right: 2px;">*</span>{{ text }}
  </label>
</template>
