GitHubnpm

Installation

Guide

Install nexious-library from npm, import the stylesheet once, and confirm the peer dependencies.

#Install

Add the package with your preferred manager:

bash
npm i nexious-library
bash
yarn add nexious-library
bash
pnpm add nexious-library

#Import the stylesheet

Import the compiled stylesheet once in your app entry (e.g. main.tsx). Without it, components render unstyled.

main.tsx
import "nexious-library/@index.css";

#Peer dependencies

React 18+ is a required peer dependency. FontAwesome is optional. You only need it if you opt into the extended icon adapter.

#Required

PropTypeDefaultDescription
reactrequired>=18.0.0-React runtime.
react-domrequired>=18.0.0-React DOM renderer.

Install the FontAwesome peers only when you register the extended icon set (see Icon System):

bash
npm i @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons @fortawesome/free-brands-svg-icons @fortawesome/react-fontawesome

#Dev diagnostics

In development the library warns about misuse (missing required props, unregistered icon keys) and renders a small inline error in place of a broken component. These are gated on process.env.NODE_ENV !== "production" and stripped from production builds. If you do not see them in dev under Vite, add a define:

vite.config.ts
export default defineConfig(({ mode }) => ({
  define: { "process.env.NODE_ENV": JSON.stringify(mode) },
}));