Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

Badges

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

The Badge component is used 80 times on 32 pages.

See all examples of pages that use Badge

Used 80 times.

Pages

Partials

バッジは Nimbus ↗ が提供する組み込みコンポーネントです。たとえば、製品がベータであることを示すときに使います。

コンポーネント

import { Badge } from "~/components";

<Badge text="Note" variant="note" />
<Badge text="Success" variant="success" />
<Badge text="Tip" variant="tip" />
<Badge text="Caution" variant="caution" />
<Badge text="Danger" variant="danger" />
<Badge text="Default" />

サイドバー

バッジは、ページの frontmatter からサイドバーに追加できます。

---
title: Hello World
sidebar:
  badge:
    variant: tip
    text: New
---

製品に Beta バッジを付ける場合は、variant: の項目を省略します。

---
title: Hello World
sidebar:
  badge:
    text: Beta
---

役に立ちましたか?