mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-01 16:44:24 +00:00
docs(www): Missing import statement (#1877)
Added missing import statement in fonts example in Next.js installation docs
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user