BaseLink

A link in a sentence — the one thing a button is not.

Import it from rei-kit: import { BaseLink } from 'rei-kit'

Open BaseLink in the live documentation, where every prop below is a control you can change, in four materials and ten palettes.

Usage

<script setup lang="ts">
import { BaseLink } from 'rei-kit'
</script>

<template>
  <p>
    Read the <BaseLink to="/docs">documentation</BaseLink>, or the
    <BaseLink href="https://vuejs.org" external>Vue guide</BaseLink>.
  </p>
</template>

Props

Props
PropTypeRequired or defaultWhat it is for
tostring | Record<string, unknown>undefinedA route. Uses `RouterLink`, so the app needs vue-router.
hrefstringundefinedA URL. Anything not on this site should be `external`.
externalbooleanundefinedOpens in a new tab, with the mark and the `rel` that belong to that.
tone'primary' | 'ink''primary'
underline'always' | 'hover' | 'none''hover'

About rei-kit

rei-kit is an accessible Vue 3 and Tailwind CSS 4 component library: 106 components, themed by role rather than by colour on three independent axes — ten WCAG-checked palettes, four materials and light or dark, each switched with one attribute. Typed, tested, SSR-safe, no runtime dependencies, MIT.

pnpm add rei-kit · npm · GitHub