RSSButton
import { RSSButton } from "~/components";
<RSSButton changelog="Workers" />
<br />
<RSSButton href="/custom/feed.xml" text="Custom Feed" icon="external" />
Props
text
type: string
default: "Subscribe to RSS"
The text to display in the button.
icon
type: string
default: "rss"
The icon to display next to the text. Renders via the Nimbus Icon component; accepts any iconify icon name (for example, ph:rss-simple). The default "rss" maps to ph:rss-simple.
changelog or href
You must provide either changelog or href, but not both:
changelog
type: string
The name of the changelog to link to. This will be transformed into a lowercase, hyphen-separated string and used to construct the RSS feed URL in the format /changelog/rss/{changelog}.xml.
href
type: string
A custom URL to link to. Use this when you need to link to an RSS feed that doesn't follow the standard changelog URL pattern.
这篇文档对你有帮助吗?
谢谢你的反馈!