Quick Start
Install HareUI and render your first Button in minutes.
Requirements
Quick Install
Install HareUI:
npm i @hareui/vuepnpm add @hareui/vueyarn add @hareui/vuebun add @hareui/vueImport Styles
Add to your main CSS file:
@import "tailwindcss";
@import "@hareui/vue";Import order matters. Always import tailwindcss first.
Register Plugin (Optional)
HareUI components work without any setup. Install the plugin only if you want to override themes globally with createHareUI:
import { createApp } from 'vue'
import { createHareUI } from '@hareui/vue'
import App from './App.vue'
import './style.css'
createApp(App)
.use(createHareUI())
.mount('#app')Use Components
<script setup lang="ts">
import { Button } from '@hareui/vue'
</script>
<template>
<Button>My Button</Button>
</template>What's Next?
- Design Principles - Understand HareUI's naming and API conventions
- Browse Components - See available components
- Learn Styling - Customize with Tailwind CSS
- Explore Composition - Master slots and the
asprop