0.0.2 • Published 6 years ago

@preterklabs/ptst-navbar v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Built With Stencil

PTST Navbar

Navbar web component made with stencil

Getting Started

To start building a new web component using Stencil, clone this repo to a new directory:

git clone https://github.com/preterklabs/ptst-navbar.git
cd ptst-navbar
git remote rm origin

and run:

npm install
npm start

To watch for file changes during develop, run:

npm run dev

To build the component for production, run:

npm run build

To run the unit tests for the components, run:

npm test

Need help? Check out our docs here.

Using this component

Script tag

  • Put a script tag similar to this <script src='https://unpkg.com/pts-navbar@0.0.1/dist/ptsnavbar.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install @preterklabs/ptst-navbar --save
  • Put a script tag similar to this <script src='node_modules/pts-navbar/dist/ptsnavbar.js></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • Run npm install @preterklabs/ptst-navbar --save
  • Add { name: 'pts-navbar' } to your collections
  • Then you can use the element anywhere in your template, JSX, html etc