Files
heroui-vue/apps/docs/demos/link-underline-and-offset.vue
T
2026-10-21 13:04:06 +08:00

53 lines
1.5 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import { Link, LinkIcon } from "@heroui-vue/components";
</script>
<template>
<div class="flex flex-col gap-6">
<div class="flex flex-col gap-2">
<p class="text-sm font-medium text-muted">默认悬浮下划线</p>
<Link href="#">
悬浮以查看下划线
<LinkIcon />
</Link>
</div>
<div class="flex flex-col gap-2">
<p class="text-sm font-medium text-muted">始终显示下划线</p>
<Link class="underline" href="#">
下划线始终可见
<LinkIcon />
</Link>
</div>
<div class="flex flex-col gap-2">
<p class="text-sm font-medium text-muted">无下划线</p>
<Link class="no-underline" href="#">
不带任何下划线的链接
<LinkIcon />
</Link>
</div>
<div class="flex flex-col gap-2">
<p class="text-sm font-medium text-muted">调整下划线偏移</p>
<div class="flex flex-col gap-3">
<Link class="underline-offset-1" href="#">
偏移 1(1px 间距)
<LinkIcon />
</Link>
<Link class="underline-offset-2" href="#">
偏移 2(2px 间距)
<LinkIcon />
</Link>
<Link class="underline-offset-3" href="#">
偏移 3(3px 间距)
<LinkIcon />
</Link>
<Link class="underline-offset-4" href="#">
偏移 4(4px 间距)
<LinkIcon />
</Link>
</div>
</div>
</div>
</template>