0.1.2 • Published 3 years ago
@openmindlabs/react-rift-core v0.1.2
Open Mind Labs React Rift
A simple component library for React JS
Install
npm install --save @openmindlabs/react-rift-core
Components Documentation
Currently only has one component supported.
Spinner (3 Vertical Dots) Usage
Implemented a new dark mode loader through a prop switch
import React from "react";
import { Spinner } from "@openmindlabs/react-rift-core";
const Example = () => {
return <Spinner visible={true} />;
};
Props for Spinner Component
Name | Type | Default | Description |
---|---|---|---|
visible | Boolean | false | Whether or not spinner is showing |
dark | Boolean | false | Turn dark mode on or off |
Helper Functions Documentation
React-Rift-Core has a few helper functions. Get ready to use them by importing
import { truncate } from "@openmindlabs/react-rift-core";
truncate
The following are the accepted parameters:
Name | Type | Default | Description |
---|---|---|---|
visible | Boolean | false | Whether or not spinner is showing |
truncate
The following are the accepted parameters:
Name | Type | Default | Description |
---|---|---|---|
visible | Boolean | false | Whether or not spinner is showing |
Maintainers
- Charles Mutale - (https://github.com/apollo90)
Versioning
We follow Semver
License
This project is licensed under the MIT License - see the LICENSE.md file for details