Socket
Book a DemoInstallSign in
Socket

pusher-ui

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pusher-ui

> A UI component library for Pusher web apps. Built with React.

latest
npmnpm
Version
0.1.13
Version published
Maintainers
1
Created
Source

Pusher UI · Build Status Coverage

A UI component library for Pusher web apps. Built with React.

Please note that this library is in a pre-alpha stage; do not use it.

Pusher UI as a dependency

Install

As per usual (you can also use NPM):

yarn add pusher-ui

You may need to add the project's peer dependencies as well:

yarn add glamor glamorous highlight.js polished prop-types react react-dom react-motion react-router@3 react-syntax-highlighter

These dependencies are required by the project but are expected to be provided in your project for deduplication.

Usage

In a React entry file (as a simple example):

import { render } from 'react-dom';
import { ThemeProvider } from 'glamorous';
import { Button, theme } from 'pusher-ui';

render((
  <ThemeProvider theme={theme}>
    <Button primary>Hello!</Button>
  </ThemeProvider>
), document.getElementById('container'));

You should now see a button rendered in the container. Note that in a real scenario, the <ThemeProvider> component would wrap your application as one of the outermost containers.

Pusher UI development

Install

git clone git@github.com:pusher/pusher-ui.git
cd pusher-ui
yarn

Building the library

yarn build

Development server

yarn start

FAQs

Package last updated on 01 May 2018

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