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.
| CLM-1042 | Nimal Perera | Travel | 28 Nov 2026 | LKR 4,850.00 | Submitted |
| CLM-1041 | Ayesha Fernando | Meals | 27 Nov 2026 | LKR 3,200.00 | Approved |
| CLM-1040 | Kasun Silva | Tools & equipment | 27 Nov 2026 | LKR 18,900.00 | Submitted |
| CLM-1039 | Dilini Jayawardena | Training | 25 Nov 2026 | LKR 22,500.00 | Paid |
| CLM-1038 | Ravi Kumar | Accommodation | 24 Nov 2026 | LKR 15,600.00 | Returned |
| CLM-1037 | Sachini Wickramasinghe | Phone & data | 22 Nov 2026 | LKR 1,500.00 | Paid |
| CLM-1036 | Mohamed Rizwan | Travel | 21 Nov 2026 | LKR 6,750.00 | Approved |
| CLM-1035 | Tharindu Bandara | Meals | 20 Nov 2026 | LKR 2,100.00 | Draft |
| CLM-1034 | Nadeesha Gunasekara | Office supplies | 19 Nov 2026 | LKR 3,450.00 | Paid |
| CLM-1033 | Chamara Rathnayake | Medical | 18 Nov 2026 | LKR 5,200.00 | Submitted |
| CLM-1032 | Ishara Madushani | Accommodation | 15 Nov 2026 | LKR 12,800.00 | Approved |
| CLM-1031 | Pradeep Senanayake | Travel | 14 Nov 2026 | LKR 9,300.00 | Paid |
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.
2 claims match
| CLM-1038 | Ravi Kumar | Accommodation | 24 Nov 2026 | LKR 15,600.00 | Returned |
| CLM-1031 | Pradeep Senanayake | Travel | 14 Nov 2026 | LKR 9,300.00 | Paid |
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.
- Submitted
- Checked
- Approved
- Paid
- 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.
<VigourProvider theme={{
accent: "#0ea5e9",
radius: 10,
density: "comfortable",
}}>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.
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

