Skip to content

Commit 2bea637

Browse files
committed
chore: add react router and tanstack usage
1 parent 534b2ca commit 2bea637

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

docs/components/api-keys.mdx

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ All props are optional.
4646

4747
The following example includes a basic implementation of the `<APIKeys />` component. You can use this as a starting point for your own implementation.
4848

49-
<Tabs items={["Next.js", "React"]}>
49+
<Tabs items={["Next.js", "React", "React Router", "TanStack React Start"]}>
5050
<Tab>
5151
```tsx {{ filename: 'app/api-keys/page.tsx' }}
5252
import { APIKeys } from '@clerk/nextjs'
@@ -66,6 +66,31 @@ The following example includes a basic implementation of the `<APIKeys />` compo
6666
}
6767
```
6868
</Tab>
69+
70+
<Tab>
71+
```tsx {{ filename: 'app/routes/api-keys.tsx' }}
72+
import { APIKeys } from '@clerk/react-router'
73+
74+
export default function APIKeysPage() {
75+
return <APIKeys />
76+
}
77+
```
78+
</Tab>
79+
80+
<Tab>
81+
```tsx {{ filename: 'src/routes/api-keys.tsx' }}
82+
import { APIKeys } from '@clerk/tanstack-react-start'
83+
import { createFileRoute } from '@tanstack/react-router'
84+
85+
export const Route = createFileRoute('/api-keys')({
86+
component: APIKeysPage,
87+
})
88+
89+
function APIKeysPage() {
90+
return <SignIn />
91+
}
92+
```
93+
</Tab>
6994
</Tabs>
7095

7196
<If sdk="js-frontend">

0 commit comments

Comments
 (0)