跳转到内容
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com

RSSButton

最后更新 查看 MarkdownAgent 设置

示例

import { RSSButton } from "~/components";

<RSSButton changelog="Workers" />
<br />
<RSSButton href="/custom/feed.xml" text="Custom Feed" icon="ph:arrow-square-out" />

属性

text

类型:string

默认值:"Subscribe to RSS"

按钮中显示的文本。

icon

类型:string

默认值:"rss"

显示在文本旁边的图标。通过 Nimbus Icon 组件渲染,接受任意 iconify 图标名称,例如 ph:rss-simple。默认值 "rss" 映射到 ph:rss-simple。

changelog 或 href

您必须提供 changelog 或 href 之一,但不能同时提供:

changelog

类型:string

要链接到的更新日志的名称。这将被转换为小写、连字符分隔的字符串,并用于以 /changelog/rss/{changelog}.xml 格式构建 RSS 订阅 URL。

href

类型:string

要链接到的自定义 URL。当您需要链接到不遵循标准更新日志 URL 模式的 RSS 订阅源时使用此参数。

这篇文档对您有帮助吗?