Skip to main content

Installation

Niom Parts supports React 18 and React 19.

npm install niom-parts

Styles​

The package entry includes the compiled styles automatically. A normal component import is enough:

src/main.tsx
import React from "react";
import ReactDOM from "react-dom/client";
import { Button } from "niom-parts";
import App from "./App";

ReactDOM.createRoot(document.getElementById("root")!).render(<App />);

For CSS-only tooling or a build pipeline that expects an explicit stylesheet, these optional paths all resolve to the same file:

import "niom-parts/style.css";
import "niom-parts/css";
import "niom-parts/css/index.css";

The same optional stylesheet can be loaded from a CSS file:

@import "niom-parts/style.css";

Requirements​

PackageSupported version
React^18.0.0 or ^19.0.0
React DOM^18.0.0 or ^19.0.0
Node.js for development^20.19.0 or >=22.12.0