npm.io
0.1.2 • Published 5 years ago

@openmindlabs/react-rift-core

Licence
ISC
Version
0.1.2
Deps
0
Size
49 kB
Vulns
0
Weekly
0

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

Versioning

We follow Semver

License

This project is licensed under the MIT License - see the LICENSE.md file for details