0.1.1 • Published 4 years ago

ftrprf-component v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

FTRPRF-components

The goal of this project is to bundle frequently used components into the same package. This package is automagically synced with this npm package when merged into the master branch: https://www.npmjs.com/package/@codefever/ftrprf-components.

Usage

Import the package as you would for any npm-package:

  1. yarn add @codefever/ftrprf-components
  2. import { Component } from '@codefever/ftrprf-components'

Guidelines for contributing

When adding components, please follow following guidelines:

  • If you want to style the component, make sure the default classes are included in this package, and these can be overwritten with the use of another css class. This class can be added in the 'css class' column in the 'Components' section of this README.
    • Add a prefix to these classes. You can add prefixes with the addPrefix function in the utils folder.

Components

Componentdescriptioncss class
ContextMenuA contextmenu that keeps track of the mouse location in the window.CF_ContextMenu

Tests

Currently, no tests are written for the components. However, it is encouraged to write tests for the components.