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
Go to
https://github.com/1-Platform/op-components
and fork this repositoryClone the forked repository
git clone git@github.com:1-Platform/op-components.git
- Install Packages
npm i
- To create a new package run
npm run new
- Alternatively to run a component
npm run dev <component-name>
- 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)