Skip to content

Vigour Components developer preview is on npm

Install @vigour-platforms/ui: free, MIT-licensed React components for business apps, with Select, date pickers, phone input and toasts. Next.js and Vite.

The first developer preview of Vigour Components is published on npm. These are the React components behind Vigour Platforms ERP, packaged so you can use them in your own business apps. They are free and open source under the MIT licence.

npm install @vigour-platforms/ui@next

Two packages

PackageWhat it contains
@vigour-platforms/uiThe React components, the provider and the helpers for environment settings
@vigour-platforms/tokensDesign tokens as CSS variables, a Tailwind CSS v4 theme and colour helpers

Installing ui installs tokens too. React 18.3 or 19 is the only peer dependency.

What's in the preview

  • Select: single or multiple choice, search, server search that is debounced and cancellable, groups, "add new", "select all" and native form submission.
  • Date pickers: Calendar, DatePicker and DateRangePicker. Type a date or pick it, with range presets such as "Last 7 days", minimum and maximum dates, and disabled days. Forms receive an ISO date.
  • Phone input: a country list with Sri Lanka as the default, formatting as you type, and an E.164 value such as +94771234567, with validity reported to your code.
  • Everyday inputs: Button, Input, Textarea (grows with its text, with a character count), Checkbox, CheckboxGroup, RadioGroup and Switch.
  • Feedback: toast() with actions such as "Undo", Skeleton loading placeholders, Spinner and Kbd.

Every component works without configuration. Add the stylesheet and use it:

import "@vigour-platforms/ui/styles.css";
import { DatePicker, PhoneInput, Select } from "@vigour-platforms/ui";

<Select label="Category" options={categories} isSearchable isClearable />
<DatePicker name="date" label="Claim date" max={new Date()} />
<PhoneInput name="phone" label="Mobile" />

Your brand from one colour

Out of the box the components use the Vigour theme. Pass any colour to the provider and the whole palette is generated for it. The primary shade is chosen automatically so that button text keeps at least 4.5:1 contrast, in light and dark mode.

<VigourProvider theme={{ brand: "#0ea5e9", density: "compact" }}>{children}</VigourProvider>

Using Tailwind CSS v4? Import @vigour-platforms/tokens/theme.css and classes like bg-brand-500 match the components.

Built to be changed, not forked

Styles live in CSS cascade layers, so a plain class in your own CSS wins without !important. Beyond that you can set props, global defaults in the provider, slot class names, render props, an unstyled mode, and a headless useSelect hook for your own markup. Read Customise React components without forking them for the full list.

Accessible and server-friendly

  • Components follow the WAI-ARIA patterns for comboboxes, date grids, switches and live regions, and every one is tested with axe-core and keyboard tests.
  • They render on the server in the Next.js App Router. Settings come from your own NEXT_PUBLIC_VIGOUR_* or VITE_VIGOUR_* variables; the package never ships API keys and warns if a secret-looking value is made public.

What's next

The next releases add a range slider, overlays (modal, menu, popover), navigation and layout screens, and then the data table, filter engine and dynamic forms. Pro components and Vigour Flow follow later.

Try the live demos, read the install guide, and tell us what you build. Questions and bug reports are welcome through our contact page.