Package detail

aloha-vue

ilia-brykin2.5kMIT2.28.3

Aloha-vue is a JavaScript library that provides a wide range of accessible components and directives for Vue.js. Accessibility is of paramount importance to us, and we have designed all our components to meet accessibility compliance criteria. This librar

accessibility compliance criteria, accessible, Aloha-vue, components

readme

npm (scoped) NPM npm

aloha-vue

Aloha Framework logo


Aloha is a Vue.js-based, highly customizable, internationalized framework for helping developers write code faster and more efficiently, with a special focus on accessibility.

Installation

Aloha-vue can be installed using npm, yarn, or pnpm:

# Using npm
$ npm install aloha-vue

# Using yarn
$ yarn add aloha-vue

# Using pnpm
$ pnpm add aloha-vue

Styles

The styles for aloha-vue are provided in two formats:

  • Precompiled CSS: dist/aloha-vue.css
  • SCSS source: scss/aloha-vue.scss

Example: Adding styles in main.js

import { createApp } from "vue";
import App from "./App.vue";
import "aloha-vue/dist/aloha-vue.css";

const app = createApp(App);
app.mount("#app");

Usage

Example: Importing and using a simple component (AButton)

import { createApp } from "vue";
import App from "./App.vue";
import { AButton } from "aloha-vue";
import "aloha-vue/dist/aloha-vue.css";

const app = createApp(App);

app.component("AButton", AButton);

app.mount("#app");

In your Vue template:

<template>
  <div>
    <a-button @click="onClick">Click Me</a-button>
  </div>
</template>

<script>
export default {
  methods: {
    onClick() {
      alert("Button clicked!");
    },
  },
};
</script>

Development

Documentation

# Serve with hot reloading at localhost:9000
# Requires Node.js v22.12.0
$ cd docs
$ npm i
$ npm run dev

Documentation

The documentation can be found in DOCS. Each component has a dedicated demo page outlining both basic and advanced usage, along with an overview table.

Aloha documentation is available in English, German, Spanish, French, Arabic, Italian, Russian, and Croatian.

Tests

# Start all tests
$ npm run test

# Start one test
$ npm run test src/filters/__tests__/filterList.test.js

Sponsor / Support

PROUNIX

License

aloha-vue is released under the MIT license.