Skip to content

Commit

Permalink
docs: add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc committed Dec 28, 2023
1 parent 5f8a09c commit cdc16d3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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 (
<html lang="en">
<body>
<AntdRegistry>{children}</AntdRegistry>
</body>
</html>
);
}
```

0 comments on commit cdc16d3

Please sign in to comment.