@blackblock/react-anchor-heading

1.1.0 • Public • Published

React anchor heading

Maintainability Test Coverage Known Vulnerabilities Codacy Badge

A React heading component with id that automatically changes with textContent for anchoring.

import Heading from '@blackblock/react-anchor-heading'

//Input
<Heading as={'h2'}>Hello world</Heading>

//Output
<h2 id="hello-world">Hello world</h2>

Installation

npm i @blackblock/react-anchor-heading

Package Sidebar

Install

npm i @blackblock/react-anchor-heading

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

11.1 kB

Total Files

30

Last publish

Collaborators

  • johnwinston0410