nino
  • Docs
  • Registry
  • Membership

Command Palette

Search for a command to run...

スポンサー
Registry
Getting Started
  • レジストリとは?
  • MCP
  • テンプレート
Components
  • Codes
  • Image Cropper
  • YouTube Video
  • In View
  • Breadcrumb Provider
  • Flip Card
  • Recency Date
Libraries
  • Base URL
メニュー

Breadcrumb Provider

 

パンくずナビゲーション用のコンテキストプロバイダーとコンポーネント。宣言的にパンくずを定義できます。

インストール

Loading...

動的ルートでの使用

Loading...
nino

Developer

XXGitHubGitHubYouTubeYouTubeZennZennDiscordDiscord

    Links

  • Documentation
  • Registry
  • Architecture

    Tools

  • Feed
  • Status

    Policies

  • Terms of Service
  • Privacy Policy
  • Legal
pnpx shadcn@latest add https://dninomiya.com/api/r/breadcrumb-provider
import { BreadcrumbConfig } from "@/registry/components/breadcrumb-provider";

export default async function Page({ params }: PageProps<"/posts/[id]">) {
  const id = (await params).id;
  const post = await getPost(id);

  return (
    <div>
      <BreadcrumbConfig items={[
        { label: "ホーム", href: "/" },
        { label: "ポスト", href: "/posts" },
        { label: post.title },
      ]} />
      <h1>{post.title}</h1>
    </div>
  );
}