Actions / Link

Actions

Link

Inline text links: plain, underlined, and with a trailing arrow.

import { EcoLink } from "vue-ecosphere"

With arrow

For “see more” exits at the end of a card or section.

Button link

An action that changes the page, not the location, is a button styled as a link.

Underlined

Inside running text, where colour alone should not carry the link.

Through the router

With vue-router installed, `to` renders an anchor with the resolved href and navigates without a page load.

API

NameTypeDefaultDescription
hrefstring—Render an anchor. Without it the link is a button for an in-page action.
tostring | RouteLocationRaw—Navigate through vue-router's RouterLink (an anchor with the resolved href) when the app has it installed; a string falls back to a plain link.
labelstring—Text when you don't use the default slot.
arrowbooleanfalseTrailing arrow that nudges on hover.
underlinebooleanfalseUnderlined (link--ul).
type"button" | "submit" | "reset""button"Native type when rendered as a button.
disabledbooleanfalseDisabled button, or an anchor with aria-disabled and no href.