Skip to content
/ be-a11y Public

Be a11y is a collection of useful accessible components such as tabs, accordion, modal dialog...

License

Notifications You must be signed in to change notification settings

BeAPI/be-a11y

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3b67a4a · Dec 17, 2024
Nov 29, 2022
Dec 17, 2024
Dec 17, 2024
Sep 3, 2021
Jan 3, 2024
Oct 10, 2024
Jun 19, 2022
Dec 17, 2024
Apr 24, 2021
Nov 21, 2023
Jun 29, 2023
Jun 6, 2023
Dec 17, 2024
Jan 3, 2024
Dec 17, 2024
Nov 20, 2023
Sep 15, 2022
Nov 20, 2023

Repository files navigation

Be API Github Banner

Be a11y

Maintenance

This repository contains a collection of useful accessible components such as tabs, accordion, modal dialog...

Installation

Start by installing the package.

pnpm add @beapi/be-a11y # or npm install @beapi/be-a11y --save or yarn add @beapi/be-a11y

Then, import in your JavaScript file the component you need.

import { Accordion } from '@beapi/be-a11y';

Accordion.init('#my-accordion', {
    allowMultiple: true,
});

For more details about components, check the documentations:

Want to contribute?

Project works with Vite ⚡ and Playwright 🎭.

Development

pnpm # Install dependencies

pnpm dev # Start development server

Build

In examples directory you can find sample of components. First of all you have to build the JS with the following command.

pnpm build

Then, you can launch a local server.

pnpm preview

Test your code

You can run UI tests with the following command.

pnpm test