<template>
  <div class="snt-tooltip">
    <div class="snt-tooltip__content">
      <v-tooltip
        :top="top"
        :left="left"
        :right="right"
        :bottom="bottom">
        <template #activator="{ on }">
          <slot
            :attrs="{ icon, label, content, top, left, right, bottom }"
            :on="on"
            name="activator">
            <div>
              <v-icon v-if="icon">
                {{ icon }}
              </v-icon>
              {{ label }}
            </div>
          </slot>
        </template>
        <slot :attrs="{ icon, label, content, top, left, right, bottom }">
          <div>{{ content }}</div>
        </slot>
      </v-tooltip>
    </div>
  </div>
</template>

<script>

export default {
  name: 'SntTooltip',
  props: {
    icon: {
      type: String,
      default: undefined
    },
    label: {
      type: String,
      default: ''
    },
    content: {
      type: String,
      default: ''
    },
    top: {
      type: Boolean,
      default: false
    },
    left: {
      type: Boolean,
      default: false
    },

    right: {
      type: Boolean,
      default: false
    },

    bottom: {
      type: Boolean,
      default: false
    }
  },
  data () {
    return {
    }
  },
  computed: {
  },
  mounted () {

  },
  methods: {

  }
}
</script>

<style scoped>
  .snt-tooltip {

  }
  .snt-tooltip__content {

  }
</style>
