0.2.0 • Published 4 years ago

@roboholix/shared-components v0.2.0

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

Roboholix - Shared Components - :robot: :beers: :robot:

GitHub issues maintained npm bundle size node-current vulnerabilities

A set of React components used to build the Roboholix robotics streaming platform.

PlatformCI Status
LinuxLinux Build Status
OSXOSX Build Status
WindowsWindows Build status

Documentation (Live Demo)

See a live demo of the components and their respective documentation used at Roboholix.com.

The demo component browser includes:

  • Rendered example components that are included in this library
  • Code snippets used to generate the example components
  • Component prop options, including default values and requirements

npm.io

Installation

npm install @roboholix/shared-components

Components

See the component browser demo for up-to-date documentation and examples using latest version of @roboholix/shared-components.

  • ArcadeButton
  • ArcadeButtons
  • Button
  • DirectionalPad
  • GameInterface
  • LoadingSpinner
  • Logo
  • Overlay
  • VideoFeed

Useage

Importing Individual Components

Choose one of the following ways to import or require a component into your project.

:point_right: Examples marked for production use will only import code needed for the specified component

Module SyntaxExample CodeProductionDevelopment
importimport ArcadeButton from '@roboholix/shared-components/ArcadeButton';
importimport { ArcadeButton } from '@roboholix/shared-components';
requireconst ArcadeButton = require('@roboholix/shared-components/ArcadeButton');
requireconst ArcadeButton = require('@roboholix/shared-components').ArcadeButton;

Importing Multiple Components

// To only import code you need, you can import each individual component on their own
import ArcadeButtons from '@roboholix/shared-components/ArcadeButton';
import DirectionalPad from '@roboholix/shared-components/DirectionalPad';

:warning: The following syntax will import the entire library (an additional ~5kb), instead of only code needed only for the components specified

// Add ArcadeButtons and DirectionalPad to your project with ES module syntax
import { ArcadeButtons, DirectionalPad } from '@roboholix/shared-components';
// Add ArcadeButtons and DirectionalPad to your project with CommonJS syntax
const RoboholixComponents = require('@roboholix/shared-components');

const ArcadeButton = RoboholixComponents.ArcadeButton;
const DirectionalPad = RoboholixComponents.DirectionalPad;
const RoboholixComponents = require('@roboholix/shared-components');

const {
  ArcadeButton,
  DirectionalPad
} = RoboholixComponents;

Bug Reporting

Click here to report any bugs or open an issue with this package.

0.2.0

4 years ago

0.1.19

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0-alpha.19

4 years ago

0.1.0-alpha.18

4 years ago

0.1.0-alpha.17

4 years ago

0.1.0-alpha.12

4 years ago

0.1.0-alpha.13

4 years ago

0.1.0-alpha.16

4 years ago

0.1.0-alpha.15

4 years ago

0.1.0-alpha.11

4 years ago

0.1.0-alpha.10

4 years ago

0.1.0-alpha.9

4 years ago

0.1.0-alpha.8

4 years ago

0.1.0-alpha.7

4 years ago

0.1.0-alpha.6

4 years ago

0.1.0-alpha.5

4 years ago

0.1.0-alpha.3

4 years ago

0.1.0-alpha.2

4 years ago

0.1.0-alpha.1

4 years ago

0.1.0

4 years ago