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
| Name | Type | Default | Description |
|---|---|---|---|
href | string | — | Render an anchor. Without it the link is a button for an in-page action. |
to | string | 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. |
label | string | — | Text when you don't use the default slot. |
arrow | boolean | false | Trailing arrow that nudges on hover. |
underline | boolean | false | Underlined (link--ul). |
type | "button" | "submit" | "reset" | "button" | Native type when rendered as a button. |
disabled | boolean | false | Disabled button, or an anchor with aria-disabled and no href. |