reka-ui

📁 aksuharun/skills 📅 6 days ago
3
总安装量
3
周安装量
#57567
全站排名
安装命令
npx skills add https://github.com/aksuharun/skills --skill reka-ui

Agent 安装分布

opencode 3
antigravity 3
github-copilot 3
codex 3
kimi-cli 3
gemini-cli 3

Skill 文档

Reka UI

Unstyled, accessibility-first Vue.js component library. Zero styles, WAI-ARIA compliant, keyboard navigation, and focus management built in.

npm install reka-ui

Core Patterns

Anatomy: Root → Trigger → Portal → Content. Import named parts from reka-ui. Namespaced: import { Dialog } from 'reka-ui/namespaced' → <Dialog.Root>, <Dialog.Trigger>, etc.

Styling: Target data-state, data-side, data-align, data-disabled, data-highlighted. CSS: .Item[data-state="open"] {}. Tailwind: data-[state=open]:border-b-2. Teleported elements (portals) need :deep() in scoped styles.

asChild: Merges behavior onto the child element instead of rendering the default element. Use to render a custom element or compose multiple primitives.

State: Uncontrolled = default-value prop. Controlled = v-model (or :model-value + @update:model-value).

Animation: CSS keyframes on data-state (Reka suspends unmount during exit), Vue <Transition>, or Motion Vue (motion-v) with AnimatePresence.

Nuxt: modules: ['reka-ui/nuxt'] — auto-imports all components.

RTL: <ConfigProvider dir="rtl"> wraps the app.

Dates: Install @internationalized/date. v-model on calendar/date components accepts DateValue objects.

Virtualization: *Virtualizer components for large lists. Requires fixed-height parent, estimateSize, textContent props. Filter items manually before passing.

References

Read only the file relevant to the current task.

  • references/components-a-l.md — Anatomy, data attributes, CSS variables, and key notes for components Accordion through Listbox.

  • references/components-m-z.md — Anatomy, data attributes, CSS variables, and key notes for components Menubar through Tree.

  • references/guides.md — Styling, composition (asChild), animation, controlled state, dates, i18n/RTL, SSR, virtualization, namespaced imports, inject context, migration guide.

  • references/utilities.md — Primitive, Slot, ConfigProvider, VisuallyHidden, Presence, FocusScope, and composables (useForwardPropsEmits, useFilter, useDateFormatter, etc.).