【文件属性】:
文件名称:next-typography:以最简单的方式将Typography.js样式添加到Next JS应用程序中
文件大小:117KB
文件格式:ZIP
更新时间:2021-02-10 07:13:02
TypeScript
以最简单的方式将样式添加到您的应用程序中。
入门
yarn add next-typography
pages/_app.jsx
import NextTypography from " next-typography " ;
import typography from " my/typography/setup " ;
function MyApp ({ Component , pageProps }) {
return (
<>
< NextTypography xss=removed>
< Component>
< / >
);
}
加载Google字体
您也可以通过此组件加载Google字体。 通过googleFontLoading属性提供了3种字体加载
【文件预览】:
next-typography-master
----yarn.lock(298KB)
----src()
--------index.tsx(2KB)
----README.md(1KB)
----renovate.json(54B)
----.gitignore(17B)
----CHANGELOG.md(519B)
----package.json(1KB)