Skip to content

ant-design/nextjs-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 18, 2024
774964f · Nov 18, 2024

History

16 Commits
Dec 28, 2023
Nov 18, 2024
May 22, 2024
Dec 28, 2023
Dec 28, 2023
Dec 28, 2023
Dec 28, 2023
Dec 28, 2023
Dec 28, 2023
Dec 28, 2023
Nov 18, 2024
Nov 18, 2024
Dec 28, 2023

Repository files navigation

@ant-design/nextjs-registry

NPM version npm download bundle size

This package is used for registry styles of Ant Design components for Next.js.

Install

npm install @ant-design/nextjs-registry --save

Usage

Should be use in RootLayout of Nextjs app router.

// 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>
  );
}