Vue
示例
用法
<script setup>
import { Link } from '@momoyeyu/momo-ui/vue';
import '@momoyeyu/momo-ui/styles.css';
</script>
<template>
<Link href="/docs">阅读文档</Link>
</template> API
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
href | string | 必填 | 跳转目标。 |
variant | accent | bare | accent | 控制是否使用组件的强调样式。 |
保留原生链接语义,可传入 target、rel 等属性。