@hareui/vue

HareUI — Vue 3 port of HeroUI v3
693
Install
npm install @hareui/vue
Latest Version:0.2.0
Vue:3
License:MIT
Last Updated:Oct 21, 2026
Links: npm
Maintainer: alexzvn

Documentation License npm version

HareUI

Documentation: hareui.alexzvn.me

HareUI is a Vue 3 port of HeroUI v3. It pairs the accessible primitives of Reka UI with the utility-first styling of Tailwind CSS v4, and keeps HeroUI's design, tokens and component API.

  • Accessible by default: keyboard, focus and screen-reader behavior come from Reka UI
  • Tailwind CSS v4: no CSS-in-JS runtime, themeable through CSS variables
  • Same look as HeroUI: styles and tokens are translated from HeroUI v3
  • Slot-based composition: Vue slots and the as prop instead of deeply nested props
  • Zero boilerplate: components work without a plugin or provider

Getting Started

Requirements: Vue 3.5+ and Tailwind CSS v4.

npm i @hareui/vue

Add the styles to your main CSS file, after Tailwind:

@import "tailwindcss";
@import "@hareui/vue";

Use components:

<script setup lang="ts">
import { Button } from '@hareui/vue'
</script>

<template>
  <Button>My Button</Button>
</template>

Vite plugin (optional)

@hareui/vue/vite auto-imports components in templates (through unplugin-vue-components) and applies app-wide theme overrides at build time:

// vite.config.ts
import hareui from '@hareui/vue/vite'

export default defineConfig({
  plugins: [
    vue(),
    tailwindcss(),
    hareui({
      prefix: 'H', // <HButton> / <h-button>; default '' keeps <Button>
      ui: { button: { slots: { base: 'uppercase' }, defaultVariants: { size: 'lg' } } },
    }),
  ],
})
  • prefix: template prefix for HareUI components. Kebab-case ('h-') is accepted.
  • ui: same shape as createHareUI({ ui }); must be JSON-serializable. createHareUI({ ui }), variant props, :ui and class still override it.
  • components: options forwarded to unplugin-vue-components (dts, dirs, extra resolvers, …), or false to turn auto import off.

Already registering unplugin-vue-components yourself? Add HareUIResolver({ prefix }) from @hareui/vue/vite to its resolvers instead.

Documentation

Visit hareui.alexzvn.me for theming, dark mode, styling, composition and every component. AI tools can read the docs as llms.txt or llms-full.txt.

Contributing

Issues and pull requests are welcome at github.com/alexzvn/hareui.

License

MIT. Styles, tokens and icons are derived from HeroUI; see THIRD_PARTY_LICENSES.md.

Related Packages

@misaki-mei/heroui-vue

Beautiful and modern Vue 3 UI library built with Tailwind CSS 4.0

0 1
helorui

Vue3 components library

5,855 0
@auronui/vue

Vue 3 90+ components with full visual and functional parity

9,553 2
lampent-ui

Biblioteca de componentes Vue 3 com Tailwind CSS

136

Version History

Version Released Vue License
0.2.0 ^3.5.0 MIT
0.1.3 ^3.5.0 MIT
0.1.2 ^3.5.0 MIT
0.1.1 ^3.5.0 MIT
0.1.0 ^3.5.0 MIT