From cdc16d3db89e5bea21518b3d425deba258e8b821 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Thu, 28 Dec 2023 21:01:28 +0800 Subject: [PATCH] docs: add README.md --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d018263 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# @ant-design/nextjs-registry + +This package is used for registry styles of Ant Design components for Next.js. + +## Install + +```bash +npm install @ant-design/nextjs-registry --save +``` + +## Usage + +Should be use in `RootLayout` of Nextjs app router. + +```tsx +// app/layout.tsx + +import React from 'react'; +import { AntdRegistry } from '@ant-design/nextjs-registry'; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + +
+