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

tailwindcss-aria-plugin

v0.1.6

Published

tailwindcss and aria attributes variants

Downloads

25

Readme

Tailwindcss Aria Plugin

A plugin that provides aria label variants that can apply utilities when aria-label existed.

Installation

Install the plugin from npm:

  npm install -D tailwindcss-aria-plugin

Then add the plugin to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require("tailwind-aria-plugin"),
    // ...
  ],
};

Usage

<!-- aria-[name]-[value] -->
<input type="checkbox" id="chk1-label" class="aria-checked:bg-blue-500" />
<label for="chk1-label">Remember my preferences</label>

Widget Attributes

aria-autocomplete

MDN Test

  • none: aria-autocomplete-none
  • inline: aria-autocomplete-inline
  • list: aria-autocomplete-list
  • both: aria-autocomplete-both

aria-checked

MDN Test

  • true: aria-checked
  • false: aria-!checked
  • mixed: aria-checked-mixed

aria-disabled

MDN Test

  • true: aria-disabled
  • false: aria-!disabled

aria-errormessage

MDN Test

  • id: aria-errormessage

aria-expanded

MDN Test

  • true: aria-expanded
  • false: aria-!expanded

aria-haspopup

MDN Test

  • true: aria-haspopup
  • false: aria-!haspopup
  • menu: aria-haspopup-menu
  • listbox: aria-haspopup-listbox
  • tree: aria-haspopup-tree
  • grid: aria-haspopup-grid
  • dialog: aria-haspopup-dialog

aria-hidden

MDN Test

  • true: aria-hidden
  • false: aria-!hidden

aria-invalid

MDN Test

  • true: aria-invalid
  • false: aria-!invalid
  • grammar: aria-invalid-grammar
  • spelling: aria-invalid-spelling

aria-label

MDN Test

  • <string>: aria-label

aria-level

MDN Test

  • <integer>: aria-level

aria-modal

MDN Test

  • true: aria-modal
  • false: aria-!modal

aria-multiline

MDN Test

  • true: aria-multiline
  • false: aria-!multiline

aria-multiselectable

MDN Test

  • true: aria-multiselectable
  • false: aria-!multiselectable

aria-orientation

MDN Test

  • horizontal: aria-orientation-horizontal
  • vertical: aria-orientation-vertical

aria-placeholder

MDN Test

  • <string>: aria-placeholder

aria-pressed

MDN Test

  • true: aria-pressed
  • false: aria-!pressed
  • mixed: aria-pressed-mixed

aria-readonly

MDN Test

  • true: aria-readonly
  • false: aria-!readonly

aria-required

MDN Test

  • true: aria-required
  • false: aria-!required

aria-selected

MDN Test

  • true: aria-selected
  • false: aria-!selected

aria-sort

MDN Test

  • none: aria-sort-none
  • ascending: aria-sort-ascending
  • descending: aria-sort-descending
  • other: aria-sort-other

aria-valuemax

MDN Test

  • <number>: aria-valuemax

aria-valuemin

MDN Test

  • <number>: aria-valuemin

aria-valuenow

MDN Test

  • <number>: aria-valuenow

aria-valuetext

MDN Test

  • <string>: aria-valuetext