# Developing Polymer Web Components Outside of PTC

If you are an external developer you can also use ptcs modules in your own web components.

## Install
- Get an archived set of ptcs components named _twx-wc-sdk-[VERSION].zip_
- Extract zip content to _twx-wc-sdk_ folder inside your project
- Install our components and their dependencies by
```
  npm install twx-wc-sdk/ptcs-library
```
- As a result you will see symbolic links of ptcs components inside your _node_modules_ folder

## Development
- In your component's code you can use js imports to ptcs components:
```
  import 'ptcs-button/ptcs-button.js';
```
- To have ptcs base style in your demo page add:
```
  <script type="module" src="../node_modules/ptcs-style-unit/ptcs-style-unit.js"></script>
  <script type="module" src="../node_modules/ptcs-base-theme/ptcs-base-theme.js"></script>
```
- To load Edge polyfills in your demo page add:
```
  <script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
```
