Getting started

Native PQDesign dialog showing the updated target of 310 K.

Install

Use Node.js 20+ and a React project with CSS bundling:

npm install react@19 react-dom@19 lucide-react@0.468 \
  "https://github.com/MolarVerse/PQDesign/releases/download/v0.1.3/molarverse-pq-design-0.1.3.tgz"

Commit package.json and package-lock.json; reinstall with npm ci.

Render a control

Put <div id="root"></div> in the HTML and this in the client entry point:

import { useState } from "react";
import { createRoot } from "react-dom/client";
import { Field } from "@molarverse/pq-design";
import "@molarverse/pq-design/styles.css";

function TemperatureControl() {
  const [temperature, setTemperature] = useState("300");

  return (
    <Field label="Target" unit="K">
      <input type="number" min="0" value={temperature}
        onChange={(event) => setTemperature(event.target.value)} />
    </Field>
  );
}

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

Field connects the label to its input. State and numeric validation stay in the application. Import application CSS after styles.css.

Existing controls and documentation

Import tokens.css for your own controls. It supplies variables without global component selectors. For manuals, load that versioned token copy before docs/_static/pq-docs.css. The shared adapter maps Furo variables on body and retains Furo’s dark palette. See Reference for the mapping and gallery reproduction.