<template>
  <div class="mu-text-field-hint" :class="{'show': show}" style='display:inline-block'>
    {{text}}
  </div>
</template>

<script>
export default {
  props: {
    text: {
      type: String
    },
    show: {
      type: Boolean,
      default: true
    }
  }
}
</script>

<style  lang="less" scoped>
@import "../../styles/import.less";
.mu-text-field-hint{
  position: absolute;
  opacity: 0;
  font-size: 18px;
  transition: opacity .45s $easeOutFunction;
  color: #3A4247;
  line-height: 34px;
  user-select: none;
  cursor: text;
  display: inline-block;
  &.show{
    opacity: 1;
  }
  .mu-text-field.multi-line &{
    line-height: 1.5;
  }
}
.focus-state .mu-text-field-hint{
    color: #bfc4c7;
    display: inline-block;
}
</style>
