Installation
GuideInstall nexious-library from npm, import the stylesheet once, and confirm the peer dependencies.
#Install
Add the package with your preferred manager:
npm i nexious-libraryyarn add nexious-librarypnpm add nexious-library#Import the stylesheet
Import the compiled stylesheet once in your app entry (e.g. main.tsx). Without it, components render unstyled.
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
| Prop | Type | Default | Description |
|---|---|---|---|
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):
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:
export default defineConfig(({ mode }) => ({
define: { "process.env.NODE_ENV": JSON.stringify(mode) },
}));