# Btn

A functional component for logically rendering the appropriate actionable elements: <RouterLink>, <a>, or <button>. At first glance, this may not be a particularly helpful component, but it really simplifies list rendering.

Features:

  • Renders a <button> by default.
  • Renders a <RouterLink> when provided a to prop.
  • Renders an <a> link when provided a href prop.

Source

# Installation

Globally:

// main.js
import Vue from "vue"
import { VBtn } from "vuetensils/src/components"

Vue.component("VBtn", VBtn)

Locally:

<script>
// SomeComponent.vue
import { VBtn } from "vuetensils/src/components"

export default {
  components: {
    VBtn,
  },
  // ...
}
</script>

# Button Example (Default)

# List Example

Last Updated: 6/16/2020, 2:10:41 AM