Skip to content

Commit f4d9f79

Browse files
authored
docs: use CodeGroup in hono/nextjs TS libraries (#3708)
* Update hono.mdx * Update nextjs.mdx
1 parent 70784fa commit f4d9f79

File tree

2 files changed

+33
-25
lines changed

2 files changed

+33
-25
lines changed

apps/docs/libraries/ts/hono.mdx

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,24 @@ description: "Hono.js middleware for authenticating API keys"
1515

1616
## Install
1717

18-
<Tabs>
19-
<Tab title="npm">```bash npm install @unkey/hono ```</Tab>
20-
<Tab title="pnpm">```bash pnpm add @unkey/hono ```</Tab>
21-
<Tab title="yarn">```bash yarn add @unkey/hono ```</Tab>
22-
<Tab title="bun">```bash bun install @unkey/hono ```</Tab>
23-
</Tabs>
18+
<CodeGroup>
19+
20+
```bash npm
21+
npm install @unkey/hono
22+
```
23+
24+
```bash pnpm
25+
pnpm add @unkey/hono
26+
```
27+
28+
```bash yarn
29+
yarn add @unkey/hono
30+
```
31+
32+
```bash bun
33+
bun install @unkey/hono
34+
```
35+
</CodeGroup>
2436

2537
Let's dive straight in. The minimal setup looks like this. All you need is your api id. Go to [/app/api](https://app.unkey.com/apis), select your API and copy the id.
2638

apps/docs/libraries/ts/nextjs.mdx

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,24 @@ The official Next.js SDK for Unkey. Use this within your [route handlers](https:
1111

1212
## Install
1313

14-
<Tabs>
15-
<Tab title="npm">
16-
```bash
14+
<CodeGroup>
15+
16+
```bash npm
1717
npm install @unkey/nextjs
18-
```
19-
</Tab>
20-
<Tab title="pnpm">
21-
```bash
18+
```
19+
20+
```bash pnpm
2221
pnpm add @unkey/nextjs
23-
```
24-
</Tab>
25-
<Tab title="yarn">
26-
```bash
22+
```
23+
24+
```bash yarn
2725
yarn add @unkey/nextjs
28-
```
29-
</Tab>
30-
<Tab title="bun">
31-
```bash
32-
bun install @unkey/nextjs
33-
```
34-
</Tab>
35-
</Tabs>
26+
```
27+
28+
```bash bun
29+
bun install @unkey/nextjs
30+
```
31+
</CodeGroup>
3632

3733
Protecting API routes is as simple as wrapping them with the `withUnkey` handler:
3834

0 commit comments

Comments
 (0)