跳转到内容
搜索文档

术语表工具提示

最后更新 查看 MarkdownAgent 设置

The GlossaryTooltip component is used 569 times on 414 pages.

See all examples of pages that use GlossaryTooltip

Used 569 times.

Pages

Partials

使用此组件向 Markdown 文件中的单词添加工具提示。工具提示的信息是从术语表 yaml 文件中提取的。

term 指定您要从中提取信息的术语表条目。

开始和结束组件之间的文本是您想要使用该术语表条目进行定义的单词或短语。

组件

import { GlossaryTooltip } from "~/components"

<GlossaryTooltip term="example">Hover over me!</GlossaryTooltip>

术语表

productName: Style Guide
entries:
  - term: example
    general_definition: |-
      Hello, world! You can use **Markdown** features inside of your `tooltips`.

这篇文档对您有帮助吗?