# Base Anchor

# Example 🔥

# Source Code

# Library Abstruction

<template>
  <a :href="href">{{ title }}</a>
</template>

<script>
export default {
  name: "v-anchor",
  props: {
    title: {
      type: String,
      default: "Default"
    },
    href: {
      type: String,
      default: "/"
    }
  },
  computed: {
    target() {
      return this.href ? this.href : "_blank";
    }
  }
};
</script>

# Implementation

<template>
  <div class="marginTop1">
    <v-anchor
      title="Base Anchor"
      class="anchor2"
      href="/vue-component-library/components/base-anchor"
    />
  </div>
</template>

<script>
export default {
  name: "base-anchor"
};
</script>

<style scoped>
.marginTop1 {
  margin-top: 20px;
}
.anchor2 {
  background-color: #4ec6de;
  color: white;
  padding: 10px;
  color: white;
}
</style>