JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q53957F
  • License MIT

An elegant and minimalist Next.js 14 component library

Package Exports

  • nexpi-ui
  • nexpi-ui/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nexpi-ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Get Started

nexpi

Npm

npm install nexpi-ui

Import, in layout.tsx

import Theme from "nexpi-ui/lib/Theme";

....

const rootLayout = ({ ...props }: LayoutProps) => {
  return (
    <html lang="en">
      <head>
        <meta charSet="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      </head>
      <body >
        <Theme>
          {props.children}
        </Theme>
      </body>

    </html>
  );
}

Manual

First things first, let's grab the package from the repository:

git clone https://github.com/dukesaturn/nexpi-UI

Next, you'll want to insert the components folder into the app folder of you app.

Import, in layout.tsx

import Theme from "./components/Theme";


....

const rootLayout = ({ ...props }: LayoutProps) => {
  return (
    <html lang="en">
      <head>
        <meta charSet="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      </head>
      <body >
        <Theme>
          {props.children}
        </Theme>
      </body>

    </html>
  );
}
 

Now, it's time to dive in and have some fun with it! Buon divertimento!

Dependencies:

  • react-icons (^5.2.1): A comprehensive library of icons for React.
  • react-syntax-highlighter (^15.5.0): Syntax highlighting component for React.
  • rehype-katex (^7.0.0): A plugin for rehype to support LaTeX math syntax in HTML.
  • remark-math (^6.0.0): A remark plugin to support LaTeX math syntax in Markdown.
  • next-themes (^0.3.0)
  • react-markdown (^9.0.1)