Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

RSSButton

最終更新 Markdown で表示Agent セットアップ

import { RSSButton } from "~/components";

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

Props

text

type: string

default: "Subscribe to RSS"

ボタンに表示するテキストです。

icon

type: string

default: "rss"

テキストの横に表示するアイコンです。Nimbus の Icon コンポーネントで描画し、任意の iconify アイコン名を受け付けます(例: ph:rss-simple)。デフォルトの "rss"ph:rss-simple に対応します。

changelog または href

changelog または href のどちらか一方を指定してください。両方は指定できません。

changelog

type: string

リンク先にする changelog の名前です。小文字のハイフン区切りに変換し、/changelog/rss/{changelog}.xml 形式の RSS フィード URL を組み立てます。

href

type: string

リンク先のカスタム URL です。標準の changelog URL パターン以外の RSS フィードへリンクする場合に使います。

役に立ちましたか?