Open source · npm
Accessible React components, checked by tests
Open-source React component library: 8 accessible components, partly built on React Aria, and a virtualized DataTable that follows the ARIA grid pattern. 137 unit tests and 46 story tests with axe, a public Storybook, and releases to npm with Changesets.
- Stack
- React, TypeScript, React Aria, Storybook
Why build it
Sen UI is my open-source React component library, published on npm as @ductmofficial/sen-ui. I started it in October 2026 and released 0.5.0 on 11 November 2026. This site and Notch use it in production, so every change is tried in real apps before it is released.
The goal was narrow on purpose: a small set of components that are accessible by default, with the checks automated so they cannot be skipped.
The stack: React 19, TypeScript, React Aria Components, TanStack Virtual, CSS Modules, Vite library mode, Storybook, Vitest and Changesets.
What is in it
- Eight components: Button, TextField, Checkbox, Tooltip, Tabs, Dialog, Select and ComboBox. The interactive ones wrap React Aria Components, which handle keyboard interaction, focus and ARIA; Sen UI adds the styles. Button and TextField are plain React.
- A DataTable, written from scratch for large lists.
- Design tokens (
--sen-*) for a light and a dark theme, shipped as CSS and as a Tailwind CSS v4 theme. Component styles live in@layer sen, so an app can override them without fighting specificity.

DataTable: a grid you can use with a keyboard
The DataTable follows the ARIA grid pattern. It has one tab stop; arrow keys move between cells, Home and End go to the ends of a row, Ctrl+Home and Ctrl+End to the first and last cell, and PageUp and PageDown move by a screen. Enter or Space on a header cycles the sort, and with selection, Space selects a row and Ctrl+A selects them all.
Only the visible rows are rendered, through TanStack Virtual. aria-rowcount and aria-rowindex give assistive technology the full size of the list, not just the rows in the DOM. Sorting and filtering run on the client, or the app passes manual and does them on the server.


Accessibility is a test, not a review
- Every story is a test. The Storybook Vitest addon renders all 46 stories in headless Chromium and runs axe on each. Dark stories pin the theme, so contrast is checked in both. Any violation fails the pull request.
- 137 unit tests in jsdom, with Testing Library queries by role and
user-event, so the tests use the components the way a keyboard or screen reader user does. - Token tests check that both themes define the same colours and meet WCAG AA contrast.
- A manual pass with VoiceOver before
0.5.0, because automated checks do not catch everything.
Shipped like a real package
Pull requests that change the library add a changeset. Merging the version pull request publishes to npm through trusted publishing (OIDC, no stored token) with provenance, and publint checks the package in CI. Storybook is rebuilt and deployed to GitHub Pages on every push to main.
Each component is measured alone from the published build, so the cost of an import is known before an app adds it:
| Import | Gzipped |
|---|---|
Button | 0.3 kB |
TextField | 0.6 kB |
Dialog | 22.9 kB |
DataTable | 32.0 kB |
| Everything | 101.7 kB |
Live: Storybook · npm · source on GitHub.