An open-source UI component library for building high-quality, accessible design systems and web apps for Vue. Previously Radix Vue
Craft accessible web apps with Vue.
Documentation | Getting Started | Examples | Why Reka UI?
pnpm add reka-ui
npm install reka-ui
yarn add reka-ui
For full documentation, visit reka-ui.com.
For changelog, visit releases.
We would love to have your contributions! All PRs are welcome! We need help building the core components, docs, tests, stories! Join our discord and we will get you up and running!
pnpm ipnpm build to run build reka-ui locallypnpm docs:dev to run vitepresshttp://localhost:5173pnpm ipnpm story:dev to run histoire (storybook)http://localhost:6006pnpm test to test changesReka UI is free and open source, made possible by our sponsors. If your company or product depends on Reka UI (directly, or through Nuxt UI, shadcn-vue and others), please consider sponsoring through Open Collective (invoices available) or GitHub Sponsors.
All credits go to these open-source works and resources
No good first issue or help wanted issues are currently available.
Thanks for your interest in improving Reka UI! This guide covers everything you need to get a local checkout running, find your way around the monorepo, and open a pull request that fits the project's conventions.
We would love your contributions — PRs for core components, docs, tests, and stories are all welcome. The best place to ask questions or pair up is our Discord: chat.unovue.com. Bugs and feature requests belong in the issue tracker.
By participating you agree to abide by our Code of Conduct.
This is a pnpm monorepo. The pieces you are most likely to touch:
| Path | What it is |
|---|---|
packages/core | The published reka-ui package. All components and composables live in src/. |
packages/plugins | Build-tool integration (auto-import resolver, Nuxt module). |
docs/ | The VitePress documentation site (its own workspace — install separately). |
playground/ | Local sandboxes for trying things out. |
.histoire/ | Histoire setup for the component stories. |
Inside packages/core/src/:
Accordion/, Dialog/,
Checkbox/ … through the date pickers).shared/ — shared composables (createContext, useForwardExpose, the
prop/emit forwarding helpers, typeahead, selection, etc.).date/ — date/calendar utilities used by the date-family components.Prerequisites: Node ≥ 22 and pnpm 12 (the repo pins pnpm@12.26.0 via the
packageManager field). Use any method from the
pnpm installation guide. If you rely on
Corepack, it needs version 0.35 or
later: the one bundled with Node 22 is older and cannot start pnpm 12.
git clone https://github.com/unovue/reka-ui.git
cd reka-ui
pnpm i
Recommended dev loops, depending on what you're working on:
pnpm story:dev opens Histoire with the
component stories.pnpm --filter reka-ui exec vitest <path>
runs that file in watch mode.pnpm --filter reka-ui watch rebuilds
the package on change so a linked app sees your edits.All commands run from the repo root.
| Task | Command |
|---|---|
| Install | pnpm i |
| Build core | pnpm --filter reka-ui build (vue-tsc type-check + tsdown bundle) |
| Watch build | pnpm --filter reka-ui watch |
| Type-check only | pnpm --filter reka-ui type-check |
| Tests (watch) | pnpm test |
| Tests (one-shot) | pnpm --filter reka-ui exec vitest run [path] |
| Test coverage | pnpm --filter reka-ui test:coverage |
| Browser tests | pnpm test:browser |
| Lint / auto-fix | pnpm lint / pnpm lint:fix |
| Stories | pnpm story:dev |
| Docs dev | pnpm --filter reka-ui build && pnpm docs:install && pnpm docs:dev |
| Docs API regen | pnpm docs:gen (regenerates docs/content/meta/*.md) |
| Bundle size | pnpm --filter reka-ui size |
| Published package (exports, types, Node load) | pnpm build && pnpm package:check |
pnpm testis watch mode. For a one-shot run (CI-style) usepnpm --filter reka-ui exec vitest run.- The docs site needs
packages/core/distto exist —docs/.vitepress/config.tsimportsreka-ui/dist/constant.jsthrough the workspace link. On a fresh checkout runpnpm --filter reka-ui buildfirst, orpnpm docs:devfails withCannot find module … /dist/constant.js.
A few patterns recur in every component family — learn them once and the rest of
the codebase reads the same way. packages/core/src/Checkbox/ is a small,
complete example to read alongside this section.
<Family><Part>.vue — CheckboxRoot.vue, CheckboxIndicator.vue,
DialogRoot.vue, DialogContent.vue, and so on. Each family has an
index.ts re-exporting its parts and prop types, and every family is
re-exported from packages/core/src/index.ts (the public surface).createContext('<ComponentName>') (see
packages/core/src/shared/createContext.ts). It returns
[injectContext, provideContext] around a typed InjectionKey: the
*Root.vue calls the provide function, descendants call inject.Primitive
(packages/core/src/Primitive) which implements the as / asChild props
(asChild merges props onto the consumer's own element instead of rendering
a wrapper). Expose template refs with useForwardExpose(), and forward
props/emits with useForwardProps, useEmitAsProps, or
useForwardPropsEmits from src/shared/.<Name>.test.ts inside each family
(e.g. packages/core/src/Checkbox/Checkbox.test.ts).@testing-library/vue
and @vue/test-utils for mounting, and vitest-axe for accessibility
assertions: expect(await axe(el)).toHaveNoViolations().scrollIntoView, a patched getComputedStyle that
axe relies on) are handled globally in packages/core/vitest.setup.ts — you
don't need to repeat that per test.<Name>.browser.test.ts, also colocated) run in headless
Chromium through Vitest browser mode and Playwright. Use them for behaviour
jsdom cannot represent: native focus order (Tab), form submission, the
default action of a key press, and layout or positioning. Drive them with
userEvent from `vite