@boligmappa/web-components
This package contains all available web components developed by Boligmappa
- BoligmappaAuth
- BoligmappaConnect
- BoligmappaMenu
- BoligmappaSearch
The package is distributed with both ESM and CJS versions of the files, your bundler will likely pick the version that you need based on whether you're using import
or require
Usage
If you just want to include all the components to make sure they are all ready to use
import '@boligmappa/web-components';
If you only want to use certain components, and not include the others in your bundle, you can specify individual components
import '@boligmappa/web-components/BoligmappaMenu';
Note that in order to use components like BoligmappaSearch that requires the user to authenticate to the Boligmappa API first, you need to also include and use BoligmappaConnect and BoligmappaAuth.
import '@boligmappa/web-components/Auth';
import '@boligmappa/web-components/BoligmappaConnect';
import '@boligmappa/web-components/BoligmappaMenu';
See more at Boligmappa web-component documentation