<template>
  <div class="nav-element">
     <router-link :to="to"><slot></slot></router-link>
  </div>
</template>

<script>
export default{
  name: "NavigationElement",
  props: {
    to: {
      type: String,
      required: true
    }
  }
}
</script>

<style>

.nav-element {
  display: flex;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  height: 40px;
  width: 150px;
  justify-content: center;
  transition: all 0.1s ease-in-out;
}

.nav-element:hover, .nav-element:active {
  color: #002F54;
  border-bottom: 5px solid #5AF0B4;
  /* AE0055 */
  height: 40px;
}

a {
  text-decoration: none;
  color: #002F54;
}

</style>