Skip to main content

OP Components

One platform component library is a collection of web components which are built using lit-element, each component following the red hat brand guideline. LitElement follows the Web Components standards, so your components will work with any framework.

Guides

Component creation

  1. Go to https://github.com/1-Platform/op-components and fork this repository

  2. Clone the forked repository

git clone git@github.com:1-Platform/op-components.git
  1. Install Packages
npm i
  1. To create a new package run
npm run new
  1. Alternatively to run a component
npm run dev <component-name>
  1. OP-Styles

Which includes the common style, which can be used in other components. Documentation Link

Quick Start Guide

To Use the component from the library go packages into GitHub Repo or its corresponding npm package.

All of the packages are published on npmjs

The usage for all of the components is mentioned in their respective README, which is also available on npmjs. (example)