AMP

The AMP Component Catalogue

The AMP HTML library consists of a basic runtime that brings the core functionalities of AMP to your page. If you want to add additional features you can do so by using one or more of the ready-to-use AMP components. They are classified as:

Built-in Components that are included in the base library, such as amp-img and amp-pixel.
Extended Extensions to the base library that must be explicitly included in the document as custom elements.
Experimental Components that are released but are not yet ready for wide use.

Highlighted Components

Filter by category

动态内容

amp-consent
Provides the ability to collect and store a user's consent through...
amp-geo
Provides an approximate country-level geolocation interface.
amp-gist
Creates an iframe and displays a GitHub Gist.
amp-install-serviceworker
Installs a ServiceWorker for the current page.
amp-list
动态下载数据并使用模板创建列表项。
amp-live-list
Provides a way to display and update content live.
amp-story-interactive
A rich set of interactive experiences for stories, including...

媒体

amp-audio
替代 HTML5 audio 标记。
amp-img
替换 HTML5 img 标记。
amp-story-360
Embeds 360 images and videos, explorable by gyroscope or...
amp-story-panning-media
Transition an image's position and zoom between pages.
amp-video
替代 HTML5 视频标记。

演示

amp-fit-text
扩大或缩小字体大小以适合给定空间内的内容。
amp-font
Trigger and monitor the loading of custom fonts on AMP pages.
amp-story-animation
A component for configuring custom animations in amp-story.
amp-story-audio-sticker
A sticker for users to click and unmute the story.
amp-story-auto-ads
Dynamically inserts ads into a Story.
amp-story-captions
Custom video captions rendering.
amp-story-cta-layer
A single layer of a single page of an AMP story, which allows...
amp-story-grid-layer
A single layer of a single page of an AMP story that positions its...
amp-story-page-outlink
A CTA button for opening external links with one tap in AMP story pages.
amp-story-page
A single screen of an AMP story.
amp-story-player
A player for embedding and playing your favorite stories in your...
amp-story-shopping
A configurable, templated shopping experience in AMP story pages.
amp-story-subscriptions
A configurable, templated subscriptions experience in AMP story pages.
amp-story
A rich, visual storytelling format.