npm.io
2.0.1 • Published yesterday

@neptune.fintech/react-ui

Licence
SEE LICENSE IN LICENSE
Version
2.0.1
Deps
2
Size
20 kB
Vulns
0
Weekly
0

@neptune.fintech/react-ui

React layer for Neptune Odyssey by Neptune.Fintech — typed component wrappers, a <NeptuneProvider>, and a useNeptuneTheme hook over the framework-agnostic @neptune.fintech/web-ui custom-element core.

Source-available under the Neptune Odyssey Community License v1.0 (see LICENSE).

Install

pnpm add @neptune.fintech/react-ui react

The npt-* tags are standards-based custom elements — React 18.3+ / 19 forwards unknown props straight through to attributes, so no compiler or bundler config is needed.

Use

import "@neptune.fintech/react-ui/styles.css";
import { NeptuneProvider, NptBalanceCard, NptButton } from "@neptune.fintech/react-ui";

export function App() {
  return (
    <NeptuneProvider theme="triton" mode="system" dir="auto">
      <NptBalanceCard hero label="Available balance" amount="12,480.50" currency="LYD" />
      <NptButton variant="filled">New transfer</NptButton>
    </NeptuneProvider>
  );
}

theme accepts a reference brand id, a config object, or a brandprint string — the same surface as every other Neptune Odyssey framework layer. mode is light|dark|system; dir is ltr|rtl|auto. Same brandprint ⇒ same theme, on every platform.

Theme any subtree with the hook
import { useNeptuneTheme } from "@neptune.fintech/react-ui";

function Statement() {
  const ref = useNeptuneTheme("NO1-AYB4AKKeeABWDBIaIiw4B_YBAAABAQEBAQAAyA", { mode: "dark" });
  return <section ref={ref}></section>;
}

2026 Neptune.Fintech. The bundled example brands are reference illustrations only.