npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

accessible-vue-components

v0.1.5

Published

A set of Accessible, easy to use, Front-end UI Components for Vue 3.

Downloads

16

Readme

Accessible Vue Components

A set of Accessible, easy to use, Front-end UI Components for Vue 3. Most of these components are used in the Accessible Vue Starter which showcases practical use cases for them. As a bonus, the starter also has its own dedicated components (like a keyboard accessible and responsive navigation) and other utilities provided by Tailwind CSS.

NOTE: This package is still in it's early stages of development, it's NOT recommended to start using it in production yet! This project is inspired by the Accessible Astro Components and will be developed in the same way, but for Vue.

Installation

Run the following command in your project folder to get started:

npm install accessible-vue-components

Usage

You need to install the components as a plugin in your Vue app. You can do this by adding the following code to your main.js file:

import { createApp } from 'vue'
import App from './App.vue'

// register accessible components as a plugin and import styles
import components from 'accessible-vue-components'
import 'accessible-vue-components/dist/style.css'

const app = createApp(App)
app.use(components)
app.mount('#app')

Skip to: SkipLinks

SkipLinks

SkipLinks provide a way for users using assistive technologies to skip repeated content on pages to go directly to the main content of a website or application. To use this component properly, make sure you give the main content of your project an id of #main-content so the SkipLink can target it. As a fallback the SkipLink will try to target the h1 of the page. If neither are found a warning will be logged to the console.

Some (accessibility) features of the SkipLinks:

  • Let's assistive technologies skip to the main navigation and main content of a website

Example

<template>
  <header>
    <SkipLinks />
  </header>
</template>

Overwriting styles

You can apply your own styles by overwriting the specificity of the default styles. For example, to change the color of the SkipLinks you can use the following CSS:

<style>
  header .avc-skiplinks a {
    color: white;
    background-color: purple;
  }

  header .avc-skiplinks a:hover,
  header .avc-skiplinks a:focus {
    background-color: indigo;
  }
</style>

Other accessible projects by Mark Teekman

Helping out

If you find that something isn't working right then I'm always happy to hear it to improve these components! You can contribute in many ways and forms. Let me know by either:

  1. Filing an issue
  2. Submitting a pull request
  3. Starting a discussion
  4. Buying me a coffee!

Thank you!

A big thank you to the creators of Vue and to all using these components and the information to make the web a bit more accessible for all people around the world :) Also a big thanks to creators around the web for providing us with information about how to build accessible web interfaces, such as Zell Liew from Learn JavaScript Today and Heydon Pickering, the author of Inclusive Components and many more.

buymeacoffee-button