Importing patterns into your project
In order to make use of the UI component code that’s housed within the pattern library, you’ll first need to install the tgam-patterns
NPM package into your project as a dependency:
- If you haven’t already done so, initialize your project via
npm init
. - Install the pattern library package via
npm install --save-dev tgam-patterns
.
You should now be able to import UI component code into your project. The following pages explain how this process works, with respect to the different types of assets: