Skip to content

Commit

Permalink
fix bad type in docs (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Apr 20, 2022
1 parent a892511 commit 4123068
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website/src/pages/skip-nav.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ Renders a link that remains hidden until focused to skip to the main content.

#### SkipNavLink Props

| Prop | Type | Required | Default |
| -------------------------------------- | ------- | -------- | ---------------- |
| [`a` props](#skipnavlink-anchor-props) | Cool | | n/a |
| [`contentId`](#skipnavlink-contentid) | `string`| false | 'reach-skip-nav' |
| [`children`](#skipnavlink-children) | `node` | false | n/a |
| Prop | Type | Required | Default |
| -------------------------------------- | -------- | -------- | ---------------- |
| [`a` props](#skipnavlink-anchor-props) | | | n/a |
| [`contentId`](#skipnavlink-contentid) | `string` | false | 'reach-skip-nav' |
| [`children`](#skipnavlink-children) | `node` | false | n/a |

##### SkipNavLink anchor props

Element props are spread to the underlying link.

#### SkipNavLink `contentId`

You can pass an id that connects the skip link to the element where it should link to. You can use this instead of using `SkipNavContent`. For example:
You can pass an id that connects the skip link to the element where it should link to. You can use this instead of using `SkipNavContent`. For example:

```jsx
<SkipNavLink contentId="main" />
Expand Down

0 comments on commit 4123068

Please sign in to comment.