@alpaca-travel/web-components
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Alpaca Travel Web Components

Provides some basic components that could be used to add to a site or forked and styled as appropriate for your application.

These examples can be used to include alpaca on your website, and also enhance functionality through communicating with the web component interface.

<!DOCTYPE html>
<html>
  <head>
    <!-- Include mapbox -->
    <script src="https://api.mapbox.com/mapbox-gl-js/v2.12.0/mapbox-gl.js"></script>
    <link href="https://api.mapbox.com/mapbox-gl-js/v2.12.0/mapbox-gl.css" rel="stylesheet" />

    <!-- Include the web components -->
    <script type="module" src="https://unpkg.com/@alpaca-travel/web-components@latest"></script>
  </head>
  <body>
    <itinerary-map
      itinerary-id="itinerary/abc123"
      alpaca-access-token="pk.123"
      mapbox-access-token="pk.123"
    />
  </body>
</html>

Readme

Keywords

none

Package Sidebar

Install

npm i @alpaca-travel/web-components

Weekly Downloads

20

Version

0.0.2

License

MIT

Unpacked Size

1 MB

Total Files

61

Last publish

Collaborators

  • cammanderson