0.1.2 • Published 3 years ago

@openmindlabs/react-rift-core v0.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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
NameTypeDefaultDescription
visibleBooleanfalseWhether or not spinner is showing
darkBooleanfalseTurn 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:

NameTypeDefaultDescription
visibleBooleanfalseWhether or not spinner is showing
truncate

The following are the accepted parameters:

NameTypeDefaultDescription
visibleBooleanfalseWhether 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