next.js/test/e2e/next-font/app/components/CompWithFonts.js
CompWithFonts.js28 lines566 B
import { Inter, Roboto } from 'next/font/google'
const inter = Inter({
  weight: '900',
  display: 'swap',
  preload: false,
  subsets: ['latin'],
})
const roboto = Roboto({
  weight: '100',
  style: 'italic',
  display: 'swap',
  preload: true,
  subsets: ['vietnamese'],
})

export default function Component() {
  return (
    <>
      <div id="comp-with-fonts-inter" className={inter.className}>
        {JSON.stringify(inter)}
      </div>
      <div id="comp-with-fonts-roboto" style={roboto.style}>
        {JSON.stringify(roboto)}
      </div>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN