@rh-uxd/appservices-patternfly-crossconsole
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

React UXD Integration Component Library

rh-uxd

This package provides react componets for use with Redhat integration products. This library contains a set of common components that are used across the integration product line. The library is built on top of react implementation of Patternfly.

Installation

npm install @rh-uxd/appservices-patternfly-crossconsole --save

or

yarn add @rh-uxd/appservices-patternfly-crossconsole

Building the library

Once install developers can use the components that are available by importing them into their projects. For example

import React from 'react'
import {CrossNavHeader, CrossNavApp} from '@rh-uxd/integration';
...

const apps: CrossNavApp[] = [
    {id: 'first-demo-app', name: 'First Demo App', url:'localhost:3000', isHttp: true},
    {id: 'second-demo-app', name: 'Second Demo App', url:'localhost:3001', isHttp: true}];        
const Header = (
    <CrossNavHeader
        apps={apps}
        currentApp = {{id: 'first-demo-app', name: 'First Demo App', url:'localhost:3000', isHttp: true}}
        logo={<Brand src={imgBrand} alt="Patternfly Logo" />}
        toolbar={PageToolbar}
        avatar={<Avatar src={imgAvatar} alt="Avatar image" />}
        showNavToggle
    />
...

Readme

Keywords

none

Package Sidebar

Install

npm i @rh-uxd/appservices-patternfly-crossconsole

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

10.8 MB

Total Files

54

Last publish

Collaborators

  • mfrances
  • dlabaj