Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/konnorrogers/role-components
- Owner: KonnorRogers
- Created: 2022-06-27T20:06:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T05:20:30.000Z (7 months ago)
- Last Synced: 2024-05-01T15:26:45.911Z (7 months ago)
- Language: JavaScript
- Homepage: https://role-components.vercel.app
- Size: 1.11 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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");
```