1.1.0 • Published 3 years ago

@blackblock/react-anchor-heading v1.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

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