Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/konnorrogers/role-components

Simple role-based components
https://github.com/konnorrogers/role-components

Last synced: 5 days ago
JSON representation

Simple role-based components

Awesome Lists containing this project

README

        

# Purpose

A collection of small reusable components.

## Installation

```
npm install role-components
```

## Documentation

## Usage

```js
// 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");
```