Open-source React library
Swiss design
for React.
98
Components
12
Grid columns
4
National languages
2.2
WCAG AA target
A precise grid, expressive type and accessible controls. With QR-bill, AHV and cantons built in.
Real interfaces
Not a gallery of buttons. This invoice dashboard is one copyable block: filter the period, search a client, sort the CHF column.
Studio accounts
Sep 2026 – Nov 2026
Invoice totals
CHF 11’830.00
- Paid
- CHF 8’530.00
- Outstanding
- CHF 3’300.00
Data table
| Month | Invoiced |
|---|---|
| Sep 2026 | CHF 3’600.00 |
| Oct 2026 | CHF 2’520.00 |
| Nov 2026 | CHF 5’710.00 |
Invoice register
5 matching invoices
| Invoice | Client | Issued | Status | Amount |
|---|---|---|---|---|
| A-2619 | Maison des éditions | Open | CHF 2’460.00 | |
| A-2618 | Archiv für Gestaltung | Paid | CHF 3’250.00 | |
| A-2617 | Studio Pigna | Paid | CHF 1’680.00 | |
| A-2616 | Papeterie du Lac | Open | CHF 840.00 | |
| A-2615 | Studio Pigna | Paid | CHF 3’600.00 |
Built for Switzerland
Inputs that know AHV check digits, Swiss IBANs and every postcode. Type 1003 or 6900: the town, the canton and its next public holidays follow, in four national languages.
Read the Swiss guide →AhvInput →CantonSelect →Prüfung
- AHV-Nummer
- Unvollständig
- IBAN
- Gültig
- Ort
- 3011 Bern · BE
Nächste Feiertage · BE
- Weihnachten
- Stephanstag
- Neujahr
A real QR-bill
One component draws the SIX payment part and receipt in millimetres, with a QR code banking apps can scan. Change the amount and watch the code change.
<SwissQrBill bill={bill} />
- Betrag
- CHF 197.58
- Zahlbar an
- Atelier Nord
- Konto
- CH58 0079 1123 0008 8901 2
- Referenz
- RF18 5390 0754 7034
Empfangsschein
- Konto / Zahlbar an
- CH58 0079 1123 0008 8901 2Atelier NordRue du Lac 82000 Neuchâtel
- Referenz
- RF18 5390 0754 7034
- Zahlbar durch
- Clara MeierAarbergergasse 73011 Bern
- Währung
- CHF
- Betrag
- 197.58
Zahlteil
- Währung
- CHF
- Betrag
- 197.58
- Konto / Zahlbar an
- CH58 0079 1123 0008 8901 2Atelier NordRue du Lac 82000 Neuchâtel
- Referenz
- RF18 5390 0754 7034
- Zusätzliche Informationen
- Invoice AN-104
- Zahlbar durch
- Clara MeierAarbergergasse 73011 Bern
Zahlungsangaben lesen
- Konto / Zahlbar an
- CH58 0079 1123 0008 8901 2Atelier NordRue du Lac 82000 Neuchâtel
- Referenz
- RF18 5390 0754 7034
- Zusätzliche Informationen
- Invoice AN-104
- Zahlbar durch
- Clara MeierAarbergergasse 73011 Bern
- Währung
- CHF
- Betrag
- 197.58
Payable: CHF 197.58. The QR code changes as you type.
The grid
Four, eight or twelve columns. Follow one edge from the time to the title, then switch off the guides.
Explore Grid →Public programme / March
Open studio
10.00
Letterpress demonstration
14.00
Type design workshop
Made to be relied on
The details that usually come last are built in from the first component.
AA
WCAG 2.2 target
Keyboard paths, visible focus and labelled controls. Every page is checked with axe at 360 and 1280 pixels.
Read the principles →2
Themes
Light and dark from the same tokens, chosen by the system or by the reader, with one red accent.
Build a theme →4
National languages
Messages, dates, cantons and holidays in German, French, Italian and Romansh.
Read the Swiss guide →0
Runtime dependencies
React and React DOM are the only peers. Typed ESM, plain CSS and editable source you can copy with the CLI.
Copy source with the CLI →From shadcn/ui
Set an edition label in both forms. The same React handler runs behind each set of controls.
Open the migration guide →| shadcn/ui | Alpina UI |
|---|---|
| label + Input | Field + Input |
| Button | Button |
| grid gap-4 | Stack gap={4} |
| output | Typography as="output" |
shadcn/ui
"use client"
import { useState } from "react"
import { Button } from "@/components/ui/button"
import { Input } from "@/components/ui/input"
export function EditionLabel() {
const [proof, setProof] = useState("Studio proofs")
return <form className="grid gap-4" onSubmit={event => {
event.preventDefault()
setProof(String(new FormData(event.currentTarget).get("edition")).trim() || "Untitled")
}}>
<label className="grid gap-2 text-sm font-medium">
Edition name
<Input name="edition" defaultValue="Studio proofs" />
</label>
<Button type="submit" className="justify-self-start">Set label</Button>
<output className="text-sm" aria-live="polite">Label: {proof}</output>
</form>
}Alpina UI
"use client"
import { useState } from "react"
import { Button, Field, Input, Stack, Typography } from "alpina-ui"
import "alpina-ui/styles.css"
export function EditionLabel() {
const [proof, setProof] = useState("Studio proofs")
return <Stack asChild gap={4}>
<form onSubmit={event => {
event.preventDefault()
setProof(String(new FormData(event.currentTarget).get("edition")).trim() || "Untitled")
}}>
<Field label="Edition name">{field =>
<Input {...field} name="edition" defaultValue="Studio proofs" />}</Field>
<Stack align="start"><Button type="submit">Set label</Button></Stack>
<Typography as="output" aria-live="polite">Label: {proof}</Typography>
</form>
</Stack>
}Ready for AI agents
Give your coding assistant the Alpina rules in one command. A read-only MCP server lets it search components, read source and follow the guides offline.
Set up agent tools →Read llms.txt →1 · Install the skill
npx skills add stedbrown/alpina-ui --skill alpina-ui2 · Connect the MCP server
{
"mcpServers": {
"alpina-ui": {
"command": "node",
"args": [
"/absolute/path/to/project/node_modules/alpina-ui/cli/alpina.mjs",
"mcp"
]
}
}
}Install in 30 seconds
Install from npm in any React 18 or 19 project. Import alpina-ui/styles.css once in the application entry point, then use any component.
Read the setup guide →npm install alpina-ui@nextnpm install alpina-ui@next