docs(www): Missing import statement (#1877)

Added missing import statement in fonts example in Next.js installation docs
This commit is contained in:
Cole Cline
2023-11-12 00:17:56 -06:00
committed by GitHub
parent 3fccfeb301
commit c82a6fab5f

View File

@@ -45,9 +45,10 @@ Here's how I configure Inter for Next.js:
**1. Import the font in the root layout:**
```js showLineNumbers title=app/layout.tsx {2,4-7,15-16}
```js showLineNumbers title=app/layout.tsx {2,5-8,16-17}
import "@/styles/globals.css"
import { Inter as FontSans } from "next/font/google"
import { cn } from "../@/lib/utils";
export const fontSans = FontSans({
subsets: ["latin"],