Skip to content
Snippets Groups Projects
RowEntry.vue 682 B
Newer Older
<template>
  <div class="row gx-0" :class="classes">
    <label class="col-sm-2 col-form-label fw-bold text-end px-2" for="name">
      <span v-if="htmlLabel" v-html="label"></span>
      <template v-else>{{ label }}</template>
    <div class="col-sm-10 col-form-label value px-2">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    label: String,
    class: String,
    htmlLabel: Boolean,
  },
  computed: {
    classes() {
      return this.class;
    },
  },
};
</script>

<style scoped>
.value {
  border: solid;
  border-width: 1px;
  border-color: lightgray;
  border-radius: 5px;
  background-color: whitesmoke;
}
</style>