组件目录

Link

链接文字,支持强调样式和由调用方绘制的样式。

Vue

示例

强调样式与 bare 样式

用法

<script setup>
import { Link } from '@momoyeyu/momo-ui/vue';
import '@momoyeyu/momo-ui/styles.css';
</script>

<template>
<Link href="/docs">阅读文档</Link>
</template>

API

参数类型默认值说明
hrefstring必填跳转目标。
variantaccent | bareaccent控制是否使用组件的强调样式。

保留原生链接语义,可传入 target、rel 等属性。