Skip to content

Commit 15e7ce2

Browse files
committed
docs: a few word adjustments
1 parent bb979b7 commit 15e7ce2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/docs/src/app/breadcrumbs

packages/docs/src/app/breadcrumbs/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import ExportMetaInfo from '../../components/export-meta-info';
88

99
<ExportMetaInfo />
1010

11-
A headless breadcrumb primitive for React. Automatically collects breadcrumb items from nested layouts/components, then renders the full chain wherever you want — without breaking React's one-way data flow. Built on top of foxact's [`createMagicPortal`](/magic-portal).
11+
A headless breadcrumb primitive for React. Automatically collects breadcrumb items from nested layouts/components, then renders the full chain wherever you want — without breaking React's one-way data flow. Built on top of foxact's [Magic Portal](/magic-portal) utility.
1212

1313
## The Problem
1414

@@ -30,7 +30,7 @@ With `foxact/breadcrumbs`, **you declare breadcrumbs the same way you declare yo
3030

3131
Under the hood, each `BreadcrumbItem` uses React Context to accumulate the chain: it reads the parent chain, appends its own `{ title, href }`, and provides the extended chain to its children. This is just nested context providers — the same mechanism React already uses for tree-shaped data.
3232

33-
At the leaf (a page component), `BreadcrumbPage` reads the full accumulated chain and portals the rendered breadcrumb UI to a target element in the root layout via [`createMagicPortal`](/magic-portal). No data flows "upward" — the chain is built top-down through context, and the UI is "teleported" to the global layout header via a React Portal.
33+
At the leaf (a page component), `BreadcrumbPage` reads the full accumulated chain and portals the rendered breadcrumb UI to a target element in the root layout via [Magic Portal](/magic-portal). No data flows "upward" — the chain is built top-down through context, and the UI is "teleported" to the global layout header via a React Portal.
3434

3535
The result:
3636

0 commit comments

Comments
 (0)