Socket
Book a DemoInstallSign in
Socket

@pantheon-systems/nextjs-kit

Package Overview
Dependencies
Maintainers
7
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pantheon-systems/nextjs-kit

Pantheon Decoupled Kit's Nextjs Kit

Source
npmnpm
Version
0.1.1-canary.0
Version published
Weekly downloads
2.7K
47.58%
Maintainers
7
Weekly downloads
 
Created
Source

Pantheon Systems Next.js Kit

The @pantheon-systems/nextjs-kit is a collection of utilities and Next.js components for use in a Pantheon Decoupled Site built with Next.js.

Installation

To install this package to use in your application:

npm install @pantheon-systems/nextjs-kit

Usage

@pantheon-systems/nextjs-kit is available as an ES or UMD module. The ES module includes submodules. Components use default exports while utilities use named exports. If using ES Modules import the submodules directly. Otherwise, all imports will be from @pantheon-systems/nextjs-kit

To import a component:

// ES Modules
import Component from '@pantheon-systems/nextjs-kit/component';
// UMD
import Component from '@pantheon-systems/nextjs-kit';

To import a helper utility:

// ES Modules
import { utility } from '@pantheon-systems/nextjs-kit/utility';
// UMD
import { utility } from '@pantheon-systems/nextjs-kit';

Contributing

  • Components should be created in the src/components folder and should include a default export.
  • Utilities for use in a Next.js app should be created in the src/lib directory and should include named AND default exports.
  • Utilities for use in this Library that are not exposed as part of the API should be created in the utils directory
  • There are multiple entry points for building the library. Follow the established pattern to maintain proper code splitting and module resolution.

Please see the Contributing guide in our monorepo to contribute to the project.

FAQs

Package last updated on 30 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts