role-components
v3.1.0
Published
A variety of simple components that match an aria-role
Downloads
2,130
Readme
Purpose
A collection of small reusable components.
Installation
npm install role-components@beta
Usage
// Register everything
import "role-components";
// Auto-registering
import "role-components/exports/tooltip/tooltip-register.js";
// Manual-Registering
import Tooltip from "role-components/exports/tooltip/tooltip.js";
Tooltip.define();
// Renaming and registering
import Tooltip from "role-components/exports/tooltip/tooltip.js";
Tooltip.define("my-tooltip");