Halleyx UI Framework
Halleyx UI Framework is a comprehensive Vue 3 component library designed to streamline web development by providing a collection of over 40 flexible, modular, and customizable components. Currently at version 11.7.68, it emphasizes developer-centric design, allowing both frontend and backend developers to integrate visually stunning projects with ease, without compromising independence or personalization. The framework is built from scratch, ensuring a consistent design system. While a specific release cadence isn't published, the frequent updates to the npm package suggest active development. Key differentiators include its focus on accessibility, theming capabilities, responsiveness, and performance, aiming to make programming less tedious through readily available and adaptable UI elements.
Common errors
-
Failed to resolve component: <hx-button>
cause The Halleyx UI Framework plugin (HalleyxUI) was not registered with the Vue application, or the component was not explicitly imported.fixEnsure `app.use(HalleyxUI)` is called in your `main.js` or `main.ts` file after `createApp(App)`. If opting for explicit imports for tree-shaking, import individual components like `import { HxButton } from 'halleyx-ui-framework'`. -
Module not found: Error: Can't resolve 'halleyx-ui-framework/dist/es/index.css'
cause The path to the global CSS file is incorrect, or the file does not exist at the specified location due to a build issue or version difference.fixVerify the exact import path for the CSS as specified in the official quickstart documentation. Ensure your build tooling is configured to handle CSS imports correctly. The common path is `halleyx-ui-framework/dist/es/index.css`.
Warnings
- gotcha Halleyx UI Framework is built specifically for Vue 3. Ensure your project is running Vue 3.2.21 or higher, as indicated by its peer dependency. Using it with Vue 2 will result in compatibility errors.
- gotcha While the npm package `halleyx-ui-framework` shows very recent activity (version 11.7.68 published 19 hours ago), the primary GitHub repository `halleyx-com/Halleyx-UI-Framework` indicates its last commit was in June 2023. This discrepancy might suggest that core development or detailed commit history is not always reflected publicly or that releases are infrequent despite continuous maintenance.
- gotcha Like many UI frameworks, Halleyx UI Framework includes global styles. These styles might conflict with existing global CSS or other UI libraries in your project. Be mindful of CSS specificity and potential style overrides.
Install
-
npm install halleyx-ui-framework -
yarn add halleyx-ui-framework -
pnpm add halleyx-ui-framework
Imports
- HalleyxUI
import { HalleyxUI } from 'halleyx-ui-framework'import HalleyxUI from 'halleyx-ui-framework'
- HxButton
import HxButton from 'halleyx-ui-framework/components/HxButton'
import { HxButton } from 'halleyx-ui-framework' - styles
import 'halleyx-ui-framework/dist/index.css'
import 'halleyx-ui-framework/dist/es/index.css'
Quickstart
import { createApp } from 'vue';
import App from './App.vue';
import HalleyxUI from 'halleyx-ui-framework';
import 'halleyx-ui-framework/dist/es/index.css'; // Import global styles
const app = createApp(App);
app.use(HalleyxUI); // Register the Halleyx UI Framework as a Vue plugin
app.mount('#app');
// In App.vue (or any other Vue component):
// <template>
// <div id="app">
// <hx-button variant="primary" @click="showAlert">Click Me</hx-button>
// <hx-alert v-if="show" variant="info">Hello from Halleyx UI!</hx-alert>
// </div>
// </template>
// <script setup>
// import { ref } from 'vue';
// // HxButton and HxAlert are globally available after app.use(HalleyxUI)
// // If you prefer explicit imports for tree-shaking:
// // import { HxButton, HxAlert } from 'halleyx-ui-framework';
// const show = ref(false);
// const showAlert = () => {
// show.value = !show.value;
// };
// </script>
// <style>
// /* Your component-specific styles */
// </style>