<template>
  <div class="uif-tab-panel" v-if="isActive">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'u-tab-panel',
  props: {
    label: {
      type: String,
      default: ''
    },
    name: {
      type: String,
      default: ''
    },
    active: {
      type: Boolean,
      default: false
    }
  },
  data () {
    return {
      isActive: this.active
    }
  }
}
</script>
