Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@arc-core-components/amp-document-boilerplate

Package Overview
Dependencies
Maintainers
10
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arc-core-components/amp-document-boilerplate

AMP document boilerplate components

  • 0.2.5-beta.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

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 "@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>;

FAQs

Package last updated on 12 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc