"ALWAYS use when writing code importing \"reka-ui\". Consult for debugging, best practices, or modifying reka-ui, reka ui."
Resources
1Install
npx skillscat add harlan-zw/vue-ecosystem-skills/reka-ui-skilld Install via the SkillsCat registry.
unovue/reka-ui reka-ui
Version: 2.8.0 (Jan 2026)
Deps: @floating-ui/dom@^1.6.13, @floating-ui/vue@^1.1.6, @internationalized/date@^3.5.0, @internationalized/number@^3.5.0, @tanstack/vue-virtual@^3.12.0, @vueuse/core@^14.1.0, @vueuse/shared@^14.1.0, aria-hidden@^1.2.4, defu@^6.1.4, ohash@^2.0.11
Tags: latest: 2.8.0 (Jan 2026)
References: Docs — API reference, guides • GitHub Issues — bugs, workarounds, edge cases • GitHub Discussions — Q&A, patterns, recipes • Releases — changelog, breaking changes, new APIs
API Changes
This section documents version-specific API changes — prioritize recent major/minor releases.
BREAKING:
radix-vuerenamed toreka-ui— CSS variables now use--reka-prefix and data attributes usedata-reka-sourceBREAKING:
Comboboxrefactor —filter-functionprop removed;searchTermanddisplayValueprops moved from Root toComboboxInputsourceBREAKING:
Checkbox,Toggle,MenuCheckboxItem— bindings changed fromv-model:checkedorv-model:pressedto standardv-modelsourceBREAKING:
DatePicker/Calendar—weekStartsOnis now locale-independent as of v2.8.0 sourceBREAKING:
Presence—forceMountnow renders components regardless of active state; manual visibility handling (e.g.:hidden) is required sourceBREAKING:
Pagination—itemsPerPageprop is now required rather than having a default value sourceNEW:
Ratingcomponent — added for star/rating input interactions in v2.8.0 sourceNEW:
TimeFieldcomponent — new primitive for localized time inputs introduced in v2.0.0 sourceNEW:
useFilter()— locale-aware string filtering utility (startsWith, endsWith, contains) added in v2.0.0 sourceNEW:
useLocale()/useDirection()— utility hooks for accessing the current configuration context sourceNEW:
ScrollAreaglimpse mode — addedScrollAreaScrollbarGlimpsefor transient scrollbar visibility sourceNEW:
SelectdisableOutsidePointerEvents— prop added toSelectContentto control interaction with outside elements sourceNEW:
ConfigProvider— global configuration component for locale, direction, anduseIdsettings sourceNEW:
NumberFieldenhancements — addedfocusOnChange,readonly, andstepSnappingprops source
Also changed: Popover/Dialog programmatic close · Combobox openOnFocus props · Slider thumbAlignment prop · Toast disableSwipe prop · ContextMenu pressOpenDelay prop · Presence component exposed · calendar getWeekNumber utility · injectContext exposed · Collapsible/Accordion unmountOnHide prop
Best Practices
- Use the
asChildprop to compose Reka's functionality onto your own Vue components or alternative DOM elements while maintaining accessibility source
<TooltipTrigger asChild>
<MyButton>Hover me</MyButton>
</TooltipTrigger>- Utilize
useForwardPropsEmitswhen building wrapper components to automatically forward all props and emits to the underlying Reka primitive source
const props = defineProps<AccordionRootProps>()
const emits = defineEmits<AccordionRootEmits>()
const forwarded = useForwardPropsEmits(props, emits)
// Usage: <AccordionRoot v-bind="forwarded">- Wrap your application with
ConfigProviderto manage global reading direction (RTL) and prevent layout shifts during scroll locking source
<ConfigProvider dir="rtl" :scroll-body="false">
<App />
</ConfigProvider>- Apply
useForwardExposein components with multiple root nodes (fragments) to ensure that template refs correctly return the target DOM element source
const { forwardRef } = useForwardExpose()
// Usage: <div :ref="forwardRef">...</div>- Implement
ComboboxVirtualizerorListboxVirtualizerfor large datasets to improve performance, ensuring the parent container has a fixed height source
<ComboboxViewport class="max-h-80 overflow-y-auto">
<ComboboxVirtualizer :options="items" :estimate-size="25" v-slot="{ option }">
<ComboboxItem :value="option">{{ option.label }}</ComboboxItem>
</ComboboxVirtualizer>
</ComboboxViewport>Use
injectXContextfunctions (e.g.,injectAccordionRootContext) to access internal primitive state for advanced custom child components sourceStyle component states by targeting
data-stateattributes (e.g.,open,closed,active) instead of manually toggling classes source
/* Preferred way to style open state */
.AccordionItem[data-state="open"] {
border-bottom-width: 2px;
}Use the
:deep()selector when styling teleported components (Dialog, Popover, Tooltip) within scoped Vue styles to reach the body-appended elements sourceEnable
force-mounton content parts when using JavaScript animation libraries or Vue<Transition>to delegate unmounting control to the library source
<Transition name="fade">
<DialogContent force-mount>...</DialogContent>
</Transition>- Prefer Vue 3.5 native
useId()over the Reka UI utility for stable SSR identifiers, as the library utility is deprecated for newer Vue versions source