Truckstop Web Components
Using these components are as simple as:
- Add the component library as a script tag to your HTML file:
<script src="/build/ts-components.js"></script>
- If you want to use Truckstop Icons, include that too as a script tag:
<script src="https://icons.truckstop.com/tsicons.js"></script>
- Browse using the left side menu to learn details on the Web Component of your choice.
- Use the webcomponent in your code. E.g.: to add a switch to your webpage, add
<mdc-switch checked="true"></mdc-switch>
- If you want to use different fonts, include that font as a link tag: E.g
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">
If you would like to contribute to the collection of components, head to the repo: