Accessible React components and page blocks for Philippine government websites.
Made for BetterGov Region Davao: in English, Filipino and Bisaya, light on slow phones, ready for citizen services.
Quick start · What's inside · Guides · Toolkit · Contributing
Most UI kits are general-purpose. This one is made for one job: public service websites in the Philippines.
- 🏛️ Made for citizen services. Fields for PSGC addresses, +63 mobile numbers, pesos, PhilSys and TIN numbers. Blocks for services, advisories and office hours. Dates in local time and Philippine formats.
- 🗣️ English, Filipino and Bisaya. Every built-in text, including what screen readers say, in all three.
One
LanguageProviderswitches them all. - ♿ Accessible by default. Keyboard support, screen reader labels, real HTML landmarks, a skip link, readable contrast in light and dark mode, and less motion for people who ask for it.
- 📱 Light for slow phones. No dependencies besides React, and under 50 KB gzipped. It uses the browser's own
dialogs and
<details>, which work well on low-cost phones. - ⚡ A page in minutes.
LandingPageand 9 blocks, plus a toolkit to try everything on phone, tablet and desktop, and copy the code.
npm install bettergovregiondavaouiIt needs React 18 or newer, and works with Vite, Next.js and other React setups. It's still early (version 0.x), so read the changelog when you update.
1. Add the styles once, in your app's entry file (for example main.tsx or your root layout):
import "bettergovregiondavaoui/styles.css";2. Give the page the theme's colors, so it matches the components:
body {
margin: 0;
background: var(--surface);
color: var(--text);
}3. Use the components:
import { Button, Container, Heading, MobileNumberInput, Stack, Text } from "bettergovregiondavaoui";
export function SignUp() {
return (
<Container as="main" size="sm">
<form>
<Stack gap="lg">
<Heading level={1}>Create an account</Heading>
<Text muted>It only takes a minute.</Text>
<MobileNumberInput name="mobile" required />
<Button type="submit" fullWidth>Continue</Button>
</Stack>
</form>
</Container>
);
}| Group | Components |
|---|---|
| Typography | Text, Heading, Link, List, Code, Kbd |
| Layout | Scaffold, Container, Stack, Group, Grid, Divider |
| Buttons | Button |
| Forms | Input, PasswordInput, Textarea, Select, Checkbox, Radio, Switch, DateInput, FileUpload, Fieldset |
| Philippine fields | AddressPicker, MobileNumberInput, PesoInput, PhilSysInput, TinInput, GroupedNumberInput |
| Feedback | Alert, Badge, Loader, Progress, Skeleton, StatusChecker, Toast |
| Navigation | Navbar, Tabs, Breadcrumbs, Pagination, Stepper |
| Data display | Table, Accordion, Card, Avatar, Tooltip |
| Overlays | Modal, Drawer |
Some come with parts, like Card with CardTitle and CardFooter. The components guide lists them all.
| Block | What it is |
|---|---|
LandingPage |
A whole page from the blocks below, with a skip link and the <main> landmark |
HeaderBlock · FooterBlock |
The top and bottom of a site; on phones the header's links fold into a ☰ menu |
HeroBlock |
The big opening section, with two buttons and an optional picture |
StatsBlock · FeaturesBlock · NewsBlock |
Numbers, a grid of services, the latest posts |
FaqBlock · ContactBlock · CtaBlock |
Questions and answers, office details with a map, a call to action |
| Guide | What's in it |
|---|---|
| Components | Every component and its parts, the props they share (size, color, variant, as), toasts |
| Forms | Reading values with FormData or state, errors, passwords, prefixes |
| Philippine fields | Mobile numbers, pesos, PhilSys, TIN, SSS, PhilHealth, Pag-IBIG, and the PSGC address picker |
| Blocks | Ready-made sections and LandingPage |
| Page layout | Scaffold and semantic HTML |
| Languages | English, Filipino, Bisaya, and your own wording |
| Theming | Colors, corner radius, spacing and dark mode |
| Accessibility | What's built in, and the few things that are up to you |
| Status checker | Checking if websites are up, and what a browser can't tell |
The toolkit has a page for every component and block. Change the props, preview it as a phone, tablet or desktop, switch between light and dark and between English, Filipino and Bisaya, then copy the code.
git clone https://github.com/ProjectFuritsu/bettergovui.git
cd bettergovui
npm install
npm run devThen open http://localhost:5173.
The toolkit also helps you put a page together:
- Sections: several ready-made versions of each page section (headers, heroes, features, footers…). Copy the code of the one you like.
- Templates: whole landing pages, ready to copy.
- Page builder: mix and match sections into your own page and edit their texts. It is saved in your browser. Share it with Copy share link or Copy JSON; whoever opens the link or pastes the JSON under Import gets their own copy to keep building on. No account or server is involved: the page is only data, so it looks the same for everyone. Copy code gives the page as a React component.
Help is welcome, especially:
- Native speakers of Filipino and Bisaya, to check the translations. They're all in one file,
src/i18n/messages.ts. - Screen reader users, to try the components and tell us what's confusing.
- Bug reports and ideas for components that government services need.
See CONTRIBUTING.md to get started.
CC0 1.0 Universal: dedicated to the public domain. Anyone, including other government offices, may use, change and share this kit, for any purpose, without asking.
