Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dddaccessibility/ariatype

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dddaccessibility/ariatype

Type definitions for WAI-Accessibility.

  • 0.1.4
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@dddaccessibility/ariatype

ariatype package for dddaccessibility

Installation

npm i @dddaccessibility/ariatype
# or
yarn add @dddaccessibility/ariatype
# or
pnpm i @dddaccessibility/ariatype

Usage

import { AriaTypes } from "@ddddaccessibility/ariatype";

const aria: AriaTypes = {
  "aria-atomic": "true",
  role: "alert"
};

Requiring Aria Attributes

A generic type is exported to help enforce requiring specific aria attributes:

import { PartiallyRequiredAriaTypes } from "@ddddaccessibility/ariatype";

const aria: PartiallyRequiredAriaTypes<"aria-atomic" | "role"> = {
  "aria-atomic": "true",
  role: "alert"
};

Types

NameDescription
AriaAttributestyped aria attributes
AriaAttributesDragAndDroptyped drag-and-drop aria attributes
AriaAttributesGlobaltyped global aria attributes
AriaAttributesLiveRegiontyped live region aria attributes
AriaAttributesRelationshiptyped relationship aria attributes
AriaAttributesWidgettyped widget aria attributes
AriaRoletyped aria role
AriaRoleCompositetyped composite aria role
AriaRoleDocumentStructuretyped document structure aria role
AriaRoleLandmarktyped landmark aria role
AriaRoleLiveRegiontyped live region aria role
AriaRoleWidgettyped widget aria role
AriaRoleWindowtyped window aria role



In addition, the following arrays are exported:

NameDescription
ariaAttributesarray of aria attributes
ariaAttributesDragAndDroparray of drag-and-drop aria attributes
ariaAttributesGlobalarray of global aria attributes
ariaAttributesLiveRegionarray of live region attributes
ariaAttributesRelationshiparray of relationship aria attributes
ariaAttributesWidgetarray of widget aria attributes
ariaRolesarray of aria roles
ariaRolesCompositearray of composite aria roles
ariaRolesDocumentStructurearray of document structure aria roles
ariaRolesLandmarkarray of landmark aria roles
ariaRolesLiveRegionarray of live region aria roles
ariaRolesWidgetarray of widget aria roles
ariaRolesWindowarray of window aria roles

Resources

For more resources on WAI-ARIA:

License

This project is licensed under the terms of the MIT license.

Keywords

FAQs

Package last updated on 03 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc