Skip to content

Preview Interactive demos

Try Vigour Components in your browser

Click, type and tab through the components. Every demo works with a keyboard and a screen reader, in light and dark mode.

These previews run in your browser with sample data. Some components shown here, such as the table and the Flow canvas, are not in the npm release yet; their API may change before they ship.

Searchable select

Type to filter, use the arrow keys to move and Enter to choose. Options can show a hint, and the value can be cleared.

Value: {"category":"travel","approver":null}

Try typing “fin” or “field”, then use the arrow keys, Enter and Escape.

Show code
<Select
  label="Category"
  options={categories}
  value={category}
  onChange={setCategory}
  isSearchable
/>

Toasts

Short confirmations that are announced to screen readers, stack neatly and close on their own.

Toasts appear at the bottom right, are announced to screen readers and close on their own.

Show code
const toast = useToast();

toast.success("Claim CLM-1042 approved");
toast.info("Draft saved – you can finish it later");
toast.warning("Receipt is missing – claim returned");

Data table

Sort any column with a click or the keyboard, and search across fields. Table Pro adds virtualisation, saved views and export.

12 of 12
Expense claims (sample data)
CLM-1042Nimal PereraTravel28 Nov 2026LKR 4,850.00Submitted
CLM-1041Ayesha FernandoMeals27 Nov 2026LKR 3,200.00Approved
CLM-1040Kasun SilvaTools & equipment27 Nov 2026LKR 18,900.00Submitted
CLM-1039Dilini JayawardenaTraining25 Nov 2026LKR 22,500.00Paid
CLM-1038Ravi KumarAccommodation24 Nov 2026LKR 15,600.00Returned
CLM-1037Sachini WickramasinghePhone & data22 Nov 2026LKR 1,500.00Paid
CLM-1036Mohamed RizwanTravel21 Nov 2026LKR 6,750.00Approved
CLM-1035Tharindu BandaraMeals20 Nov 2026LKR 2,100.00Draft
CLM-1034Nadeesha GunasekaraOffice supplies19 Nov 2026LKR 3,450.00Paid
CLM-1033Chamara RathnayakeMedical18 Nov 2026LKR 5,200.00Submitted
CLM-1032Ishara MadushaniAccommodation15 Nov 2026LKR 12,800.00Approved
CLM-1031Pradeep SenanayakeTravel14 Nov 2026LKR 9,300.00Paid
Show code
<Table
  data={claims}
  columns={[
    { key: "id", label: "Claim", sortable: true },
    { key: "amount", label: "Amount", sortable: true, format: "currency:LKR" },
    { key: "status", label: "Status", render: (row) => <StatusBadge status={row.status} /> },
  ]}
  searchable
/>

Filter builder

Build “all of” or “any of” rules without writing code. The same filter engine powers saved views in Vigour Platforms ERP.

Show claims that match of these rules

2 claims match

Filtered claims (sample data)
CLM-1038Ravi KumarAccommodation24 Nov 2026LKR 15,600.00Returned
CLM-1031Pradeep SenanayakeTravel14 Nov 2026LKR 9,300.00Paid
Show code
<FilterEngine
  fields={[
    { key: "team", label: "Team", type: "select", options: teams },
    { key: "amount", label: "Amount (LKR)", type: "number" },
  ]}
  value={rules}
  onChange={setRules}
/>

const rows = applyFilters(claims, rules);

Date presets

Ranges like “This quarter” and “Last financial year” follow Sri Lanka's April–March financial year.

Loading presets…

Sri Lanka's financial year runs from 1 April to 31 March. Presets follow it automatically.

Show code
<DateRange
  value={range}
  onChange={setRange}
  presets="fiscal"
  fiscalYearStart={{ month: 4, day: 1 }}
/>

Workflow timeline

Show where an item is in its lifecycle and who did what. Move the claim forward or return it.

  1. Submitted
  2. Checked
  3. Approved
  4. Paid
  1. SubmittedSubmitted by Nimal Perera – Fuel and taxi for the Kandy site visit
Show code
<WorkflowTimeline
  steps={["Submitted", "Checked", "Approved", "Paid"]}
  current={claim.status}
  history={claim.history}
/>

Theme playground

Change the accent, corner radius and density. The components restyle through theme tokens – no component code changes.

Accent colour
<VigourProvider theme={{
  accent: "#0ea5e9",
  radius: 10,
  density: "comfortable",
}}>
ApprovedSubmittedReturned
Show code
<VigourProvider theme={{ accent: "#0ea5e9", radius: 10, density: "comfortable" }}>
  <App />
</VigourProvider>

Vigour Flow canvas

One process, four lenses. Sketch it, tidy it into a diagram, see the logic, then watch live work on the same drawing.

Neat shapes for explaining the process. Drag steps, or focus one and use the arrow keys.

Claim submittedManager approvalFinance checkPay employeeReturn to employee
Show code
<FlowCanvas
  document={claimProcess}
  lens="diagram" // "sketch" | "diagram" | "logic" | "live"
  onChange={saveProcess}
/>

Want these components in your own app?

The free developer preview is on npm: npm install @vigour-platforms/ui@next