@patternfly-test/react-console
v0.3.0
Published
This library provides a set of Console React components for use with the PatternFly reference implementation.
Downloads
18
Readme
@patternfly-react/console
This package provides VncConsole and SerialConsole React components to be used alongside patternfly-react.
The below commands are temporary and will be replaced once this repo starts using Lerna.
Installing
yarn add @patternfly-react/console
or
npm install @patternfly-react/console --save
Usage
import { VncConsole, SerialConsole } from '@patternfly-react/console'
Styling:
Example with LESS:
@import "~bootstrap/less/variables";
@import "~patternfly/dist/less/variables";
@import "~patternfly-react/dist/less/patternfly-react.less";
@import "~xterm/dist/xterm.css";
@import "~@patternfly-react/console/dist/less/console.less";
Building
yarn build
Note the build scripts for this are located in the root package.json under build:console:*
.
Testing
Testing is done at the root of this repo. To only run the console tests:
yarn test packages/console
Publishing
yarn publish