Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nasa-jpl/react-stellar

Package Overview
Dependencies
Maintainers
7
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nasa-jpl/react-stellar

The React implementation of the Stellar Design System

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-15.38%
Maintainers
7
Weekly downloads
 
Created
Source

npm version Language grade: JavaScript

react-stellar

React implementation of the Stellar design system. Written in Typescript and bundled with Rollup, sunshine, and rainbows.

What is Stellar?

  • Stellar is design system for operations tools that enables developers and designers to make use of battle-tested components and focus their efforts on the unique aspects of their applications. Included in this design system are code components, design files and assets, and guidelines for use.
  • Links to Figma
    • Main Figma file: TODO
  • Who uses Stellar?
    • Mars 2020 GDS tools (ASTTRO, COCPIT, Marsviewer, Meeting Tracker, RASCAL, and more)
    • AMMOS (Merlin, others?)
    • Europa Clipper (?)
    • Screenshots would be nice :)
  • Stellar Implementations
    • Base Stellar
    • React

Component Usage and Demos

Demos and documentation for the components can be found here: https://nasa-jpl.github.io/react-stellar/.

Developing Components

  • TODO, storybook, installing node, etc.

Build and Publish Component Library

  1. Set up your NPM credentials TODO
  2. Run npm run build-lib. This will run Rollup on the project and output files to /dist for consumption.

Component Library Storybook GH Pages Deployment

Components are developed and demoed using Storybook. Storybook can be run locally and can be built and deployed to Github Pages for easy viewing by running npm run deploy-storybook.

Component Library Installation

To install the published library follow the steps below. These steps assume you already have NodeJS installed on your machine and that you are installing this library into a React project.

  1. Set up your JPL Artifactory credentials using the instructions above.
  2. Run npm install --save-dev @nasa-jpl/react-stellar in the root of your React application repository.

Importing Stellar Components in React

You can import a Stellar component using the following ES6 syntax:

import { Button } from "@nasa-jpl/react-stellar";

This component can be used like any other React component, e.g.

<Button variant="secondary" onClick={() => console.log("Click")}>
  Text
</Button>

Theming

  • Overriding via class name, css variables, dark/light theme, TODO

FAQs

Package last updated on 09 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc