Skip to content
GitHub

Specification

This component displays a link to the relevant section of the Web Monetization specification within a table.

To use the component, the page must be in .mdx format. Change the format from .md to .mdx if necessary. All your existing markdown will still be supported without issue.

Usage

Import the Specification component like so:

import Specification from '/src/components/docs/Specification.astro'

Use the <Specification> component on your page and under a “Specifications” heading like so:

## Specifications
<Specification anchor='link-type-monetization' />

The anchor prop, while optional, allows you to specify the particular section of the spec that’s relevant to the page you’re working on. If no anchor prop is provided, the link will default to the specification itself.

Working example

See https://webmonetization.org/docs/references/html-link-rel-monetization/#specifications