2.0.0-alpha.6 • Published 4 years ago

@vseth/static-components v2.0.0-alpha.6

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

@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