Skip to content

Commit e777e7a

Browse files
committed
Fix docs for Links nonce prop
1 parent dbfb4ba commit e777e7a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/api/components/Links.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ export default function Root() {
4545
## Signature
4646

4747
```tsx
48-
function Links(): React.JSX.Element
48+
function Links({ nonce }: LinksProps): React.JSX.Element
4949
```
5050

51+
## Props
52+
53+
### nonce
54+
55+
A [`nonce`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/nonce)
56+
attribute to render on the [`<link>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link)
57+
element
58+

packages/react-router/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ export {
210210
PrefetchPageLinks,
211211
} from "./lib/dom/ssr/components";
212212
export type {
213+
LinksProps,
213214
ScriptsProps,
214215
PrefetchBehavior,
215216
DiscoverBehavior,

0 commit comments

Comments
 (0)