@cloudflare/component-heading-hash

Cloudflare Heading Hash Component

Usage no npm install needed!

<script type="module">
  import cloudflareComponentHeadingHash from 'https://cdn.skypack.dev/@cloudflare/component-heading-hash';
</script>

README

component-heading-hash

Cloudflare Heading Hash Component

Installation

Installation with yarn is recommended

$ yarn add @cloudflare/component-heading-hash

Usage

import React from 'react';
import HeadingHash from '@cloudflare/component-heading-hash';

const HeadingComponent = ({ id, children }) => (
  <div>
    <HeadingHash id={id} size={1}>
      {children}
    </HeadingHash>
  </div>
);

export default HeadingComponent;