0.1.1 • Published 3 years ago

@designsystemdev/gqio.generic-components v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

generic-components

A collection of generic web components with a focus on:

  • 🚹 Accessibility
  • 🏗 Easy to use
  • 🎨 Easy to style

Goal

The goal of this project is to create a common library of generic web components, that are accessible, framework agnostic, easy to style, and easy to consume.

All components in these repo extend from HTMLElement and dont use any libraries or framework.

You can think of these components like using a native <button> element, you get all the functionality, and accessibility, keyboard navigation, etc., for free, you just have to style the button to your liking.

You can use these components to build an app, or compose them and build your own components with them.

Usage

Via NPM

Components can be installed via NPM:

npm i --save @generic-components/components

And imported in your code via ES imports:

import '@generic-components/components/switch.js';

Via CDN

Alternatively you can load the components from a CDN and drop them in your HTML file as a script tag

<script src="https://unpkg.com/@generic-components/components@1.0.0/switch.js" type="module"></script>
<generic-switch></generic-switch>

Collection

ComponentDemoSpecStatus
generic-accordiondemoWAI-ARIA Practices
generic-alertdemoWAI-ARIA Practices
generic-dialogdemoWAI-ARIA Practices
generic-disclosuredemoWAI-ARIA Practices
generic-listboxdemoWAI-ARIA Practices
generic-radiodemoWAI-ARIA Practices
generic-skiplinkdemoWebAIM
generic-switchdemoWAI-ARIA Practices
generic-tabsdemoWAI-ARIA Practices
generic-visually-hiddendemoWebAIM
0.1.1

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago