1.0.6-alpha • Published 2 years ago

@dmn-arc-core-components/amp-document-boilerplate v1.0.6-alpha

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

AMP Document boilerplate

Exports

Html

Renders the html node with the attributes required for AMP documents (and all additional attributes supplied as props).

BaseMarkup

Must be rendered as the first child of <head>. Renders the base markup that all AMP documents require.

Props

  • canonicalUrl (string): the canonical URL of the non-AMP version of the page (or the AMP URL if a non-AMP version doesn't exist)

Example usage

import {
  Html,
  BaseMarkup
} from "@dmn-arc-core-components/amp-document-boilerplate";

<Html>
  <head>
    <BaseMarkup canonicalUrl="/" />
    {/* add additional head elements here. This is where you would include amp component required scripts. */}
  </head>
  <body>{/* render feature children here */}</body>
</Html>;
1.0.1-alpha

2 years ago

1.0.3-alpha

2 years ago

1.0.6-alpha

2 years ago

1.0.5-alpha

2 years ago

1.0.2-beta

2 years ago

1.0.0-beta

2 years ago

1.0.2-alpha

2 years ago

1.0.4-alpha

2 years ago

1.0.1-beta

2 years ago

1.0.0-alpha

3 years ago