mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This PR is similar to PR #46460, but applies the patch to all our codemods.
31 lines
759 B
TypeScript
31 lines
759 B
TypeScript
// @ts-nocheck
|
|
/* eslint-disable */
|
|
import { Oswald } from "@next/font/google";
|
|
import localFont1 from "@next/font/local";
|
|
import type { AdjustFontFallback } from "@next/font"
|
|
|
|
const oswald = Oswald({ subsets: ["latin"] });
|
|
const myFont = localFont1({
|
|
src: "./my-font.woff2",
|
|
});
|
|
|
|
import { Inter } from "next/font/google";
|
|
import localFont2 from "next/font/local";
|
|
|
|
const inter = Inter({ subsets: ["latin"] });
|
|
const myOtherFont = localFont2({
|
|
src: "./my-other-font.woff2",
|
|
});
|
|
|
|
export default function WithFonts() {
|
|
return (
|
|
<>
|
|
<p className={oswald.className}>oswald</p>
|
|
<p className={myFont.className}>myFont</p>
|
|
|
|
<p className={inter.className}>inter</p>
|
|
<p className={myOtherFont.className}>myOtherFont</p>
|
|
</>
|
|
);
|
|
}
|