Wondering what’s next for npm?Check out our public roadmap! »

@vseth/static-components

2.0.0-alpha.6 • Public • Published

@vseth/static-components

A helper library that can be used to mount a VSETHNavbar in static apps.

Building and running on localhost

First install dependencies:

yarn install

To create a production build:

yarn build

To create a development build:

yarn build-dev

Usage

The resulting bundle.js has to be included at the end of your body element. It will convert all the navbar elements into VSETHNavbar components by mounting a React instance that replaces the original node. Elements with data-ignore are not converted, but are still removed. It is recommended to have a HTML structure that is similar to the one that the React component will mount so that there is no additional layout shift.

A simple example can be found in example/index.html

Keywords

none

Install

npm i @vseth/static-components

DownloadsWeekly Downloads

0

Version

2.0.0-alpha.6

License

MIT

Unpacked Size

510 kB

Total Files

4

Last publish

Collaborators

  • avatar
  • avatar