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

1.1.2 • Public • Published

@aelf-design/nextjs-registry

This package is used for registry styles of aelf-design components for Next.js.

Install

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

Usage

Should be use in RootLayout of Nextjs app router.

// app/layout.tsx

import React from 'react';
import { AelfdRegistry } from '@aelf-design/nextjs-registry';

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en">
      <body>
        <AelfdRegistry>{children}</AelfdRegistry>
      </body>
    </html>
  );
}

Package Sidebar

Install

npm i @aelf-design/nextjs-registry

Weekly Downloads

6

Version

1.1.2

License

none

Unpacked Size

5.05 kB

Total Files

10

Last publish

Collaborators

  • peterbai
  • aelf-lxy
  • curryzhao