@ant-design/nextjs-registry
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@ant-design/nextjs-registry

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

/@ant-design/nextjs-registry/

    Package Sidebar

    Install

    npm i @ant-design/nextjs-registry

    Weekly Downloads

    22,612

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    9.65 kB

    Total Files

    10

    Last publish

    Collaborators

    • madccc
    • afc163
    • vthinkxie
    • zombiej
    • chenshuai2144
    • vagusx
    • arvinxx